From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Julien.Soula" Newsgroups: gmane.os.tru64.managers Subject: UPDATE: link pb : unresolved symbols Date: Mon, 21 Oct 2002 18:31:50 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <15796.11254.697218.84776@kerstbol.lifl.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035219896 15351 80.91.224.249 (21 Oct 2002 17:04:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 17:04:56 +0000 (UTC) Cc: Julien.Soula@lifl.fr Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 183fz4-0003yw-00 for ; Mon, 21 Oct 2002 19:04:54 +0200 Original-Received: (qmail 21198 invoked by uid 5); 21 Oct 2002 17:05:35 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 21187 invoked by uid 49493); 21 Oct 2002 17:05:35 -0000 Original-Received: from soula@lifl.fr by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(0.6/5.0):. Processed in 0.39611 secs); 21 Oct 2002 17:05:35 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 21 Oct 2002 17:05:34 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4C00KRJB9Z2X@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 21 Oct 2002 12:32:24 -0400 (EDT) Original-Received: from reserv2.univ-lille1.fr (reserv2.univ-lille1.fr [193.49.225.90]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4C003ILB9W3O@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 21 Oct 2002 12:32:21 -0400 (EDT) Original-Received: from malonne.lifl.fr (malonne.lifl.fr [134.206.10.29]) by reserv2.univ-lille1.fr (8.12.2/jtpda-5.3.1) with ESMTP id g9LGVxpO007415 for ; Mon, 21 Oct 2002 18:31:59 +0200 Original-Received: from kerstbol.lifl.fr (kerstbol.lifl.fr [134.206.10.68]) by malonne.lifl.fr (8.10.2+Sun/jtpda-5.3.3) with ESMTP id g9LGSl423499 ; Mon, 21 Oct 2002 18:28:47 +0200 (MEST) Original-Received: from soula by kerstbol.lifl.fr with local (Exim 3.35 #1 (Debian)) id 183fT4-00017f-00; Mon, 21 Oct 2002 18:31:50 +0200 Original-To: tru64-unix-managers@ornl.gov X-Mailer: VM 7.03(+VMGod) under Emacs 21.2.1 X-MailScanner: Found to be clean Xref: main.gmane.org gmane.os.tru64.managers:2142 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2142 hello, I have simplified the problem. I have a library (Oracle client lib) with several defined symbols and some of these can't be linked with program. Example : I did a little test program which just use a library symbol (function OCILobCreateTemporary) void *p; main () { p=(void *)&OCILobCreateTemporary; printf("Hello cruel world %p!!!\n",p); return 0; } then when I compile this source, the symbol is unresolved whereas it is defined in library: # cc test.o $ORACLE_HOME/lib/libclntsh.so ld: Unresolved: OCILobCreateTemporary # nm $ORACLE_HOME/lib/libclntsh.so | grep OCILobCreateTemporary OCILobCreateTemporary | 0004396966224224 | T | 0000000000000008 Has someone a idea of what can prevent a symbol in a library from linking with other object. Any help will be appreciate. Thanks, -- Julien