﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
3309	UDev LFS fails to build 'undefined reference to __secure_getenv	CD1212	lfs-book@…	"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!

"	task	closed	normal	7.4	Book	SVN	normal	invalid		
