Skip to contentSkip to conversation

complie error

LARTC Arindam Haldar 2 participants 3 messages Apr 18, 2002 – Apr 19, 2002

lore
Share & tools
lore
#0 lore raw

hi all,

while compiling iproute2-2.4.7-now-ss010824 with kernel-2.4.18 i got the following error ! ... i need ur help friends !

gcc -D_GNU_SOURCE -O9 -Wstrict-prototypes -Wall -Werror -g -I../include-glibc
-include ../include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.18/include
-I../include -DRESOLVE_HOSTNAMES -c -o utils.o utils.c
cc1: warnings being treated as errors
utils.c: In function `invarg':
utils.c:281: warning: noreturn' function does return utils.c: In function duparg':
utils.c:287: warning: noreturn' function does return utils.c: In function duparg2':
utils.c:293: warning: `noreturn' function does return make[1]: *** [utils.o] Error 1
make[1]: Leaving directory `/usr/local/src/iproute2/lib'
make: *** [all] Error 2

thanking u in anticipation !

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 7 lines · Arindam Haldar

hi all,

while compiling iproute2-2.4.7-now-ss010824 with kernel-2.4.18 i got the following error ! ... i need ur help friends !

gcc -D_GNU_SOURCE -O9 -Wstrict-prototypes -Wall -Werror -g

Remove -Werror

Quoted 5 lines
(quoted diff) +0 -3
-I../include-glibc
-include ../include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.18/include
-I../include -DRESOLVE_HOSTNAMES   -c -o utils.o utils.c

cc1: warnings being treated as errors
utils.c: In function `invarg':

Quoted 8 lines

utils.c:281: warning: noreturn' function does return utils.c: In function duparg':
utils.c:287: warning: noreturn' function does return utils.c: In function duparg2':
utils.c:293: warning: `noreturn' function does return make[1]: *** [utils.o] Error 1
make[1]: Leaving directory `/usr/local/src/iproute2/lib'
make: *** [all] Error 2

Boy this sucks :-)

It is probaby best to look somewhere above line 281 and remove the noreturn statement.

Regards,
bert

Signature · 6 lines
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Arindam Haldar

thanx bert
it worked !!

Quoted 31 lines · bert hubert
Quoted 8 lines · Arindam Haldar

hi all,

while compiling iproute2-2.4.7-now-ss010824 with kernel-2.4.18 i got the following error ! ... i need ur help friends !

gcc -D_GNU_SOURCE -O9 -Wstrict-prototypes -Wall -Werror -g

Remove -Werror

Quoted 5 lines
(quoted diff) +0 -3
-I../include-glibc
-include ../include-glibc/glibc-bugs.h -I/usr/src/linux-2.4.18/include
-I../include -DRESOLVE_HOSTNAMES   -c -o utils.o utils.c

cc1: warnings being treated as errors
utils.c: In function `invarg':

Quoted 9 lines

utils.c:281: warning: noreturn' function does return utils.c: In function duparg':
utils.c:287: warning: noreturn' function does return utils.c: In function duparg2':
utils.c:293: warning: `noreturn' function does return make[1]: *** [utils.o] Error 1
make[1]: Leaving directory `/usr/local/src/iproute2/lib'
make: *** [all] Error 2

Boy this sucks :-)

Quoted 7 lines

It is probaby best to look somewhere above line 281 and remove the noreturn statement.

Regards,
bert

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/