[Openswan Users] Fedora Core 1 build problem

Paul Wouters paul at xelerance.com
Fri Jan 14 17:32:24 CET 2005


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?

Paul
-- 

"At best it is a theory, at worst a fantasy" -- Michael Crichton



More information about the Users mailing list