Summary: Building tun tap on Solaris x86

From: Andreas Höschler <>
Date: Fri May 15 2009 - 11:03:09 EDT
Dear managers,

thanks for your feedback. I can successfully build tun tap on SPARC 
with gcc. On x86 it fails with the error shown below.

gcc -v
Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.4/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as 
--with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj 
--enable-shared --enable-languages=c,c++,objc
Thread model: posix
gcc version 3.4.4

  I suppose using the Studio C compiler from Sun will help here. I am 
just wondering, why gcc (built from the same sources) on SPARC works!? 
In the meanwhile I have installed the packages from blastwave

> 	/opt/csw/bin/pkg-get -i tun
> 	/opt/csw/bin/pkg-get -i openvpn

on both machines (client and server). They work like a charm!

Thanks a lot!



> we are in the process of replacing an old sparc server with a new x86
> machine. The new machine has to run tomorrow, so this is really urgent.
> A branch office is connected to this server via openvpn. We are trying
> to set this up as follows:
> On the server we do
> 	cd /usr/src
> 	gunzip lzo-2.02.tar.gz
> 	tar xvf lzo-2.02.tar
> 	cd lzo-2.02
> 	./configure
> 	make
> 	make install
> We install tun and tap
> 	cd /usr/src
> 	gunzip tuntap.tar.gz
> 	tar xvf tuntap.tar
> 	cd tuntap
> 	./configure
> 	make
> 	....
> While trying to build tuntap on the new machine we get
> -bash-3.00# make
> 05/10/2009\" -O2 -Wall -D_KERNEL -I. -m64 -mcmodel=kernel -mno-red-zone
> -c tun.c -o tun.o -DTUNTAP_TUN
> tun.c:1: error: code model `kernel' not supported in the 32 bit mode
> tun.c:1: sorry, unimplemented: 64-bit mode not compiled in
> make: *** [tun.o] Error 1
sunmanagers mailing list
Received on Fri May 15 11:03:49 2009

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:14 EST