sysinstall compilation issue
Unga
unga888 at yahoo.com
Fri Aug 8 06:07:04 UTC 2008
Hi
This is i386 RELENG_7.
Following section of the /usr/src/usr.sbin/sysinstall/Makefile does not generate C code properly:
makedevs.c: Makefile rtermcap
echo '#include <sys/types.h>' > makedevs.c
${RTERMCAP} ansi | \
file2c 'const char termcap_ansi[] = {' ',0};' \
>> makedevs.c
At compile time, above expands to:
TERMCAP=/usr/src/usr.sbin/sysinstall/../../share/termcap/termcap.src ./rtermcap ansi | file2c 'const char termcap_ansi[] = {' ',0};' >> makedevs.c
Which generates C code as follows:
const char termcap_ansi[] = {
,0};
That is, it generates 3 lines, which results a compilation error.
I presume, intended generated code should be:
const char termcap_ansi[] = {' ',0};
Am I right?
That intended code can be generated by a modified statement as:
TERMCAP=/usr/src/usr.sbin/sysinstall/../../share/termcap/termcap.src ./rtermcap ansi | file2c "const char termcap_ansi[] = {""' ',0};"
What is wrong at my end?
Note, I linked the rtermcap with ncursesw libraries, can that be the cause? Any ideas?
Many thanks in advance.
Kind regards
Unga
More information about the freebsd-stable
mailing list