OpenSolaris prob

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.
Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
muotioj
OpenVpn Newbie
Posts: 3
Joined: Sun Jul 19, 2009 5:39 pm

OpenSolaris prob

Post by muotioj » Sun Jul 19, 2009 5:44 pm

Code: Select all


jp@MarsupilamiNAS:/usr/src/openvpn# ./configure --disable-lzo
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking target system type... i386-pc-solaris2.11
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for ifconfig... /usr/sbin/ifconfig
checking for ip... ip
checking for route... /usr/sbin/route
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/ggrep
checking for egrep... /usr/bin/ggrep -E
checking whether gcc needs -traditional... no
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for ISO C 1999 vararg macro support... yes
checking for GNU GCC vararg macro support... yes
checking for C compiler empty array support
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for sys/stat.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for fcntl.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for unistd.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdio.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for ctype.h... (cached) yes
checking for errno.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking net/if_tun.h usability... yes
checking net/if_tun.h presence... yes
checking for net/if_tun.h... yes
checking net/tun/if_tun.h usability... no
checking net/tun/if_tun.h presence... no
checking for net/tun/if_tun.h... no
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking linux/if_tun.h usability... no
checking linux/if_tun.h presence... no
checking for linux/if_tun.h... no
checking linux/sockios.h usability... no
checking linux/sockios.h presence... no
checking for linux/sockios.h... no
checking linux/types.h usability... no
checking linux/types.h presence... no
checking for linux/types.h... no
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/epoll.h usability... no
checking sys/epoll.h presence... no
checking for sys/epoll.h... no
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking for net/if.h... yes
checking for netinet/ip.h... yes
checking for netinet/if_ether.h... no
checking for resolv.h... yes
checking for linux/errqueue.h... no
checking for in_addr_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for struct tun_pi... no
checking for struct iphdr... no
checking for struct iovec... yes
checking for struct sock_extended_err... no
checking for struct msghdr... yes
checking for struct cmsghdr... yes
checking for struct in_pktinfo... yes
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for ctime... yes
checking for memset... yes
checking for vsnprintf... yes
checking for strdup... yes
checking for daemon... no
checking for chroot... yes
checking for getpwnam... yes
checking for setuid... yes
checking for nice... yes
checking for system... yes
checking for getpid... yes
checking for dup... yes
checking for dup2... yes
checking for getpass... yes
checking for strerror... yes
checking for syslog... yes
checking for openlog... yes
checking for mlockall... yes
checking for getgrnam... yes
checking for setgid... yes
checking for setgroups... yes
checking for stat... yes
checking for flock... no
checking for readv... yes
checking for writev... yes
checking for time... yes
checking for setsid... yes
checking for chdir... yes
checking for putenv... yes
checking for getpeername... no
checking for unlink... yes
checking for chsize... no
checking for ftruncate... yes
checking for execve... yes
checking for getpeereid... no
checking for umask... yes
checking return type of signal handlers... void
checking for library containing socket... -lsocket
checking for library containing inet_ntoa... -lnsl
checking for library containing gethostbyname... none required
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for gettimeofday... yes
checking for socket... yes
checking for recv... yes
checking for recvfrom... yes
checking for send... yes
checking for sendto... yes
checking for listen... yes
checking for accept... yes
checking for connect... yes
checking for bind... yes
checking for select... yes
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for setsockopt... yes
checking for getsockopt... yes
checking for getsockname... yes
checking for poll... yes
checking for sendmsg... yes
checking for recvmsg... yes
checking for working memcmp... yes
res_init UNDEFINED
configure: checking for working epoll implementation...
checking for epoll_create... no
configure: checking for libdl Library and Header files...
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen... yes
configure: checking for OpenSSL Crypto Library and Header files...
checking openssl/evp.h usability... yes
checking openssl/evp.h presence... yes
checking for openssl/evp.h... yes
checking for EVP_CIPHER_CTX_init in -lcrypto... yes
checking for EVP_CIPHER_CTX_init in -leay32... no
checking that OpenSSL Library is at least version 0.9.6... yes
checking for EVP_CIPHER_CTX_set_key_length... yes
checking openssl/engine.h usability... yes
checking openssl/engine.h presence... yes
checking for openssl/engine.h... yes
checking for ENGINE_load_builtin_engines... yes
checking for ENGINE_register_all_complete... yes
checking for ENGINE_cleanup... yes
configure: checking for OpenSSL SSL Library and Header files...
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for SSL_CTX_new in -lssl... yes
checking for SSL_CTX_new in -lssl32... no
configure: checking for pkcs11-helper Library and Header files...
checking pkcs11-helper-1.0/pkcs11h-core.h usability... no
checking pkcs11-helper-1.0/pkcs11h-core.h presence... no
checking for pkcs11-helper-1.0/pkcs11h-core.h... no
pkcs11-helper headers not found.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating openvpn.spec
config.status: creating config-win32.h
config.status: creating images/Makefile
config.status: creating service-win32/Makefile
config.status: creating install-win32/Makefile
config.status: creating install-win32/settings
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
jp@MarsupilamiNAS:/usr/src/openvpn# make
make  all-recursive
Making all in images
Making all in service-win32
Making all in install-win32
jp@MarsupilamiNAS:/usr/src/openvpn# make install
Making install in images
test -z "" || .././install-sh -c -d ""
Making install in service-win32
test -z "/usr/local/sbin" || .././install-sh -c -d "/usr/local/sbin"
Making install in install-win32
test -z "" || .././install-sh -c -d ""
test -z "" || .././install-sh -c -d ""
test -z "/usr/local/share/doc/openvpn" || .././install-sh -c -d "/usr/local/share/doc/openvpn"
test -z "" || .././install-sh -c -d ""
test -z "" || .././install-sh -c -d ""
test -z "/usr/local/sbin" || ./install-sh -c -d "/usr/local/sbin"
  /usr/bin/ginstall -c 'openvpn' '/usr/local/sbin/openvpn'
