[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: build problems on old Linux libc5
From: |
Alain Guibert |
Subject: |
Re: build problems on old Linux libc5 |
Date: |
Mon, 20 Nov 2006 01:15:18 +0100 (CET) |
User-agent: |
Mutt/1.4.2.2i |
On Friday, November 17, 2006 at 16:14:22 +0100, Bruno Haible wrote:
> Installation of gettext-0.16 with pth-2.0.7 works for me, like this:
> - pth configuration:
> $ ./configure --prefix=/prefix-pth
> $ make
> $ make install
> - gettext configuration:
> $ ./configure --prefix=/prefix-pth --enable-threads=pth
> CPPFLAGS=-I/prefix-pth/include LDFLAGS=-L/prefix-pth/lib
> $ make
> $ make install
When I do this exactly as you, gettext 0.16 builds properly. The problem
trigger seems to be in pth.h when "#define PTH_SYSCALL_SOFT 1".
When PTH_SYSCALL_SOFT is manually edited to 1, or pth 2.0.7 is built
explicitly with --enable-syscall-soft, or syscall-soft is implicitly
forced by --enable-pthread, then gettext build fails.
When PTH_SYSCALL_SOFT is 0, gettext builds OK. Again thank you very
much!
> Why does it want a symbol __pthread_read anyway? All the symbols that
> libintl requires when you use --enable-threads=pth start with "pth_".
I get 2 nearly identical errors. With --enable-threads=posix or nothing:
| ../intl/.libs/libintl.so: undefined reference to `__pthread_read'
while with --enable-threads=pth:
| ../intl/.libs/libintl.so: undefined reference to `pth_read'
Alain.