Solaris / OpenSolarisThis forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm getting a ton of errors, but this error is being repeated hundreds of times so I think If I solve it I'll correct most of them so I can see what's left to solve:
Code:
tun.c: At top level:
tun.c:922: error: parse error before '*' token
tun.c: In function `tun_dlpi':
tun.c:924: error: `mp' undeclared (first use in this function)
tun.c:929: error: `wq' undeclared (first use in this function)
tun.c: At top level:
tun.c:968: error: parse error before '*' token
tun.c: In function `tunwput':
tun.c:978: error: `mp' undeclared (first use in this function)
tun.c:980: error: `wq' undeclared (first use in this function)
tun.c: At top level:
tun.c:1023: error: parse error before '*' token
tun.c: In function `tunwsrv':
tun.c:1025: error: `mp' undeclared (first use in this function)
tun.c:1032: error: `wq' undeclared (first use in this function)
tun.c: At top level:/usr/include/vm/page.h:822: warning: array `hw_page_array' assumed to have one element
tun.c:54: error: storage size of `tunminfo' isn't known
# gcc --version
gcc (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This code just compiles just fine here with both Solaris 10 update 8 and OpenSolaris.
Code:
s10u8:/tmp # gunzip tun-1.1.tar.gz
s10u8:/tmp # tar xf tun-1.1.tar
s10u8:/tmp # cd tun-1.1
s10u8:/tmp/tun-1.1 # ./configure
creating cache ./config.cache
checking host system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking build system type... i386-pc-solaris2.10
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for a BSD compatible install... ./install-sh -c
updating cache ./config.cache
creating ./config.status
creating Makefile
configuring in solaris
running /bin/sh ./configure --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for a BSD compatible install... ./../install-sh -c
creating ./config.status
creating Makefile
s10u8:/tmp/tun-1.1 # gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
s10u8:/tmp/tun-1.1 # make
cd solaris; make all
gcc -DTUN_VER=\"1.1\ 07/23/2010\" -O2 -Wall -D_KERNEL -I. -c tun.c
ld -r -o tun tun.o
s10u8:/tmp/tun-1.1 # ls -l */tun
-rw-r--r-- 1 root root 8956 Jul 23 03:07 solaris/tun
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.