tag:blogger.com,1999:blog-8547845480464472138.post7217687053888981795..comments2023-06-30T15:42:54.481+02:00Comments on Computer science Experience Knowledge SHAring (CEKSHA): Compile LZO, TUN and OpenVPN under Solaris 64bits (revised)Bertrand BENOIThttp://www.blogger.com/profile/02926938448334038552noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-8547845480464472138.post-74174390232601894342011-03-13T00:31:14.215+01:002011-03-13T00:31:14.215+01:00Thanks, Thanks again.Thanks, Thanks again.Jorge Sierrahttps://www.blogger.com/profile/01048095017144400964noreply@blogger.comtag:blogger.com,1999:blog-8547845480464472138.post-88140340170053508352011-03-01T10:13:11.557+01:002011-03-01T10:13:11.557+01:00What is your architecture ?
Check if the tun drive...What is your architecture ?<br />Check if the tun driver has well been install either under /usr/kernel/drv/tun or the sub-directory corresponding to your architecture (e.G. /usr/kernel/drv/amd64/).Bertrand BENOIThttps://www.blogger.com/profile/02926938448334038552noreply@blogger.comtag:blogger.com,1999:blog-8547845480464472138.post-24284845038735067212011-03-01T03:54:25.467+01:002011-03-01T03:54:25.467+01:00I've just tried this on OpenIndiana oi-148. It...I've just tried this on OpenIndiana oi-148. It fails to load the tun driver:<br /><br /><br />matt@vault:~/Downloads/tun-1.1$ pfexec devfsadm -v -i tun<br />devfsadm: driver failed to attach: tun<br />exit status = 1<br /><br />The -v option doesn't provide much useful information :(Matt Connollyhttps://www.blogger.com/profile/12099528197908993437noreply@blogger.comtag:blogger.com,1999:blog-8547845480464472138.post-3128788478290260422009-09-30T10:15:42.385+02:002009-09-30T10:15:42.385+02:00Are you sure you moved to the [TUN_DIRECTORY] ? It...Are you sure you moved to the [TUN_DIRECTORY] ? It's mandatory before using devfsadm.<br /><br /><br /><br />You can use the -v option to get more information.Bertrand BENOIThttps://www.blogger.com/profile/02926938448334038552noreply@blogger.comtag:blogger.com,1999:blog-8547845480464472138.post-10239196765643162312009-09-28T16:30:06.230+02:002009-09-28T16:30:06.230+02:00hello,
I have:
bash-3.00# uname -X
System = SunO...hello,<br /><br />I have:<br /><br />bash-3.00# uname -X<br />System = SunOS<br />Node = develop<br />Release = 5.10<br />KernelID = Generic_141415-05<br />Machine = i86pc<br />BusType = <br />Serial = <br />Users = <br />OEM# = 0<br />Origin# = 1<br />NumCPU = 8<br /><br />and did all the steps but i cant attach tun:<br /><br />bash-3.00# devfsadm -i tun<br />devfsadm: driver failed to attach: tunAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8547845480464472138.post-4895477312278289322009-08-04T11:52:12.275+02:002009-08-04T11:52:12.275+02:00Sorry, I found out what I did wrong.
The flags yo...Sorry, I found out what I did wrong.<br /><br />The flags you used were for 64 bit x86, but I am on a 64 bit SPARC. So I used:<br />CFLAGS = -m64 -mcpu=v9 -mcmodel=medlow -fno-pic -mno-fpu -ffreestanding -nodefaultlibs $(DEFS) -O2 -Wall -D_KERNEL -I. <br /><br />This solved all my problems. Great blog post by the way. :)Azrin Madinhttp://www.azrinmadin.com/noreply@blogger.comtag:blogger.com,1999:blog-8547845480464472138.post-35976201227265724752009-08-04T11:05:29.044+02:002009-08-04T11:05:29.044+02:00Are you sure to have installed GNU gcc, and to hav...Are you sure to have installed GNU gcc, and to have updated the PATH environment variable, BEFORE launching ./configure ?Bertrand BENOIThttps://www.blogger.com/profile/02926938448334038552noreply@blogger.comtag:blogger.com,1999:blog-8547845480464472138.post-58860510791645081032009-08-04T10:12:37.281+02:002009-08-04T10:12:37.281+02:00i tried to compile TUN using the CFLAGS options th...i tried to compile TUN using the CFLAGS options that you mention for Makefile, but I get an invalid option error.<br /><br />bash-3.00$ which make<br />/usr/ccs/bin/make<br />bash-3.00$ make<br />cd solaris; make all<br />gcc -m64 -mcmodel=kernel -mno-red-zone -ffreestanding -DTUN_VER=\"1.1\ 08/04/2009\" -O2 -Wall -D_KERNEL -I. -c tun.c<br />cc1: error: invalid option `no-red-zone'<br />tun.c:1: error: bad value (kernel) for -mcmodel= switch<br />*** Error code 1<br />make: Fatal error: Command failed for target `tun.o'<br />Current working directory /export/home/azrin/Desktop/tun-1.1/solaris<br />*** Error code 1<br />make: Fatal error: Command failed for target `module'Azrin Madinhttp://www.azrinmadin.com/noreply@blogger.com