[omniORB] RH5.0 compile error (with patch): libpthread.so: __libc_rewinddir etc.

Sai-Lai Lo S.Lo@orl.co.uk
30 Mar 1998 10:24:22 +0100


Did you upgrade from Redhat 4.2 and have previously installed linuxthreads
on your system? The error looks like the linker has picked up the old
library. Remove the old library will solve the problem.

Sai-Lai


Mark Shacklette <mshack@interaccess.com> writes:

> I got down omniORB_2.5.0 and applied the patch for RedHat 5.0, and also
> installed binutils 2.8.1.0.26.  Upon make export, I get the following errors:
> 
> make[3]: Leaving directory `/usr1/omniORB_2.5.0/src/tool/omniidl2/omniORB2_be'
> + rm -f omniidl2
> + g++ -o omniidl2 -O2 -pthread -Wall -Wno-unused
> -Wl,-rpath,../../../lib/i586_linux_2.0_egcs -L../../../lib/i586_linux_2.0_egcs
> driver/libdrv.a omniORB2_be/libomniORB2_be.a fe/libfe.a ast/libast.a
> util/libutil.a narrow/libnarrow.a
> /usr/lib/libpthread.so: undefined reference to `__libc_rewinddir'
> /usr/lib/libpthread.so: undefined reference to `__libc_readdir_r'
> /usr/lib/libpthread.so: undefined reference to `__libc_opendir'
> /usr/lib/libpthread.so: undefined reference to `__libc_seekdir'
> /usr/lib/libpthread.so: undefined reference to `__libc_readdir'
> /usr/lib/libpthread.so: undefined reference to `__libc_telldir'
> /usr/lib/libpthread.so: undefined reference to `_IO_perror'
> collect2: ld returned 1 exit status
> make[2]: *** [omniidl2] Error 1
> make[2]: Leaving directory `/usr1/omniORB_2.5.0/src/tool/omniidl2'
> make[1]: *** [export] Error 1
> make[1]: Leaving directory `/usr1/omniORB_2.5.0/src/tool'
> make: *** [export] Error 1
> 
> I have a feeling this is related to the glibc - libc in RH5, but I don't
> know what to do.  If anyone knows what I should do next, I'd appreciate hearing
> about it.
> 


-- 
Dr. Sai-Lai Lo                          |       Research Scientist
                                        |
E-mail:         S.Lo@orl.co.uk          |       Olivetti & Oracle Research Lab
                                        |       24a Trumpington Street
Tel:            +44 223 343000          |       Cambridge CB2 1QA
Fax:            +44 223 313542          |       ENGLAND