<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: RH 7.1 and newbie
From: Mark Solhjem <MSolhjem,AT,luthersem,DOT,edu>
Date: Tue, 4 Sep 2001 23:08:42 +0200

Sorry,  I know this has been discussed, but I have a stock redhat 7.1 kernel
2.4.3-12.   

I am trying to compile CIPE.   I have patched the source using this code and
cat patch |patch -p0

diff -ru cipe-1.5.2/conf/aclocal.m4 cipe/conf/aclocal.m4
--- cipe-1.5.2/conf/aclocal.m4  Sat Dec 16 11:49:08 2000
+++ cipe/conf/aclocal.m4        Sat Aug 11 17:00:09 2001
@@ -28,9 +28,9 @@
 #include <$2>
 [$1]
 EOF
-(eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |\
- sed -n -e 's/^"\(.*\)".*$/\1/p' >conftest
 changequote(, )dnl
+(eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |\
+ sed -n -e 's/^[[:space:]]*"\(.*\)".*$/\1/p' >conftest
 set "X" "`cat conftest`"
 changequote([, ])dnl
 ax_result=[$]2
diff -ru cipe-1.5.2/configure cipe/configure
--- cipe-1.5.2/configure        Tue May  1 16:23:51 2001
+++ cipe/configure      Sat Aug 11 17:00:16 2001
@@ -1088,7 +1088,7 @@
 UTS_RELEASE
 EOF
 (eval "$ac_cpp conftest.$ac_ext") 2>&5 |\
- sed -n -e 's/^"\(.*\)".*$/\1/p' >conftest
+ sed -n -e 's/^[[:space:]]*"\(.*\)".*$/\1/p' >conftest
 set "X" "`cat conftest`"
 ax_result=$2
 rm -f conftest*
@@ -1108,7 +1108,7 @@
 LINUX_COMPILER
 EOF
 (eval "$ac_cpp conftest.$ac_ext") 2>&5 |\
- sed -n -e 's/^"\(.*\)".*$/\1/p' >conftest
+ sed -n -e 's/^[[:space:]]*"\(.*\)".*$/\1/p' >conftest
 set "X" "`cat conftest`"
 ax_result=$2
 rm -f conftest*

I have these versions of the files everyone is talking about
[root@test root]# rpm -qa |grep gcc
gcc-g77-2.96-85
gcc-c++-2.96-85
gcc-2.96-85
[root@test root]# rpm -qa |grep cc
gcc-g77-2.96-85
gcc-c++-2.96-85
byacc-1.9-18
gcc-2.96-85

I run configure with these options...  (I want to do bridging)
./configure --enable-protocol=4 --with-linux=/usr/src/linux-2.4.3
--with-linux-include=/usr/include

I get a:

configure: warning: could not find kernel compiler version

And for your reading enjoyment here is the output from the make:

(cd cipe; perl genoptions.pl options.in)
gmake -C lib all
gmake[1]: Entering directory `/root/tem/cipe-1.5.2/lib'
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c cipe_syslog.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c debug.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c dsprintf.c
dsprintf.c: In function `dsprintf':
dsprintf.c:23: warning: implicit declaration of function `strlen'
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c getaddr.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c gethex.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c hex.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c hexdump.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c hexstr.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c parseopt.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c retstatus.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c setsig.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c secchk.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c sighand.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c socks_errlist.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c socks5_open.c
socks5_open.c: In function `socks5_open':
socks5_open.c:54: warning: implicit declaration of function `strlen'
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c socks5_cmd.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c xread.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c xwrite.c
gcc -I/usr//include  -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY
-MD -c xwritev.c
ar rcs libcipe.a cipe_syslog.o debug.o dsprintf.o getaddr.o gethex.o hex.o
hexdump.o hexstr.o parseopt.o retstatus.o setsig.o secchk.o sighand.o
socks_errlist.o socks5_open.o socks5_cmd.o xread.o xwrite.o xwritev.o
gmake[1]: Leaving directory `/root/tem/cipe-1.5.2/lib'
gmake -C 2.4.3-12-i386-db all
gmake[1]: Entering directory `/root/tem/cipe-1.5.2/2.4.3-12-i386-db'
gcc -MD  -I/usr/include -I. -include ./config.h  -I../lib -pipe -O3
-fno-inline-functions -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -o crcgen.o -c ../cipe/crcgen.c
../cipe/crcgen.c: In function `main':
../cipe/crcgen.c:26: warning: implicit declaration of function `exit'
../cipe/crcgen.c:39: warning: implicit declaration of function `strlen'
gcc -MD  -I/usr/include -I. -include ./config.h  -I../lib -pipe -O3
-fno-inline-functions -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -o crc32.o -c ../cipe/crc32.c
gcc  -o crcgen crc32.o crcgen.o 
sed -n '/@api/{n;s,[/*#],,g;s,^,   ,p;}' config.h | ./crcgen - >version.h
gcc -MD  -I/usr/include -I. -include ./config.h  -I../lib -pipe -O3
-fno-inline-functions -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -o ioctl.o -c ../cipe/ioctl.c
In file included from ../cipe/ioctl.c:15:
../cipe/cipe.h:411:8: warning: extra tokens at end of #endif directive
../cipe/ioctl.c: In function `ioctl_setpar':
../cipe/ioctl.c:36: warning: implicit declaration of function `strcpy'
../cipe/ioctl.c: In function `ioctl_setkey':
../cipe/ioctl.c:45: warning: implicit declaration of function `memset'
gcc -MD  -I/usr/include -I. -include ./config.h  -I../lib -pipe -O3
-fno-inline-functions -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -o options.o -c ../cipe/options.c
In file included from ../cipe/ciped.h:17,
                 from ../cipe/options.c:3:
../cipe/cipe.h:411:8: warning: extra tokens at end of #endif directive
gcc -MD  -I/usr/include -I. -include ./config.h  -I../lib -pipe -O3
-fno-inline-functions -Wall -Wstrict-prototypes -fomit-frame-pointer
-fno-strength-reduce -g  -o ciped.o -c ../cipe/ciped.c
In file included from ../cipe/ciped.h:17,
                 from ../cipe/ciped.c:37:
../cipe/cipe.h:411:8: warning: extra tokens at end of #endif directive
../cipe/ciped.c: In function `kxchg':
../cipe/ciped.c:749: warning: implicit declaration of function `time'
gcc -MD -DKCC_BUILD -I. -include ./config.h  -D__KERNEL__
-I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe
-mpreferred-stack-boundary=2 -DMODULE -o bf-i386.o -c ../cipe/bf-i386.S
gcc -MD -DKCC_BUILD -I. -include ./config.h  -D__KERNEL__
-I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe
-mpreferred-stack-boundary=2 -DMODULE -o bf.o -c ../cipe/bf.c
gcc -MD -DKCC_BUILD -I. -include ./config.h  -D__KERNEL__
-I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe
-mpreferred-stack-boundary=2 -DMODULE -o encaps.o -c ../cipe/encaps.c
In file included from ../cipe/encaps.c:15:
../cipe/cipe.h:411:8: warning: extra tokens at end of #endif directive
gcc -MD -DKCC_BUILD -I. -include ./config.h  -D__KERNEL__
-I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe
-mpreferred-stack-boundary=2 -DMODULE -o output.o -c ../cipe/output.c
In file included from ../cipe/output.c:15:
../cipe/cipe.h:411:8: warning: extra tokens at end of #endif directive
../cipe/output.c: In function `cipe_xmit':
../cipe/output.c:280: too few arguments to function `ip_select_ident'
gmake[1]: *** [output.o] Error 1
gmake[1]: Leaving directory `/root/tem/cipe-1.5.2/2.4.3-12-i386-db'
make: *** [all] Error 2

Any one have an idea of where to go or the steps needed?

Mark Solhjem

__________________________________________________

Mark Solhjem
Information Systems Specialist
Luther Seminary Computer Services
__________________________________________________





<< | Thread Index | >> ]    [ << | Date Index | >> ]