SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm working on compiling version 1.6.0 of the CIPE module on my Slackware 12.1 machine with kernel version 2.6.24.5-smp.
I did have an issue with the configure script not recognizing my kernel version but after doing some research online found a solution. I had to edit the KVERS variable to manually set my kernel version. Now the configure script runs without any errors (I mention this just in case it could have ramifications on what I'm trying to do).
However, I'm now getting an error when I run "make". Here is the ouput I receive:
Code:
gmake -C lib all
gmake[1]: Entering directory `/usr/src/cipe-1.6.0/lib'
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c cipe_syslog.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c debug.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c dsprintf.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c getaddr.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c gethex.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c hex.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c hexdump.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c hexstr.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c parseopt.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c retstatus.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c setsig.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c secchk.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c sighand.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c socks_errlist.c
gcc -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:58: warning: pointer targets in passing argument 2 of 'writen' differ in signedness
socks5_open.c:60: warning: pointer targets in passing argument 2 of 'writen' differ in signedness
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c socks5_cmd.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c xread.c
gcc -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -Wmissing-prototypes -DHAVE_CONFIG_H -DLIBRARY -MD -c xwrite.c
gcc -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 `/usr/src/cipe-1.6.0/lib'
gmake -C 2.6.24.5-smp-i386-SMP-cb all
gmake[1]: Entering directory `/usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb'
ln -sf ../cipe/*.[chS] .
ln -sf crc32.c ucrc32.c
gcc -Wp,-MD,.crcgen.o.d -I/usr/src/linux-2.6.24.5/include -I. -include ./config.h -I/usr/src/linux-2.6.24.5/include -I../lib -pipe -O3 -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -o crcgen.o -c crcgen.c
crcgen.c: In function 'main':
crcgen.c:37: warning: pointer targets in passing argument 2 of 'crc32' differ in signedness
crcgen.c:41: warning: pointer targets in passing argument 2 of 'crc32' differ in signedness
gcc -Wp,-MD,.ucrc32.o.d -I/usr/src/linux-2.6.24.5/include -I. -include ./config.h -I/usr/src/linux-2.6.24.5/include -I../lib -pipe -O3 -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -o ucrc32.o -c ucrc32.c
gcc -o crcgen crcgen.o ucrc32.o
sed -n '/@api/{n;s,[/*#],,g;s,^, ,p;}' config.h | ./crcgen - >version.h
gcc -Wp,-MD,.ciped.o.d -I/usr/src/linux-2.6.24.5/include -I. -include ./config.h -I/usr/src/linux-2.6.24.5/include -I../lib -pipe -O3 -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -o ciped.o -c ciped.c
ciped.c: In function 'opendev':
ciped.c:345: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness
ciped.c:401: warning: pointer targets in initialization differ in signedness
ciped.c:416: warning: pointer targets in passing argument 1 of 'gethex' differ in signedness
ciped.c:417: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ciped.c: In function 'kxchg':
ciped.c:752: warning: pointer targets in passing argument 2 of 'ctrl' differ in signedness
gcc -Wp,-MD,.options.o.d -I/usr/src/linux-2.6.24.5/include -I. -include ./config.h -I/usr/src/linux-2.6.24.5/include -I../lib -pipe -O3 -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -o options.o -c options.c
gcc -Wp,-MD,.ioctl.o.d -I/usr/src/linux-2.6.24.5/include -I. -include ./config.h -I/usr/src/linux-2.6.24.5/include -I../lib -pipe -O3 -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -g -o ioctl.o -c ioctl.c
gcc -o ciped-cb ciped.o options.o ioctl.o ucrc32.o -L../lib -lcipe
gmake -C /usr/src/linux-2.6.24.5 SUBDIRS=/usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb modules
gmake[2]: Entering directory `/usr/src/linux-2.6.24.5'
CC [M] /usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb/module.o
In file included from /usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb/../cipe/cipe.h:161,
from /usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb/../cipe/module.c:15:
/usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb/../cipe/cryptoapi.h:94: error: redefinition of 'crypto_tfm_ctx'
include/linux/crypto.h:509: error: previous definition of 'crypto_tfm_ctx' was here
In file included from /usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb/../cipe/module.c:15:
/usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb/../cipe/cipe.h:274:1: warning: "CURRENT_TIME_SEC" redefined
In file included from include/linux/skbuff.h:19,
from include/linux/if_ether.h:113,
from include/linux/netdevice.h:29,
from /usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb/../cipe/cipe.h:152,
from /usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb/../cipe/module.c:15:
include/linux/time.h:106:1: warning: this is the location of the previous definition
gmake[3]: *** [/usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb/module.o] Error 1
gmake[2]: *** [_module_/usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb] Error 2
gmake[2]: Leaving directory `/usr/src/linux-2.6.24.5'
gmake[1]: *** [all25] Error 2
gmake[1]: Leaving directory `/usr/src/cipe-1.6.0/2.6.24.5-smp-i386-SMP-cb'
make: *** [all] Error 2
Note the errors at the bottom of the output. Has anyone encountered this problem before or know of a potential solution?
Here is the site for the CIPE project just in case:
I was able to download the patch and make some of the the suggested changes to one of the source code files. However, I'm not sure what to do to install the patch. I tried running it as a regular shell script (./cipe-2.6.14.patch) but it doesn't seem to work. Here is the contents of the patch file:
Does this have to be included in the compilation process somehow so that the patch is compiled as part of the module? I suspect this should work with some tinkering since I have another linux machine with the 2.6.x kernel that is using CIPE (I didn't set it up though).
Patch the source by executing the following command in the build directory:
Code:
$ patch -p0 < /path/to/cipe-2.6.14.patch
Then just compile as usual. The patch just edits a few files, adding (or removing) lines from the listed .c files. When they are patched, it should compile properly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.