hal broken

Richard Pyne rpyne at kinfolk.org
Wed Dec 26 11:09:05 CET 2007


trying to recompile glibc gives:

gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-
linker=/lib/ld-linux.so.2  -B/usr/src/glibc-2.7/glibcroot/csu/  -Wl,--
version-script=/usr/src/glibc-2.7/glibcroot/libc.map -Wl,-soname=libc.so.6 
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib -
nostartfiles -e __libc_main -L/usr/src/glibc-2.7/glibcroot -
L/usr/src/glibc-2.7/glibcroot/math -L/usr/src/glibc-2.7/glibcroot/elf -
L/usr/src/glibc-2.7/glibcroot/dlfcn -L/usr/src/glibc-2.7/glibcroot/nss -
L/usr/src/glibc-2.7/glibcroot/nis -L/usr/src/glibc-2.7/glibcroot/rt -
L/usr/src/glibc-2.7/glibcroot/resolv -L/usr/src/glibc-2.7/glibcroot/crypt -
L/usr/src/glibc-2.7/glibcroot/nptl -Wl,-rpath-link=/usr/src/glibc-
2.7/glibcroot:/usr/src/glibc-2.7/glibcroot/math:/usr/src/glibc-
2.7/glibcroot/elf:/usr/src/glibc-2.7/glibcroot/dlfcn:/usr/src/glibc-
2.7/glibcroot/nss:/usr/src/glibc-2.7/glibcroot/nis:/usr/src/glibc-
2.7/glibcroot/rt:/usr/src/glibc-2.7/glibcroot/resolv:/usr/src/glibc-
2.7/glibcroot/crypt:/usr/src/glibc-2.7/glibcroot/nptl -o /usr/src/glibc-
2.7/glibcroot/libc.so -T /usr/src/glibc-2.7/glibcroot/shlib.lds 
/usr/src/glibc-2.7/glibcroot/csu/abi-note.o /usr/src/glibc-
2.7/glibcroot/elf/soinit.os /usr/src/glibc-2.7/glibcroot/libc_pic.os 
/usr/src/glibc-2.7/glibcroot/elf/sofini.os /usr/src/glibc-
2.7/glibcroot/elf/interp.os /usr/src/glibc-2.7/glibcroot/elf/ld.so -lgcc
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function `__fork':
(.text+0x7abaf): undefined reference to `__sync_bool_compare_and_swap_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function `nscd_getpw_r':
nscd_getpw_r.c:(.text+0xdf83e): undefined reference to 
`__sync_fetch_and_add_4'
nscd_getpw_r.c:(.text+0xdf882): undefined reference to 
`__sync_fetch_and_add_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function `nscd_getgr_r':
nscd_getgr_r.c:(.text+0xdfc9b): undefined reference to 
`__sync_fetch_and_add_4'
nscd_getgr_r.c:(.text+0xdfce0): undefined reference to 
`__sync_fetch_and_add_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function `nscd_gethst_r':
nscd_gethst_r.c:(.text+0xe0314): undefined reference to 
`__sync_fetch_and_add_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os:nscd_gethst_r.c:(.text+0xe035b): 
more undefined references to `__sync_fetch_and_add_4' follow
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function 
`__nscd_get_map_ref':
(.text+0xe2380): undefined reference to `__sync_val_compare_and_swap_4'
/usr/src/glibc-2.7/glibcroot/libc_pic.os: In function 
`__GI___libc_freeres':
(__libc_freeres_fn+0x87e): undefined reference to 
`__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make[1]: *** [/usr/src/glibc-2.7/glibcroot/libc.so] Error 1
make[1]: Leaving directory `/usr/src/glibc-2.7'
make: *** [all] Error 2
Creating /var/log/lunar/compile/glibc-2.7.bz2
! Problem detected during BUILD

--Richard

On 25 Dec 2007 at 18:56, Moritz Heiber wrote:

