[lfs-dev] LFS SVN and Systemd Report

Bruce Dubbs bruce.dubbs at gmail.com
Thu May 31 12:10:44 PDT 2012


Ken Moffat wrote:
> On Wed, May 30, 2012 at 08:49:05PM -0500, Bruce Dubbs wrote:
>> Now use systemd-lfs-2.patch
>>
>> The build remains:
>>
>>    tar -xf systemd-183.tar.xz
>>    cd systemd-183
>>    patch -Np1 -i ../systemd-lfs-2.patch
>>    sh make.sh
>>    sh install.sh
>>
> 
>  Failed to link:
> 
> CC cdrom_id
> CC ata_id
> CC accelerometer
> /usr/bin/ld: cannot find -ludev
> collect2: error: ld returned 1 exit status
> LD udevd failed
> root in chroot /building/systemd-183#
> 
>  You know I do things differently, so here is my environment in case
> it's my fault:

The environment shouldn't be a factor.  You should have seen:

CC libudev-device-private
CC libudev-device
CC libudev-enumerate
CC libudev-list
CC libudev-monitor
CC libudev-queue-private
CC libudev-queue
CC libudev-util
CC libudev
libudev.so.1 created
...
CC accelerometer
LD udevd
LD udevadm
...
Finished

Look at the make.sh script.  It should have:

########## LINKING

cd build
...
LDFLAGS="-pthread -Lbuild  -lrt -lblkid  -lkmod -L.. -ludev"
link udevd
...

    -- Bruce





More information about the lfs-dev mailing list