Author Topic: Compilation error Glibc 2.12  (Read 2624 times)

DDZ

  • Guest
Compilation error Glibc 2.12
« on: December 09, 2010, 02:32:11 AM »
Hello !

Yesterday evening, I installed PCLOS 2010.12 LXDE French. I use the SRWare Iron web browser but it requires Glibc 2.11 or superior. I've seen this library won't be updated until january 2011. So I decided to compile and install it by hand.
I have a configure error :

Code: [Select]
./configure --prefix=/usr
Quote
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: error: you must configure in a separate build directory


I don't understand what it meens. I try to compile it by unzipping the archive in an another folder but same problem.

Any idea ?
Thank you in advance for your answer and have a nice day !  :)

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15310
  • ┌∩┐(◕_◕)┌∩┐
Re: Compilation error Glibc 2.12
« Reply #1 on: December 09, 2010, 05:21:41 AM »
Quote
configure: error: you must configure in a separate build directory

I know next to nothing about compiling apps from source but from the error message it appears that it's looking for a "build" directory.

On the few occasions I've played around with installs I've sometimes seen the commands in the Readme file

mkdir build     <make directory>
cd build          <change directory>

as part of the install procedure, so maybe you need to create one before it can proceed.

BUT you'll probably get better info from someone who's good with compiling/installing apps.
« Last Edit: December 09, 2010, 05:23:28 AM by menotu »
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: Compilation error Glibc 2.12
« Reply #2 on: December 09, 2010, 06:55:53 AM »

libc is a very critical library on your system, wrong move and your system will simply refuse to boot and that will be the end of it and a reinstall will be inevitable. Proceed only when you have plenty of time and with a live cd next to you ready for a reinstall and your data is already backed up

Like the error say, the configuration and building must be in a different folder and therefore, create a different folder(build folder as mentioned in a post above me), go to it and then run the configuration script and build from that folder with "../configure --prefix=/usr"
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

DDZ

  • Guest
Re: Compilation error Glibc 2.12
« Reply #3 on: December 09, 2010, 07:59:06 AM »
libc is a very critical library on your system, wrong move and your system will simply refuse to boot and that will be the end of it and a reinstall will be inevitable. Proceed only when you have plenty of time and with a live cd next to you ready for a reinstall and your data is already backed up
I have a laptop for tests before applying on my home PC.

Like the error say, the configuration and building must be in a different folder and therefore, create a different folder(build folder as mentioned in a post above me), go to it and then run the configuration script and build from that folder with "../configure --prefix=/usr"

Code: [Select]
mkdir build
cd build
../configure --prefix=/usr

Configure works fine.

Code: [Select]
make
Quote
/home/username/Downloads/glibc-2.12.1/build/string/strcmp.o
../sysdeps/i386/i686/multiarch/strcmp.S: Assembler messages:
../sysdeps/i386/i686/multiarch/strcmp.S:78: Error: unrecognized symbol type "gnu_indirect_function"
make[2]: *** [/home/username/Downloads/glibc-2.12.1/build/string/strcmp.o] Erreur 1
make[2]: quittant le répertoire « /home/username/Downloads/glibc-2.12.1/string »
make[1]: *** [string/subdir_lib] Erreur 2
make[1]: quittant le répertoire « /home/username/Downloads/glibc-2.12.1 »
make: *** [all] Erreur 2

Then, I tried with the 2.11.3 version :

Code: [Select]
make
Quote
/home/username/Downloads/glibc-2.11.3/build/libc_pic.os: In function `__libc_fork':
/home/username/Downloads/glibc-2.11.3/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:79: undefined reference to `__sync_bool_compare_and_swap_4'
/home/username/Downloads/glibc-2.11.3/build/libc_pic.os: In function `__nscd_drop_map_ref':
/home/username/Downloads/glibc-2.11.3/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/home/username/Downloads/glibc-2.11.3/build/libc_pic.os: In function `nscd_getpw_r':
/home/username/Downloads/glibc-2.11.3/nscd/nscd_getpw_r.c:233: undefined reference to `__sync_fetch_and_add_4'
/home/username/Downloads/glibc-2.11.3/build/libc_pic.os: In function `__nscd_drop_map_ref':
/home/username/Downloads/glibc-2.11.3/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/home/username/Downloads/glibc-2.11.3/build/libc_pic.os: In function `nscd_getgr_r':
/home/username/Downloads/glibc-2.11.3/nscd/nscd_getgr_r.c:322: undefined reference to `__sync_fetch_and_add_4'
/home/username/Downloads/glibc-2.11.3/build/libc_pic.os: In function `__nscd_drop_map_ref':
/home/username/Downloads/glibc-2.11.3/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/home/username/Downloads/glibc-2.11.3/build/libc_pic.os:/home/username/Downloads/glibc-2.11.3/nscd/nscd_gethst_r.c:415: more undefined references to `__sync_fetch_and_add_4' follow
/home/username/Downloads/glibc-2.11.3/build/libc_pic.os: In function `__nscd_get_map_ref':
/home/username/Downloads/glibc-2.11.3/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4'
/home/username/Downloads/glibc-2.11.3/build/libc_pic.os: In function `*__GI___libc_freeres':
/home/username/Downloads/glibc-2.11.3/malloc/set-freeres.c:39: undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld a retourné 1 code d'état d'exécution
make[1]: *** [/home/username/Downloads/glibc-2.11.3/build/libc.so] Erreur 1
make[1]: quittant le répertoire « /home/username/Downloads/glibc-2.11.3 »
make: *** [all] Erreur 2

I don't understand what's happening !  ???
Can you help me, please ?

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: Compilation error Glibc 2.12
« Reply #4 on: December 09, 2010, 08:15:12 AM »

how knowledgeable are you at compiling programs from source code and working on the terminal?

you will run across a few building errors, just google them and you may find results more quickly, you probably need to set "-march" CFLAG

try to configure with this command

CFLAGS="-march=i586" ../configure --prefix=/usr

try with i686 if that one fail
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

DDZ

  • Guest
Re: Compilation error Glibc 2.12
« Reply #5 on: December 09, 2010, 10:08:18 AM »

how knowledgeable are you at compiling programs from source code and working on the terminal?

you will run across a few building errors, just google them and you may find results more quickly, you probably need to set "-march" CFLAG

try to configure with this command

CFLAGS="-march=i586" ../configure --prefix=/usr

try with i686 if that one fail
I tried your tip both for 2.11.x and 2.12.1 version : Doesn't work.
Thank you anyway !