bug-gnu-utils
[Top][All Lists]
Advanced

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

GNU cpio compile problem


From: Daniel Savard
Subject: GNU cpio compile problem
Date: Wed, 14 Nov 2001 12:43:11 -0500

Hi,

I am trying to make the GNU cpio utility (version 2.4.2) using the gcc 3.0.2
compiler. The make failed on the userspec.c file compilation. I then tried to
compile with gcc 2.95.3 with the following result:

-----  BEGIN ---------------------
gcc -c  -DRETSIGTYPE=void -DHAVE_SYS_MTIO_H=1 -DSTDC_HEADERS=1 
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UTIME_H=1 
-DHAVE_STRERROR=1 -DHAVE_LCHOWN=1 -DHAVE_VPRINTF=1 -DHAVE_ALLOCA_H=1 
-DHAVE_ALLOCA=1 -DHAVE_DIRENT_H=1  -I. -g -O userspec.c
userspec.c:85: macro `strdup' used without args
make: *** [userspec.o] Error 1
----- END -----------------------

gcc 3.0.2 is giving the following error message:

----- BEGIN --------------------------
gcc -c  -DRETSIGTYPE=void -DHAVE_SYS_MTIO_H=1 -DHAVE_NETDB_H=1 -DSTDC_HEADERS=1 
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UTIME_H=1 
-DHAVE_STRERROR=1 -DHAVE_LCHOWN=1 -DHAVE_VPRINTF=1 -DHAVE_ALLOCA_H=1 
-DHAVE_ALLOCA=1 -DHAVE_DIRENT_H=1  -I. -g -O userspec.c
userspec.c:85: parse error before "__extension__"
userspec.c:85: `__len' undeclared here (not in a function)
userspec.c:85: initializer element is not constant
userspec.c:85: parse error before "if"
userspec.c:85: conflicting types for `__retval'
userspec.c:85: previous declaration of `__retval'
userspec.c:85: warning: data definition has no type or storage class
userspec.c:85: parse error before '}' token
make: *** [userspec.o] Error 1
----- END --------------------------------

I searched for a patch, but I didn't find any. Can you help with this?

-- 

================================
Daniel Savard
CIDS Inc.
551, boul. Sir Wilfrid Laurier
suite 105
Beloeil, (Québec)
Canada

J3G 4J1

Tél: (450) 467-8014
Internet: address@hidden
================================




reply via email to

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