NetBSD Problem Report #678

From gnats  Mon Jan  2 10:56:57 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id KAA01151 for <[email protected]>; Mon, 2 Jan 1995 10:56:56 -0800
Message-Id: <[email protected]>
Date: Mon, 2 Jan 1995 13:59:15 -0500
From: [email protected]
Reply-To: [email protected]
To: [email protected]
Subject: linker problems?
X-Send-Pr-Version: 3.2

>Number:         678
>Category:       bin
>Synopsis:       Linker only checks dependencies one level deep.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 02 11:05:05 +0000 1995
>Closed-Date:    Thu Nov 13 17:30:09 +0000 1997
>Last-Modified:  Thu Nov 13 17:31:36 +0000 1997
>Originator:     Yoav Yerushalmi
>Release:        1.0
>Organization:
"SIPB (MIT)"
>Environment:

System: NetBSD lola-granola 1.0 NetBSD 1.0 (LOLA-DDB) #56: Sat Dec 17 13:51:12 EST 1994 fsf@lola-granola:/u1/usr/src/sys/arch/i386/compile/LOLA-DDB i386


>Description:
The linker only checks symbol dependencies one level deep, so when you
link a program against, say motif, and forget Xt, it does not notice
in the compilation stage, only when running does the dynamic linker
notice the problem (ld.so: foobar not defined). This has probably been
noticed lots of times already, but I didn't see it on the bug list, so
am reporting it.  
>How-To-Repeat:
	Build any program which relies on a library which relies on
another one. For example, building a program which uses Xaw (which
relies on Xmu) and not linking with Xmu results in a binary, but when
this binary is executed, the following appears:
	ld.so: Undefined symbol "_XmuCvtStringToOrientation" in kerberometer:/usr/X11R6/lib/libXaw.so.6.0

>Fix:
	Well, it could be possible to make the linker warn (but
successfully link), when a symbol might be undefined?
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: pk 
State-Changed-When: Sun Jan 14 06:59:40 EST 1996 
State-Changed-Why:  
This is the same problem as described in PR402. 
I'll put a Xref in 402 to here. 
State-Changed-From-To: suspended->closed 
State-Changed-By: is 
State-Changed-When: Thu Nov 13 09:30:09 PST 1997 
State-Changed-Why:  
This has been worked around. Check PR 402 for details. 
>Unformatted:


 	It seems a compilation succeeded, when in fact, several
 symbols are still undefined.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.