This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/714: Cannot compile libiberty


>Number:         714
>Category:       gdb
>Synopsis:       Cannot compile libiberty
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 20 06:38:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     mmokrejs@natur.cuni.cz
>Release:        current cvs
>Organization:
>Environment:

>Description:
Hi,
  I have a problem compiling gdb/libiberty using current cvs tree, but also using gdb-5.2.1. Actually, same occurs with newer versions of gcc, binutils etc. No surprise. The problem (which I've already seen by google search reported by other earlier) is still present and is:

gcc -c -DHAVE_CONFIG_H -I/software/@sys/usr/include -I/software/@sys/usr/include/ncurses -I/software/@sys/usr/openssl/include -I. -I./../include  -W -Wall -Wtraditional -pedantic concat.c -o concat.o
concat.c:72: warning: ANSI does not permit the keyword `inline'
concat.c:73: warning: ANSI does not permit the keyword `inline'
concat.c:87: warning: ANSI does not permit the keyword `inline'
concat.c:88: warning: ANSI does not permit the keyword `inline'
concat.c: In function `concat_length':
concat.c:115: warning: implicit declaration of function `VA_OPEN'
concat.c:115: `args' undeclared (first use in this function)
concat.c:115: (Each undeclared identifier is reported only once
concat.c:115: for each function it appears in.)
concat.c:116: warning: implicit declaration of function `VA_FIXEDARG'
concat.c:116: parse error before `const'
concat.c:118: warning: implicit declaration of function `VA_CLOSE'
concat.c: In function `concat_copy':
concat.c:130: warning: function `VA_OPEN' was previously declared within a block
concat.c:130: `args' undeclared (first use in this function)
concat.c:131: warning: function `VA_FIXEDARG' was previously declared within a block
concat.c:131: parse error before `char'
concat.c:132: parse error before `const'
concat.c:135: warning: function `VA_CLOSE' was previously declared within a block
concat.c: In function `concat_copy2':
concat.c:147: warning: function `VA_OPEN' was previously declared within a block
concat.c:147: `args' undeclared (first use in this function)
concat.c:148: warning: function `VA_FIXEDARG' was previously declared within a block
concat.c:148: parse error before `const'
concat.c:150: warning: function `VA_CLOSE' was previously declared within a block
concat.c: In function `concat':
concat.c:161: warning: function `VA_OPEN' was previously declared within a block
concat.c:161: `args' undeclared (first use in this function)
concat.c:162: warning: function `VA_FIXEDARG' was previously declared within a block
concat.c:162: parse error before `const'
concat.c:164: warning: function `VA_CLOSE' was previously declared within a block
concat.c:168: parse error before `const'
concat.c: In function `reconcat':
concat.c:198: warning: function `VA_OPEN' was previously declared within a block
concat.c:198: `args' undeclared (first use in this function)
concat.c:199: warning: function `VA_FIXEDARG' was previously declared within a block
concat.c:199: parse error before `char'
concat.c:200: parse error before `const'
concat.c:202: warning: function `VA_CLOSE' was previously declared within a block
concat.c:206: parse error before `char'
concat.c:207: parse error before `const'
make[1]: *** [concat.o] Error 1
make[1]: Leaving directory `/scratch/src/libiberty'

>How-To-Repeat:
See above. I have Solaris 5.6, gcc-2.95.3, GNU ld/as from binutils 2.11.2.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]