[Openswan Users] Compile problems
Pavel V. Kuznetsov
pvk at mgn.ru
Thu Jun 10 14:09:06 CEST 2004
Hello and sorry for my bad english!
I try to compile openswan-2.1.2 on Slackware 8.0 with kernel 2.6.4 and get
this errors:
/usr/src/openswan-2.1.2# make programs
make[1]: Entering directory `/usr/src/openswan-2.1.2/doc'
make[1]: Nothing to be done for `programs'.
make[1]: Leaving directory `/usr/src/openswan-2.1.2/doc'
make[1]: Entering directory `/usr/src/openswan-2.1.2/lib'
make[2]: Entering directory `/usr/src/openswan-2.1.2/lib/libfreeswan'
cc -I. -I../../linux/lib/libfreeswan -I../../linux/include -I../.. -g -O3
-Wall -Wpointer-arith -Wcast-qual -Wstrict-prototype
s -Wbad-function-cast -DNAT_TRAVERSAL -c -o addrtoa.o
../../linux/lib/libfreeswan/addrtoa.c
In file included from ../../linux/include/openswan.h:34,
from ../../linux/lib/libfreeswan/addrtoa.c:18:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:55: syntax
error before "typedef"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:60: syntax
error before "__USING_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h: In function
`__USING_NAMESPACE_STD':
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:71: storage
class specified for parameter `__FILE'
In file included from /usr/include/_G_config.h:14,
from /usr/include/libio.h:30,
.................
.................
../../linux/include/openswan.h:320: `addrtoa' previously declared here
../../linux/lib/libfreeswan/addrtoa.c:33: syntax error before "struct"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:71: parm types
given both in parmlist and separately
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:60: parameter
name omitted
../../linux/lib/libfreeswan/addrtoa.c:38: `addr' undeclared (first use in
this function)
../../linux/lib/libfreeswan/addrtoa.c:38: (Each undeclared identifier is
reported only once
../../linux/lib/libfreeswan/addrtoa.c:38: for each function it appears in.)
../../linux/lib/libfreeswan/addrtoa.c:45: `format' undeclared (first use
in this function)
../../linux/lib/libfreeswan/addrtoa.c:56: warning: implicit declaration of
function `ultoa'
../../linux/lib/libfreeswan/addrtoa.c:62: `dstlen' undeclared (first use
in this function)
../../linux/lib/libfreeswan/addrtoa.c:65: `dst' undeclared (first use in
this function)
make[2]: *** [addrtoa.o] Error 1
make[2]: Leaving directory `/usr/src/openswan-2.1.2/lib/libfreeswan'
make[1]: *** [programs] Error 1
make[1]: Leaving directory `/usr/src/openswan-2.1.2/lib'
make: *** [programs] Error 1
When I try to compile it on slackware-9.1 everything fine!!
I can't just reinstall slackware 8.0 because it's a production server, but
I can upgrade packages.
Upgrading gcc-2.95.3 up to gcc-3.2.3 does not change anything :(((
Please help.
Best regards, Pavel
More information about the Users
mailing list