> Just recompile glibc.
> 
> Regards,
> 
> Moritz
> 
> On Tue, 25 Dec 2007 08:28:25 -0700
> "Richard Pyne" <rpyne at kinfolk.org> wrote:
> 
> > I was getting this:
> > 
> > make[5]: Entering directory `/usr/src/hal-0.5.10/hald/linux/probing'
> > gcc -DHAVE_CONFIG_H -I. -I../../..  -DPACKAGE_SYSCONF_DIR=\""/etc"\"
> > -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\"
> > -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\"
> > -DPACKAGE_LOCALSTATEDIR=\""/var"\" -I../../.. -I/usr/include/glib-2.0
> > -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0
> > -I/usr/lib/dbus-1.0/include   -I/usr/include/dbus-1.0
> > -I/usr/lib/dbus-1.0/include       -O2 -pipe -O2 -pipe -Wall
> > -Wchar-subscripts -Wmissing-declarations -Wnested-externs
> > -Wpointer-arith -Wcast-align -Wsign-compare -MT probe-input.o -MD -MP
> > -MF .deps/probe-input.Tpo -c -o probe-input.o probe-input.c
> > probe-input.c: In function 'main':
> > probe-input.c:61: error: 'SW_MAX' undeclared (first use in this
> > function) probe-input.c:61: error: (Each undeclared identifier is
> > reported only once probe-input.c:61: error: for each function it
> > appears in.) probe-input.c:74: error: 'SW_LID' undeclared (first use
> > in this function) probe-input.c:76: error: 'SW_TABLET_MODE'
> > undeclared (first use in this function)
> > probe-input.c:78: error: 'SW_HEADPHONE_INSERT' undeclared (first use
> > in this
> > function)
> > probe-input.c:102: warning: implicit declaration of function
> > 'EVIOCGSW' probe-input.c:102: warning: nested extern declaration of
> > 'EVIOCGSW' probe-input.c:61: warning: unused variable 'bitmask'
> > make[5]: *** [probe-input.o] Error 1
> > make[5]: Leaving directory `/usr/src/hal-0.5.10/hald/linux/probing'
> > make[4]: *** [all-recursive] Error 1
> > make[4]: Leaving directory `/usr/src/hal-0.5.10/hald/linux'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory `/usr/src/hal-0.5.10/hald'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/usr/src/hal-0.5.10/hald'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/src/hal-0.5.10'
> > make: *** [all] Error 2
> > Creating /var/log/lunar/compile/hal-0.5.10.bz2
> > ! Problem detected during BUILD
> > 
> > 
> > so I updated kernel-headers-2.6 and now I get this:
> > 
> > 
> > gcc -DHAVE_CONFIG_H -I. -I../../..  -DPACKAGE_SYSCONF_DIR=\""/etc"\"
> > -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\"
> > -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\"
> > -DPACKAGE_LOCALSTATEDIR=\""/var"\" -I../../.. -I/usr/include/glib-2.0
> > -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0
> > -I/usr/lib/dbus-1.0/include   -I/usr/include/dbus-1.0
> > -I/usr/lib/dbus-1.0/include       -O2 -pipe -O2 -pipe -Wall
> > -Wchar-subscripts -Wmissing-declarations -Wnested-externs
> > -Wpointer-arith -Wcast-align -Wsign-compare -MT linux_dvd_rw_utils.o
> > -MD -MP -MF .deps/linux_dvd_rw_utils.Tpo -c -o linux_dvd_rw_utils.o 
> > linux_dvd_rw_utils.c
> > linux_dvd_rw_utils.c:54:23: error: scsi/scsi.h: No such file or
> > directory linux_dvd_rw_utils.c:55:21: error: scsi/sg.h: No such file
> > or directory linux_dvd_rw_utils.c:86: error: field 'sg_io' has
> > incomplete type linux_dvd_rw_utils.c:97: error: 'SG_DXFER_TO_DEV'
> > undeclared here (not in a
> > function)
> > linux_dvd_rw_utils.c:98: error: 'SG_DXFER_FROM_DEV' undeclared here
> > (not in
> > a function)
> > linux_dvd_rw_utils.c:99: error: 'SG_DXFER_NONE' undeclared here (not
> > in a function)
> > linux_dvd_rw_utils.c: In function 'scsi_command_transport':
> > linux_dvd_rw_utils.c:153: error: 'SG_IO' undeclared (first use in this
> > function)
> > linux_dvd_rw_utils.c:153: error: (Each undeclared identifier is
> > reported only once
> > linux_dvd_rw_utils.c:153: error: for each function it appears in.)
> > linux_dvd_rw_utils.c:156: error: 'SG_INFO_OK_MASK' undeclared (first
> > use in
> > this function)
> > linux_dvd_rw_utils.c:156: error: 'SG_INFO_OK' undeclared (first use
> > in this
> > function)
> > linux_dvd_rw_utils.c:159: error: 'CHECK_CONDITION' undeclared (first
> > use in
> > this function)
> > linux_dvd_rw_utils.c: In function 'scsi_command_init':
> > linux_dvd_rw_utils.c:183: error: 'SG_FLAG_DIRECT_IO' undeclared
> > (first use in this function)
> > make[5]: *** [linux_dvd_rw_utils.o] Error 1
> > make[5]: Leaving directory `/usr/src/hal-0.5.10/hald/linux/probing'
> > make[4]: *** [all-recursive] Error 1
> > make[4]: Leaving directory `/usr/src/hal-0.5.10/hald/linux'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory `/usr/src/hal-0.5.10/hald'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory `/usr/src/hal-0.5.10/hald'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/src/hal-0.5.10'
> > make: *** [all] Error 2
> > Creating /var/log/lunar/compile/hal-0.5.10.bz2
> > ! Problem detected during BUILD
> > 
> > 
> > --Richard
> > _______________________________________________
> > Lunar mailing list
> > Lunar at lunar-linux.org
> > http://foo-projects.org/mailman/listinfo/lunar
> 
> 
> -- 
> GPG public key B189E8C8
> _______________________________________________
> Lunar mailing list
> Lunar at lunar-linux.org
> http://foo-projects.org/mailman/listinfo/lunar
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.516 / Virus Database: 269.17.6/1193 - Release Date: 12/22/2007 2:02 PM
> 




More information about the Lunar mailing list