Date: Thu, 7 Aug 2008 23:07:03 -0700 (PDT) From: Unga <unga888@yahoo.com> To: freebsd-stable@freebsd.org Subject: sysinstall compilation issue Message-ID: <255533.64647.qm@web57001.mail.re3.yahoo.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?255533.64647.qm>