From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,4e8f768854de9703,start X-Google-Attributes: gidfa528,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Michael Kraemer Newsgroups: comp.unix.tru64 Subject: cc/ar/ld oddities Date: Sun, 03 Jun 2007 21:39:56 +0200 Organization: T-Online Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1180899596 02 24162 z2cm6oEL8NvaWTg 070603 19:39:56 X-Complaints-To: usenet-abuse@t-online.de X-ID: b-7TqZZOoeJp7GHKYtVxNVfXXEoISsYz2eTTPVTQSri3mi1yz2qy8I User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; de-DE; rv:1.3) Gecko/20030616 X-Accept-Language: en-us, en Xref: g2news1.google.com comp.unix.tru64:994 hello world, I'm currently compiling some freeware apps on 5.1B with native cc, and I'm encountering problems which begin to drive me nuts, since I never saw that before, neither on Tru64, nor on other Unices. cc compiles OK and the .o's are archived in some libxxx.a (ar -rv, ar -st). However, when I link (with cc -o) some main program against libxxx.a, several function entry points remain unresolved. Checking with ar -w shows, that they are indeed archived. Inspection of the source text doesn't show anything unusual. Linking against the original .o's works OK. So either "ar" puts garbage into .a, or ld can't deal properly with that .a. This happens with several distinct projects. Any ideas ?