[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: How do I link to nptl?



Hi Ulrich,

I have the same question with regard to the usage of nptl. Furthermore, I
was confused by some
issues while testing binary compatibility of nptl with linuxthreads.  Please
point out if I was doing wrong.

Issue 1:  tests was linked to linuxthreads library instead of nptl library.
# follow the steps given by the subject "RE: NPTL 0.4 setup compile error".
working dir is /home/nptl
# ...
# make subdirs=nptl check
# ldd tst-basic1
	libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40024000)
			^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Issue 2: If tst-basic1 was linked to linuxthreads library, how to run it
with nptl libpthread.so.0?
# ln -fs /home/nptl/glibc/nptl/libpthread.so.0 /lib/i686/libpthread.so.0
# ./tst-basic1
    	nptl/tst-basic1: /lib/i686/libc.so.6: version `GLIBC_2.3.1' not
found (required by /lib/i686/libpthread.so.0)

Issue 3: System was tainted while using the newly built libc.so.  Can you
explain the TSL feature used in NPT?
# ln -fs /home/ngptl/glibc/libc.so.6 /lib/i686/libc.so.6
# ls
    	cannot handle file 'libc.so.6' with TLS data
# reboot
    	cannot handle file 'libc.so.6' with TLS data

thanks a lot
bingwei

> -----Original Message-----
> From: Ehud Shabtai [mailto:ehud shabtai comverse com]
> Sent: 2002年10月24日 23:11
> To: phil-list redhat com
> Subject: How do I link to nptl?
> 
> 
> Hey,
> 
> I have a RedHat 8.0 with Kernel 2.5.44, updated binutils and 
> glibc 2.3.1
> compiled with nptl.
> 
> As I understand, running 'make install' for glibc is not 
> recommended. So
> how do I link my programs with nptl?
> 
> Ehud.
> 
> 
> 
> 
> 
> -- 
> Phil-list mailing list
> Phil-list redhat com
> https://listman.redhat.com/mailman/listinfo/phil-list
> 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]