#3271: Udev/Systemd 197
--------------------+-------------------------------------------------------
 Reporter:  Krejzi  |       Owner:  bdubbs@…                   
     Type:  task    |      Status:  assigned                   
 Priority:  normal  |   Milestone:  7.3                        
Component:  Book    |     Version:  SVN                        
 Severity:  normal  |    Keywords:                             
--------------------+-------------------------------------------------------

Comment(by Krejzi):

 I've tried building systemd-197 on Glibc 2.17.0 system, but it failed with
 following:

 {{{
 LINK build/udevd
 build/udevd.o: In function `main':
 udevd.c:(.text.startup.main+0x9c6): undefined reference to `now'
 udevd.c:(.text.startup.main+0xda3): undefined reference to `now'
 udevd.c:(.text.startup.main+0x142d): undefined reference to `now'
 udevd.c:(.text.startup.main+0x14a8): undefined reference to `now'
 udevd.c:(.text.startup.main+0x1b12): undefined reference to `now'
 build/udevd.o:udevd.c:(.text.startup.main+0x20e3): more undefined
 references to `now' follow
 build/udev-rules.o: In function `udev_rules_check_timestamp':
 udev-rules.c:(.text.udev_rules_check_timestamp+0x44): undefined reference
 to `timespec_load'
 udev-rules.c:(.text.udev_rules_check_timestamp+0x86): undefined reference
 to `timespec_load'
 build/udev-event.o: In function `udev_event_new':
 udev-event.c:(.text.udev_event_new+0x5a): undefined reference to `now'
 build/udev-event.o: In function `udev_event_spawn':
 udev-event.c:(.text.udev_event_spawn+0x425): undefined reference to `now'
 udev-event.c:(.text.udev_event_spawn+0x5e9): undefined reference to `now'
 build/udev-event.o: In function `udev_event_execute_rules':
 udev-event.c:(.text.udev_event_execute_rules+0x516): undefined reference
 to `now'
 build/udev-local.a(log.o): In function `log_dispatch':
 log.c:(.text.log_dispatch+0x2e9): undefined reference to `now'
 build/udev-local.a(libudev-hwdb.o): In function `udev_hwdb_validate':
 libudev-hwdb.c:(.text.udev_hwdb_validate+0x3d): undefined reference to
 `timespec_load'
 libudev-hwdb.c:(.text.udev_hwdb_validate+0x4a): undefined reference to
 `timespec_load'
 collect2: error: ld returned 1 exit status
 make: *** [build/udevd] Error 1
 }}}

 I was using 196-4 tarball. However, I added time-util.c to COMMON_SRCS or
 whatever and build was fixed.

 As for secure_getenv, I think that it should be handled by default on non
 glibc 2.17 because, as Matt pointed out, missing.h has #ifndef guards for
 that function.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3271#comment:6>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to