Hallo,
I hope my attempt to write "english" is readable.
I am trying to work throu the hlfs book. I am using
HLFS-BOOK-SVN-20060209-uClibc-NOCHUNKS.html.
In 5.6.1. Installation of uClibc I run into problems. The uClib configuration
starts asking questions the BOOk does not mention.
Enable security options (UCLIBC_SECURITY) [Y/n] y
Build utilities as ET_DYN/PIE executables (UCLIBC_BUILD_PIE) [Y/n/?] y
Add the arc4random() function to the library (UCLIBC_HAS_ARC4RANDOM) [N/y/?]
(NEW)
Use arc4randomII() in mktemp(3) (MKTEMP_USE_ARC4RANDOM) [N/y/?] (NEW)
Make arc4random() use sysctl if /dev is not accessible (ARC4RANDOM_USE_SYSCTL)
[N/y/?] (NEW)
Make propolice use arc4randomII() (SSP_USE_ARC4RANDOM) [N/y/?] (NEW)
I think NEW is good so I answer y on all questions. The result:locale.c:168:2:
#error locales enabled, but not data other than for C locale!
locale.c: In function `update_hr_locale':
locale.c:215: error: `__locale_mmap' undeclared (first use in this function)
locale.c:215: error: (Each undeclared identifier is reported only once
locale.c:215: error: for each function it appears in.)
locale.c:216: error: `__LOCALE_DATA_WIDTH_LOCALES' undeclared (first use in
this function)
So something wrong with LOCALE. I did an (from the BOOK )
install -m444 ../uClibc-locale-030818.tgz extra/locale/
which placed a the bz2 file in the extra/locale dir. I do not understand the
use of an bz2 archive there so I unpack it and did a make CROSS=${target}-
all
which works.
If I choose NO as answer I get:
locale.c:168:2: #error locales enabled, but not data other than for C locale!
locale.c: In function `update_hr_locale':
locale.c:215: error: `__locale_mmap' undeclared (first use in this function)
locale.c:215: error: (Each undeclared identifier is reported only once
locale.c:215: error: for each function it appears in.)
locale.c:216: error: `__LOCALE_DATA_WIDTH_LOCALES' undeclared (first use in
this function)
again my repair action, unpacking the archive.
This time the following compiler error:
ssp.c: In function `__guard_setup':
ssp.c:98: warning: static declaration of '__stack_smash_handler' follows
non-static declaration
ssp.c:96: warning: previous declaration of '__stack_smash_handler' was here
ssp.c:121: error: syntax error at end of input
It seems ssp.c has a problem.
The function void __guard_setup(void) seems to be missing 2 "}" closing quotes
A brute force appending 2 } at the end solves the compiling problem, but I
fear the resulting library.
Best regards,
Enno Oosterhuis
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page