|
|
Hi
Don't know if this will be of interest to anyone, but I was having
problems with installing the tun/tap driver on Solaris 8 and it always
giving me the following...
devfsadm: driver failed to attach: tun
Warning: Driver (tun) successfully added to system but failed to attach
I had tried installing it with 32 and 64 bit compilation in the
solaris Makefile.in and same result for both... so I modified the
Makefile.in in the following way...
##################################################################
CONFIGURE_FILES = Makefile config.status config.cache config.h config.log
CC = gcc
LD = /usr/ccs/bin/ld
DEFS = @DEFS@
CFLAGS = $(DEFS) -m64 -O2 -Wall -D_KERNEL -I.
ADD_DRV = /usr/sbin/add_drv
REM_DRV = /usr/sbin/rem_drv
DRV_DIR = /kernel/drv
DRV_DIR2 = /kernel/drv/sparcv9
DRV_DIR3 = /platform/sun4u/kernel/drv
INSTALL = @INSTALL@
all: module
module: tun.o
$(LD) -r -o tun tun.o
tun.o: tun.c if_tun.h
$(CC) $(CFLAGS) -c tun.c
inst: module
$(INSTALL) -m 644 -o root -g root if_tun.h /usr/include/net
$(INSTALL) -m 644 -o root -g root tun $(DRV_DIR)
$(INSTALL) -m 644 -o root -g root tun.conf $(DRV_DIR)
$(INSTALL) -m 644 -o root -g root tun $(DRV_DIR2)
$(INSTALL) -m 644 -o root -g root tun.conf $(DRV_DIR2)
$(INSTALL) -m 644 -o root -g root tun $(DRV_DIR3)
$(INSTALL) -m 644 -o root -g root tun.conf $(DRV_DIR3)
-$(REM_DRV) tun >/dev/null 2>&1
$(ADD_DRV) tun
clean:
rm -f tun *.o *~
distclean:
rm -f $(CONFIGURE_FILES)
with the path for DRV_DIR3 begin determined by doing 'uname -m' which
in my case gave sun4u
then did a regular
./configure
make install
and all appears to have worked fine... just got to go through
configuring the rest of it now :D
HTH
Andrew
____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users
Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-08/msg00002.html on line 247
Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-08/msg00002.html on line 247
|