#3309: UDev LFS fails to build 'undefined reference to __secure_getenv
--------------------+------------------------
Reporter: CD1212 | Owner: lfs-book@…
Type: task | Status: new
Priority: normal | Milestone: 7.4
Component: Book | Version: SVN
Severity: normal | Keywords:
--------------------+------------------------
At the UDev build stage of the (development) book my build failed with:
{{{
LINK build/udevd
build/udev-local.a(log.o): In function `log_parse_environment':
log.c:(.text.log_parse_environment+0xb): undefined reference to
`__secure_getenv'
log.c:(.text.log_parse_environment+0x31): undefined reference to
`__secure_getenv'
log.c:(.text.log_parse_environment+0x57): undefined reference to
`__secure_getenv'
log.c:(.text.log_parse_environment+0x7d): undefined reference to
`__secure_getenv'
}}}
I fixed the issue by replacing:
{{{
SECURE = $(shell if nm /lib/libc.so.6 | grep -q " secure_getenv"; \
then echo yes; fi)
ifeq "$(SECURE)" "yes"
SECURE_GETENV = SECURE_GETENV
else
SECURE_GETENV = __SECURE_GETENV
endif
}}}
with just
{{{
SECURE_GETENV = SECURE_GETENV
}}}
Felt I should just let you guys know. Hope I submitted this the right way
and it helps you out!
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3309>
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