#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 bdubbs@…):
The only thing needed in udev-lfs-196-4/cfg.h for glibc-2.17 is
#define HAVE_SECURE_GETENV 1
If it's not defined though and glibc is older (in my case 2.16), I get a
bunch of warnings:
{{{
src/libudev/libudev.c:203:9: warning: implicit declaration of function
'secure_getenv' [-Wimplicit-function-declaration]
src/libudev/libudev.c:203:13: warning: assignment makes pointer from
integer without a cast [enabled by default]
...
build/udev-local.a(libudev.o): In function `udev_new':
libudev.c:(.text.udev_new+0x1e3): undefined reference to `secure_getenv'
collect2: error: ld returned 1 exit status
make: *** [build/udevd] Error 1
}}}
If I add only
#define secure_getenv __secure_getenv
to cfg.h, I get a clean build.
Perhaps a note in the systemd section "systemd-197 is not recommended for
systems with glibc older than 2.17" would be appropriate.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3271#comment:5>
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