test -z "/usr/local/share/man/man8" || ./install-sh -c -d "/usr/local/share/man/man8"
 /usr/bin/ginstall -c -m 644 './openvpn.8' '/usr/local/share/man/man8/openvpn.8'
test -z "/usr/local/share/doc/openvpn" || ./install-sh -c -d "/usr/local/share/doc/openvpn"
jp@MarsupilamiNAS:/usr/src/openvpn# openvpn
bash: openvpn: command not found
jp@MarsupilamiNAS:/usr/src/openvpn# openvpn --genkey --secret key
bash: openvpn: command not found
jp@MarsupilamiNAS:/usr/src/openvpn# 



Soo what did go wrong? i tough that it should work after those "./configure --disable-lzo" "make" and "make install"

Any help would be really appreciated.

Douglas
Forum Team
Posts: 297
Joined: Wed Aug 27, 2008 2:41 am

Re: OpenSolaris prob

Post by Douglas » Sun Jul 19, 2009 8:54 pm

Does executing /usr/local/sbin/openvpn work?

muotioj
OpenVpn Newbie
Posts: 3
Joined: Sun Jul 19, 2009 5:39 pm

Re: OpenSolaris prob

Post by muotioj » Mon Jul 20, 2009 1:08 pm

That was it, thank you very much.

Im all new to opensolaris and unix/unixlike/linux world so some stuff just dosent occure for me ::) Do you happen to know how to get it work by just typing opnvpn ?

muotioj
OpenVpn Newbie
Posts: 3
Joined: Sun Jul 19, 2009 5:39 pm

Re: OpenSolaris prob

Post by muotioj » Mon Jul 20, 2009 4:51 pm

That did the trick, thank you.

Next problem:

Code: Select all

jp@MarsupilamiNAS:/etc/openvpn/conf# /usr/local/sbin/openvpn /etc/openvpn/conf/vpnserver.confMon Jul 20 19:40:08 2009 OpenVPN 2.1_rc19 i386-pc-solaris2.11 [SSL] built on Jul 18 2009
Mon Jul 20 19:40:08 2009 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Mon Jul 20 19:40:08 2009 Diffie-Hellman initialized with 1024 bit key
Segmentation Fault (core dumped)
jp@MarsupilamiNAS:/etc/openvpn/conf#
Any help with that Segmentation fault? Where to look.

Here is config based on sample config file (edited help comments to shorten it):

Code: Select all

#################################################



port 1194


proto udp


dev tun



ca /etc/openvpn/keys/ca.crt

cert /etc/openvpn/conf/serverkey/server.crt

key /etc/openvpn/conf/serverkey/server.key  # This file should be kept secret



dh /etc/openvpn/conf/serverkey/dh1024.pem



server 10.8.0.0 255.255.255.0



ifconfig-pool-persist ipp.txt



keepalive 60 720



cipher BF-CBC        # Blowfish (default)



max-clients 5



persist-key

persist-tun



status openvpn-status.log




verb 3




Douglas
Forum Team
Posts: 297
Joined: Wed Aug 27, 2008 2:41 am

Re: OpenSolaris prob

Post by Douglas » Mon Jul 20, 2009 11:29 pm

If you are using bash, you need to adjust your path:

echo $PATH

Make sure the folder OpenVPN is in is set in there.
doug@nj01-01-01:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games


doug@nj01-01-01:~$ sudo su -
nj01-01-01:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Post Reply