From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,942afaf287eebe84 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-16 15:29:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!cacnews.cac.cpqcorp.net!53ab2750!not-for-mail Message-ID: <3CBCA5B0.9E3FFB77@zk3.dec.com> From: Joe Mario X-Mailer: Mozilla 4.78 [en] (X11; U; OSF1 V5.1 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Strange ld behavior in versions 4.0F and above References: <3CB75DF0.773FA9FB@Mnetcabo.pt> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Date: Tue, 16 Apr 2002 22:33:53 GMT NNTP-Posting-Host: 16.141.0.18 X-Complaints-To: abuse@Compaq.com X-Trace: cacnews.cac.cpqcorp.net 1018996433 16.141.0.18 (Tue, 16 Apr 2002 15:33:53 PDT) NNTP-Posting-Date: Tue, 16 Apr 2002 15:33:53 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:7304 Fernando Nunes wrote: > > Hi, > > I'm sorry if this is a dummy question with a simple answer, but I've Fernando: There are many cases where users want to link their application with unresolved symbols so they can run them later with libraries that do define the unresolved symbol(s). They run "chmod +x" on the linked image so they can later run it. As another reply indicated, you can always check the status returned from the link if you don't want your makefile to proceed when unresolved symbols are encountered. Joe Mario Compaq Tru64 UNIX Development Environment > RTFM and got no answers... > > I've noticed a change in Tru64 4.0F "ld" behavior. > If you create a "test.c" whith the following content: > --------------------- > main() > { > foo(); > } > --------------------- > > (and you ignore the lack of ANSI compliance in the code) and issue the > command: > > cc -o test test.c > > You'll get an obviously message from the linker saying that there are > unresolved symbols. > > The point is you'll have a "test" file (without execution permission) > hanging around. > This has a nasty effect if you're using the make utility because if by > mistake you repeat the make process it will skip the "test" compilation > because the file will be there (although it's completly useless). > > Does this have a logical explanation? Is there any compilation/linker > flag that will avoid this? Is it some kind of bug? > > Thank you in advance, > > Fernando Nunes