[Openswan Users] Fedora Core 1 build problem

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


On Fri, 2005-01-14 at 06:46 -0500, Ted Kaczmarek wrote:
> On Thu, 2005-01-13 at 22:40 +0100, Paul Wouters wrote:
> > On Thu, 13 Jan 2005, Ted Kaczmarek wrote:
> > 
> > >> Is there a mismatch between CONFIG_KLIPS vs CONFIG_IPSEC?
> > > Hve no clue, where can I check?
> > 
> > I just checked 2.3.0, and indeed there is. Either rename CONFIG_IPSEC to
> > CONFIG_KLIPS in the packaging/redhat/config-* files, or grab these from
> > cvs (PRE2_3 branch)
> No joy.
> > 
> > >> How are you building this? Since openswan-2.3.0-1.src.rpm uses the module26
> > >> target, so it cannot build out of the box on a 2.4 kernel.
> > >> If you manually untarred the source, use the packaging/redhat/openswan.spec
> > >> file and change 'modules26' to 'module
> I did not see any reference to modules26 in the spec file, but their is
> an openswan26.spec provided.
> > 
> > this change was also not put it, apparently not to break klips on 2.4 kernels.
> > You might need to manually change the make module to make module26 in the spec
> > file to try a build of KLIPS on 2.6.
> 
> 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. 
> 
> > Paul
> 
> _______________________________________________

Sorry about replying to myself but...

I checked out CVS, and decided to attempt to just use the packaging
files against the 2.3.0 version.

I couldn't figure out how the rpm for the kernel modules gets built.

So,
I attempted 
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.

make uninstall ( didn't remove ipsec.o)
make clean

Tried again.
unresolved sysmbols

Grabbed
 http://dag.wieers.com/packages/kernel-module-openswan/kernel-module-
openswan.spec

Removed patch, and edited version number

Everything built fine but the rpm did not package correctly,
I was able to load ipsec module with no problem.

KLIPS module built successfully.
ipsec.o is in /usr/src/redhat/BUILD/openswan-2.3.0/modobj

-rw-r--r--  1 root root 412227 Jan 14 08:03 ipsec.o
   text    data     bss     dec     hex filename
 316429    9312    5856  331597   50f4d ipsec.o

use make minstall as root to install it

=========================================================

+ /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)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.67666 (%build)

I will follow up with Dag on this as well.

Getting closer :-)

Regards,

Ted



More information about the Users mailing list