[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compile Problem with GCC 3.02 and GCC 2.95-3
From: |
Bjoern Hillebrand |
Subject: |
Compile Problem with GCC 3.02 and GCC 2.95-3 |
Date: |
Wed, 09 Jan 2002 16:10:32 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.7) Gecko/20011221 |
Hi!
I try to compile my own Linux with LFS (www.linuxfromscratch.org). When
i have to compile the Texinfo package my GCC aborts with errors.
LFS 3.1 comes with version 4.0 and the GCC compiler is version 3.02. GCC
2.95-3 also aborts.
I am using Slackware 8 with glibc 2.2.3 and GCC 3.02. GCC uses no
CFLAGS or CXXFLAGS.
The error appeared in the info.c. I tried to fix them and then it
worked. I don´t know whether my system or the source code produces the
error.
You can take a look at the log files i´ ve made and decide on your own ;-)
btw: The little bugfix doesn´t seems perfect. My C knowledge isn´t good
enough to fix it.
bye.
// File info.c in package texinfo-4.0
static void
info_short_help ()
{
/*
THIS FUNCTION HAS BEEN MODIFIED !!!!!!
*/
printf (_("\
Usage: %s [OPTION]... [MENU-ITEM...]\n\
\n\
Read documentation in Info format.\n\
\n\
Options:\n\
--apropos=SUBJECT look up SUBJECT in all indices of all manuals.\n\
--directory=DIR add DIR to INFOPATH.\n\
--dribble=FILENAME remember user keystrokes in FILENAME.\n\
--file=FILENAME specify Info file to visit.\n\
--help display this help and exit.\n\
--index-search=STRING go to node pointed by index entry STRING.\n\
--node=NODENAME specify nodes in first visited Info file.\n\
--output=FILENAME output selected nodes to FILENAME.\n\
--restore=FILENAME read initial keystrokes from FILENAME.\n\
--show-options, --usage go to command-line options node.\n\
--subnodes recursively output menu items.\n%s\
--vi-keys use vi-like and less-like key bindings.\n\
--version display version information and exit.\n\
\n\
The first non-option argument, if present, is the menu entry to start from;\n\
it is searched for in all `dir' files along INFOPATH.\n\
If it is not present, info merges all `dir' files and shows the result.\n\
Any remaining arguments are treated as the names of menu\n\
items relative to the initial node visited.\n\
\n\
Examples:\n\
info show top-level dir menu\n\
info emacs start at emacs node from top-level dir\n\
info emacs buffers start at buffers node within emacs manual\n\
info --show-options emacs start at node with emacs' command line options\n\
info -f ./foo.info show file ./foo.info, not searching dir\n\
\n\
Email bug reports to address@hidden,\n\
general questions and discussion to address@hidden
"),
program_name,""
/*
#ifdef __MSDOS__
"\
--speech-friendly be friendly to speech synthesizers.\n"
#else
""
#endif
*/
);
xexit (0);
}
make all-recursive
make[1]: Entering directory `/root/texinfo-4.0'
Making all in intl
make[2]: Entering directory `/root/texinfo-4.0/intl'
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 intl-compat.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 bindtextdom.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 dcgettext.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 dgettext.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 gettext.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 finddomain.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 loadmsgcat.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 localealias.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 textdomain.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 l10nflist.c
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DGNULOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale:.\" -DHAVE_CONFIG_H -I.. -I.
-I../intl -I../lib -g -O2 explodename.c
rm -f libintl.a
ar cru libintl.a intl-compat.o bindtextdom.o dcgettext.o dgettext.o gettext.o
finddomain.o loadmsgcat.o localealias.o textdomain.o l10nflist.o explodename.o
ranlib libintl.a
make[2]: Leaving directory `/root/texinfo-4.0/intl'
Making all in lib
make[2]: Entering directory `/root/texinfo-4.0/lib'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -g -O2 -c getopt.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -g -O2 -c getopt1.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -g -O2 -c substring.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -g -O2 -c xexit.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -g -O2 -c xmalloc.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -g -O2 -c xstrdup.c
rm -f libtxi.a
ar cru libtxi.a getopt.o getopt1.o substring.o xexit.o xmalloc.o xstrdup.o
ranlib libtxi.a
make[2]: Leaving directory `/root/texinfo-4.0/lib'
Making all in info
make[2]: Entering directory `/root/texinfo-4.0/info'
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c dir.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c display.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c dribble.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c echo-area.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c filesys.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c footnotes.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c gc.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c indices.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c info-utils.c
gcc -DINFODIR=\"/usr/local/info\" -DLOCALEDIR=\"/usr/local/share/locale\"
-DHAVE_CONFIG_H -I. -I../lib -I../intl -I.. -I. -g -O2 -c info.c
make[2]: Leaving directory `/root/texinfo-4.0/info'
make[1]: Leaving directory `/root/texinfo-4.0'
info.c:567:1: directives may not be used inside a macro argument
info.c:567:1: unterminated argument list invoking macro "printf"
info.c: In function `info_short_help':
info.c:571: parse error before string constant
make[2]: *** [info.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for a BSD compatible install... /usr/bin/ginstall -c
checking for ranlib... ranlib
checking for POSIXized ISC... no
checking for minix/config.h... no
checking for sigblock... yes
checking for tgetent in -lncurses... yes
checking for ncurses/termcap.h... yes
checking whether stat file-mode macros are broken... no
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for pwd.h... yes
checking for string.h... yes
checking for strings.h... yes
checking for termcap.h... yes
checking for termio.h... yes
checking for termios.h... yes
checking for unistd.h... yes
checking for sys/fcntl.h... yes
checking for sys/file.h... yes
checking for sys/ptem.h... no
checking for sys/time.h... yes
checking for sys/ttold.h... no
checking for sys/wait.h... yes
checking POSIX termios... yes
checking whether use of TIOCGWINSZ requires sys/ioctl.h... yes
checking for off_t... yes
checking return type of signal handlers... void
checking for working const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for memory.h... yes
checking for stdlib.h... yes
checking whether strerror is declared... yes
checking whether strcasecmp is declared... yes
checking whether strncasecmp is declared... yes
checking whether strcoll is declared... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for working strcoll... yes
checking for vprintf... yes
checking whether setvbuf arguments are reversed... no
checking for setvbuf... yes
checking for getcwd... yes
checking for memset... yes
checking for bzero... yes
checking for strchr... yes
checking for sigprocmask... yes
checking for sigsetmask... yes
checking for memcpy... yes
checking for memmove... yes
checking for strdup... yes
checking for strcasecmp... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for library with termcap variables... ncurses
checking for inline... inline
checking for size_t... yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for argz.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getcwd... (cached) yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for stpcpy... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... cs de de_AT eo fr nl no ru
updating cache ./config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating info/Makefile
creating intl/Makefile
creating lib/Makefile
creating makeinfo/Makefile
creating makeinfo/tests/Makefile
creating po/Makefile.in
creating util/Makefile
creating config.h
linking ./intl/libgettext.h to intl/libintl.h
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Compile Problem with GCC 3.02 and GCC 2.95-3,
Bjoern Hillebrand <=