This problem was encountered using HLFS SVN-20061016 when compiling the
sysklogd package.

Apply the patch, sysklogd-1.4.1-fixes-1.patch.  Then execute the make
command: make RPM_OPT_FLAGS="-DFORTIFY_SOURCE=0"

////// MAKE OUTPUT //////
gcc -DFORTIFY_SOURCE=0 -O3 -DSYSV -fomit-frame-pointer -Wall
-fno-strength-reduce -DALLOW_KERNEL_LOGGING -c syslog.c
syslog.c:85: error: expected declaration specifiers or '...' before
numeric constant
syslog.c:86: error: conflicting types for '__syslog_chk'
/usr/include/bits/syslog.h:26: error: previous declaration of
'__syslog_chk' was here
syslog.c:95: error: expected ')' before numeric constant
syslog.c:99: error: expected identifier or '(' before '{' token
make: *** [syslog.o] Error 1


I believe the problem is related to FORTIFY_SOURCE=0. Using
RPM_OPT_FLAGS="-D_FORTIFY_SOURCE=0", syslog.c is correctly compiled, but
there are also other problems:

////// MAKE OUTPUT //////
gcc -D_FORTIFY_SOURCE=0 -O3 -DSYSV -fomit-frame-pointer -Wall
-fno-strength-reduce -DFSSTND  -c ksym_mod.c
In file included from ksym_mod.c:97:
module.h:31:24: error: asm/atomic.h: No such file or directory
ksym_mod.c:102:27: error: linux/linkage.h: No such file or directory
make: *** [ksym_mod.o] Error 1

This is addressed in:
http://linuxfromscratch.org/pipermail/lfs-dev/2006-July/057587.html
Removing the offending #include's appears to solve the issue.


Robert

--
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to