[Mageia-dev] Building ldetect on Cauldron is broken.
Shlomi Fish
shlomif at shlomifish.org
Sat Oct 1 12:16:38 CEST 2011
Hi all,
building ldetect on Cauldron is broken:
[Q]
cc -shared -Wl,-z,relro -Wl,-O1,-soname,libldetect.so.0.11 -o libldetect.so.0.11.1 common.o hid.o modalias.o pciusb.o pci.o usb.o pciclass.o usbclass.o dmi.o sysfs_attr.o sysfs_utils.o names.o -lpci -lmodprobe -lz
ar -cru libldetect.a common.o hid.o modalias.o pciusb.o pci.o usb.o pciclass.o usbclass.o dmi.o sysfs_attr.o sysfs_utils.o names.o
ranlib libldetect.a
ln -sf libldetect.so.0.11.1 libldetect.so.0.11
ln -sf libldetect.so.0.11 libldetect.so
cc -Wall -W -Wstrict-prototypes -Os -fPIC -fvisibility=hidden -g lspcidrake.c libldetect.so -o lspcidrake
lspcidrake.c: In function ‘main’:
lspcidrake.c:107:2: warning: suggest parentheses around ‘&&’ within ‘||’
libldetect.so: undefined reference to `read_toplevel_config'
libldetect.so: undefined reference to `read_config'
collect2: ld returned 1 exit status
make: *** [lspcidrake] Error 1
error: Bad exit status from /home/shlomif/Download/unpack/Mandriva/Mageia/ldetect/BUILDROOT/rpm-tmp.4rz0ZF (%build)
RPM build errors:
Bad exit status from /home/shlomif/Download/unpack/Mandriva/Mageia/ldetect/BUILDROOT/rpm-tmp.4rz0ZF (%build)
error: failed!
shlomif[rpms]:$mageia/ldetect$
[/Q]
Apparently, modprobe.so no longer contains "read_toplevel_config" (which isn't even in the header file) or "read_config" (which is in a patch to the header file added on Mageia, but no longer defined in the sources themselves), and as a result, building ldetect fails. Seems like we have introduced a non-blessed API of modprobe.so.
This prevents upgrading kdiff3 and many other packages.
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
The Case for File Swapping - http://shlom.in/file-swap
If Botticelli were alive today, he’d be working for Vogue.
— http://en.wikiquote.org/wiki/Peter_Ustinov
Please reply to list if it's a mailing list post - http://shlom.in/reply .
More information about the Mageia-dev
mailing list