From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e2ed74d46bfc0ed4 X-Google-Attributes: gid111c93,public From: aklee@spam.this.interport.net (Albert K. Lee) Subject: Re: dlopen/ libdl.so.x` Date: 1998/01/22 Message-ID: #1/1 X-Deja-AN: 318431239 References: <34C22C85.49ADA53C@usa.net> Organization: Interport Communications Corp. Newsgroups: comp.os.linux.alpha On Sun, 18 Jan 1998 11:23:33 -0500, Who's There wrote: >Hi, I was trying to compile the MICO a free CORBA implementation and I >kept running into a problem when trying to link the object files. The >line to build the final executable includes the -ldl switch but the >compiler keeps crapping out with undefined symbol error for dlopen, >dlclose and dlsym. >Comparing the problem to Linux/Intel, I saw the using ldconfig to look >at the shared libraries had libdl.so.1 => libdl.so.1.87 but on >Linux/Alpha the link was libdl.so.2 => libdl.so.2. Changing the >symbolic links had no effect. Any ideas, > >TIA > >Olu Hmmm ... you know, this is something I noticed on Solaris but it might be true for Linux/Alpha as well ... when gcc is run as the linker, look for an '-R' option. If there is one, get rid of the -R from the makefile since gcc does something strange with it present on the command line. gcc obj1.o obj2.o -o program -lX11 -R -ldl for instance will cause gcc to not process the -ldl properly.