[Mageia-dev] Building ldetect on Cauldron is broken.

D.Morgan dmorganec at gmail.com
Sat Oct 1 13:14:00 CEST 2011


On Sat, Oct 1, 2011 at 12:16 PM, Shlomi Fish <shlomif at shlomifish.org> wrote:
> 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

tvignaud is working on it, he just need to finish to port iirc.

I add thierry as cc: of this mail to have his input about this.


More information about the Mageia-dev mailing list