[Openswan Users] Fedora Core 1 build problem

Ted Kaczmarek tedkaz at optonline.net
Fri Jan 14 14:08:40 CET 2005


On Fri, 2005-01-14 at 17:32 +0100, Paul Wouters wrote:
> On Fri, 14 Jan 2005, Ted Kaczmarek wrote:
> 
> >> What is also strange is that it appears to be trying to build an smp
> >> version when it shouldn't be as well.
> >>
> >> Going to pull down cvs and test with that.
> 
> It's making a up and smp module. The spec was designed to make many
> modules (bibgmem,sp,up,athlon etc) and bundle them into one package. Upon
> runtime, using 'calcgoo' it would figure out the running kernel and use
> that ipsec.o module.
> 
> > I couldn't figure out how the rpm for the kernel modules gets built.
> 
> rpmbuild -ba openswan-2/packaging/redhat/openswan.spec --define 'buildklips 1'
> 
> > make KERNELSRC=/usr/src/linux-2.4 module
> > make KERNELSRC=/usr/src/linux-2.4 minstall
> 
> > Got unresolved symbols, forgot to remove the appended custom in the
> > kernel source MAKEFILE.
> 
> You should prob use KERNELSRC=/lib/modules/`uname -r`/build
> 
> > make uninstall ( didn't remove ipsec.o)
> 
> Uhm, what would we do if the module is loaded? If it is active?
> 
> > http://dag.wieers.com/packages/kernel-module-openswan/kernel-module-
> > openswan.spec
> 
> That is probably a completely different spec file.
> 
> > + /usr/bin/install -d -m0755 /var/tmp/kernel-module-openswan-2.3.0-1-
> > root/lib/modules/2.4.22-1.2199.nptl/kernel/net/openswan
> > + /usr/bin/install -m0644 linux/net/ipsec/ipsec.o /var/tmp/kernel-
> > module-openswan-2.3.0-1-
> > root/lib/modules/2.4.22-1.2199.nptl/kernel/net/openswan
> > /usr/bin/install: cannot stat `linux/net/ipsec/ipsec.o': No such file or
> > directory
> > error: Bad exit status from /var/tmp/rpm-tmp.67666 (%build)
> 
> Can you try this with 2.3.0 using the above hints I provided?

lwdnsq.c:207: error: `buf' undeclared (first use in this function)
lwdnsq.c: In function `main':
lwdnsq.c:237: error: syntax error before "gs"
lwdnsq.c:243: error: `gs' undeclared (first use in this function)
lwdnsq.c:280: warning: implicit declaration of function `isc_mem_create'
lwdnsq.c:280: error: `ISC_R_SUCCESS' undeclared (first use in this
function)
lwdnsq.c:285: warning: implicit declaration of function
`isc_buffer_allocate'
lwdnsq.c:424: error: dereferencing pointer to incomplete type
lwdnsq.c:458: error: dereferencing pointer to incomplete type
make[2]: *** [lwdnsq.o] Error 1
make[2]: Leaving directory
`/usr/src/redhat/BUILD/openswan-2.3.1/programs/lwdnsq'
make[1]: *** [programs] Error 1
make[1]: Leaving directory
`/usr/src/redhat/BUILD/openswan-2.3.1/programs'
make: *** [programs] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.53584 (%build)

This is using CVS and rpmbuild -ba openswan.spec --define 'buildklips 1'

ln -s -
f /usr/src/redhat/BUILD/openswan-2.3.0/linux/net/ipsec/match*.S /usr/src/redhat/BUILD/openswan-2.3.0/BUILD.i386-smp
/usr/bin/make -C /lib/modules/2.4.22-1.2199.nptl/build
BUILDDIR=/usr/src/redhat/BUILD/openswan-2.3.0/BUILD.i386-smp
SUBDIRS=/usr/src/redhat/BUILD/openswan-2.3.0/BUILD.i386-smp
MODULE_DEF_INCLUDE=/usr/src/redhat/BUILD/openswan-2.3.0/packaging/redhat/config-i386-smp.h ARCH=i386 modules
make[1]: Entering directory `/usr/src/linux-2.4.22-1.2199.nptl'
/usr/bin/make -r -f tmp_include_depends all
make[2]: Entering directory `/usr/src/linux-2.4.22-1.2199.nptl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/linux-2.4.22-1.2199.nptl'
/usr/bin/make -C  /usr/src/redhat/BUILD/openswan-2.3.0/BUILD.i386-smp
CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.22-1.2199.nptl/include -Wall -
Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-
aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-
boundary=2 -march=i686 -DMODULE -DMODVERSIONS -
include /usr/src/linux-2.4.22-1.2199.nptl/include/linux/modversions.h"
MAKING_MODULES=1 modules
make[2]: Entering directory
`/usr/src/redhat/BUILD/openswan-2.3.0/BUILD.i386-smp'
make[2]: *** No rule to make target `modules'.  Stop.
make[2]: Leaving directory
`/usr/src/redhat/BUILD/openswan-2.3.0/BUILD.i386-smp'
make[1]: *** [_mod_/usr/src/redhat/BUILD/openswan-2.3.0/BUILD.i386-smp]
Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2199.nptl'
make: *** [module26] Error 2
make: Leaving directory `/usr/src/redhat/BUILD/openswan-2.3.0'
error: Bad exit status from /var/tmp/rpm-tmp.70945 (%build)

This is using 2.3.0 release, with spec file from cvs doing 
rpmbuild -ba openswan.spec --define 'buildklips 1'

> 
> Paul



More information about the Users mailing list