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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"