LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-06-2003, 01:40 AM   #1
coderx
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Rep: Reputation: 0
Angry glibc compile problems...


trying to build a new glibc and I'm getting some errors that I don't konw what to do about. Cofigured it with

dado@strong:~/glibc/glibc> /home/dado/glibc/glibc-2.3.2/configure --prefix=/opt/glibc2.2.5-2 --program-suffix=322 --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit -enable-add-ons=linuxthreads

and when I try to compile I get


/home/dado/glibc/glibc/libc_pic.os(.text+0x7d08d): In function `__wcsmbs_load_conv':
/home/dado/glibc/glibc-2.3.2/wcsmbs/wcsmbsload.c:214: undefined reference to `__libc_setlocale_lock'
/home/dado/glibc/glibc/libc_pic.os(.text+0x7d0e9):/home/dado/glibc/glibc-2.3.2/wcsmbs/wcsmbsload.c:200: undefined reference to `__libc_setlocale_lock'
/home/dado/glibc/glibc/libc_pic.os(.text+0x8f223): In function `_nl_init_era_entries':
/home/dado/glibc/glibc-2.3.2/time/era.c:138: undefined reference to `__libc_setlocale_lock'
/home/dado/glibc/glibc/libc_pic.os(.text+0x8f2c1):/home/dado/glibc/glibc-2.3.2/time/era.c:101: undefined reference to `__libc_setlocale_lock'
/home/dado/glibc/glibc/libc_pic.os(.text+0x8f629): In function `_nl_get_alt_digit':
/home/dado/glibc/glibc-2.3.2/time/alt_digit.c:94: undefined reference to `__libc_setlocale_lock'
/home/dado/glibc/glibc/libc_pic.os(.text+0x8f63a):/home/dado/glibc/glibc-2.3.2/time/alt_digit.c:94: more undefined references to `__libc_setlocale_lock' follow
/home/dado/glibc/glibc/libc_pic.os(.text+0xcf312): In function `*__GI___register_atfork':
/home/dado/glibc/glibc-2.3.2/linuxthreads/../linuxthreads/sysdeps/pthread/list.h:60: undefined reference to `__fork_block'
/home/dado/glibc/glibc/libc_pic.os(.text+0xcf318):/home/dado/glibc/glibc-2.3.2/linuxthreads/../linuxthreads/sysdeps/pthread/list.h:61: undefined reference to `__fork_block'
/home/dado/glibc/glibc/libc_pic.os(.text+0xcf325):/home/dado/glibc/glibc-2.3.2/linuxthreads/../linuxthreads/sysdeps/pthread/list.h:63: undefined reference to `__fork_block'
/home/dado/glibc/glibc/libc_pic.os(.text+0xcf32f):/home/dado/glibc/glibc-2.3.2/linuxthreads/../linuxthreads/sysdeps/pthread/list.h:60: undefined reference to `__fork_block'
/home/dado/glibc/glibc/libc_pic.os(.text+0xcf335):/home/dado/glibc/glibc-2.3.2/linuxthreads/../linuxthreads/sysdeps/pthread/list.h:61: undefined reference to `__fork_block'
/home/dado/glibc/glibc/libc_pic.os(.text+0xcf342):/home/dado/glibc/glibc-2.3.2/linuxthreads/../linuxthreads/sysdeps/pthread/list.h:63: more undefined references to `__fork_block' follow
collect2: ld returned 1 exit status
make[1]: *** [/home/dado/glibc/glibc/libc.so] Error 1
make[1]: Leaving directory `/home/dado/glibc/glibc-2.3.2'
make: *** [all] Error 2


Any ideas? As far as I know I have everything that is needed for building glibc.
 
Old 07-06-2003, 07:14 AM   #2
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
Hi there,
As you can see in the box next to this one, I'm running LFS. With LFS, you install everything from source, including glibc.
Dispite the fact that you are probebly not installing LFS, the LFS book are a great source of info if you need to install stuf like that. Here is a part of the book that might be of interest to you :

It is recommended by the Glibc installation documentation to build
Glibc outside of the source tree. Create the build directory:

mkdir ../glibc-build &&
cd ../glibc-build

Next, prepare Glibc to be compiled:

../glibc-2.3.1/configure --prefix=/usr --disable-profile \
--enable-add-ons --libexecdir=/usr/bin

Continue with compiling the package:

make

Begin package installation:

make install

Build the linuxthreads man pages:

make -C ../glibc-2.3.1/linuxthreads/man

Install the man pages:

make -C ../glibc-2.3.1/linuxthreads/man install


Hope it helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
glibc compile error ponden Linux From Scratch 3 11-13-2008 05:43 PM
cannot compile glibc levicc00123 Slackware 15 04-20-2005 08:28 PM
glibc - compile errors serg2004 Linux From Scratch 1 11-18-2004 01:52 AM
Does anyone know how to re-compile glibc ? oskernel Programming 1 10-18-2003 03:29 AM
Problems with Glibc Compile Shak Linux From Scratch 2 07-03-2003 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration