bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] Compilation errors with GCC 4.3.1


From: Môshe Van der Sterre
Subject: [Bug-cpio] Compilation errors with GCC 4.3.1
Date: Fri, 22 Aug 2008 12:30:34 +0200

Hello,

Compiling cpio 2.9 using GCC 4.3.1 gives errors on my system:

gcc -std=gnu99  -g -O2   -o cpio  copyin.o copyout.o copypass.o
defer.o dstring.o global.o main.o tar.o util.o filemode.o idcache.o
makepath.o userspec.o ../lib/libcpio.a
../lib/libcpio.a(argp-help.o): In function `_option_is_end':
/tmp/tmpcq9WOM/cpio-2.9/lib/argp.h:607: multiple definition of `_option_is_end'
main.o:/tmp/tmpcq9WOM/cpio-2.9/src/../lib/argp.h:607: first defined here
../lib/libcpio.a(argp-help.o): In function `_option_is_short':
/tmp/tmpcq9WOM/cpio-2.9/lib/argp.h:595: multiple definition of
`_option_is_short'
main.o:/tmp/tmpcq9WOM/cpio-2.9/src/../lib/argp.h:595: first defined here
../lib/libcpio.a(argp-help.o): In function `argp_usage':
/tmp/tmpcq9WOM/cpio-2.9/lib/argp.h:589: multiple definition of `argp_usage'
main.o:/tmp/tmpcq9WOM/cpio-2.9/src/../lib/argp.h:589: first defined here

Using GCC 4.2 does not give this error.

Using the following configure line fixes this:
ac_cv_prog_cc_c99=no ./configure --prefix=/usr
I came up with this because I imagined the problem might be caused by
the inlining (see the warnings).

I have attached outputs from the 3 compilation processes.

I am not a member of the bug-cpio list, but If you need aditional info
about my build system just ask.
I have not really tested the resulting binaries, if you want, I can do
some testing.

-- 
Greetings,
Môshe van der Sterre

Attachment: compile-output-error-gcc-4.3
Description: Binary data

Attachment: compile-output-ok-gcc-4.2
Description: Binary data

Attachment: compile-output-ok-gcc-4.3
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]