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

Re: Compiling glibc-2.5



Hi,
 
Thanks so much for your help! I finally succeed to build glibc-2.5. I would like to write below several problems I met.
 
On 2007-07-16 23:46 +800, Michael Banck wrote:
Right now, it is highly advised to add --without-__thread --without-tls to the configure options.

To have a look at the current set of patches applied by Debian to the glibc-2.5 package, look here:
http://svn.debian.org/wsvn/pkg-glibc/glibc-package/branches/glibc-2.5/debian/patches/hurd-i386/?rev=0&sc=0
 
I met one error in inet/inet_ntoa.c: undefined reference to `___tls_get_addr'. Seems that it is because TLS is disabled. I simply overrode file inet_ntoa.c with a previous version that does not use TLS to solve the problem.
 
At last, the building process stopped at malloc/memusage.c with many errors like:
> memusage.c:74 error: expected '=' ... before calls
and Line 74 of memusage is:
> static memusage_cntr_t calls[idx_last];
 
However, since libc.so was already produced here, I have not tried much to correct this error.

 
Alternatively, you could run "apt-get source glibc" and then
"debian/rules patch" to get a patched glibc source tree under build-tree, from where you can configure/make.

BTW, I so tried the second way you suggested. Instead of glibc-2.5, "apt-get source glibc" gets glibc-2.6, which I failed to build. It stopped at:
> sysdeps/generic/rtld-lowlevel.h:1:2: error: #error "Lowlevel primitives for ld.so not implemented"
> include/link.h:224: error: expected specifier-qualifier-list before '__rtld_mrlock_define'
 
It seems a bug but I failed to find any patch on it.
 
Thanks!

Reply to: