Skip to content

Instantly share code, notes, and snippets.

@hexatridecimal
Created July 30, 2011 19:17
Show Gist options
  • Save hexatridecimal/1115877 to your computer and use it in GitHub Desktop.
Save hexatridecimal/1115877 to your computer and use it in GitHub Desktop.
OpenVPN build issue on Lion/XCode 4.1
==> Downloading http://build.openvpn.net/downloads/releases/openvpn-2.2.0.tar.gz
File already downloaded in /Users/jjeffus/Library/Caches/Homebrew
/usr/bin/tar xf /Users/jjeffus/Library/Caches/Homebrew/openvpn-2.2.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/openvpn/2.2.0 --disable-debug --disable-dependency-tracking
./configure --prefix=/usr/local/Cellar/openvpn/2.2.0 --disable-debug --disable-dependency-tracking
checking build system type... x86_64-apple-darwin11.0.0
checking host system type... x86_64-apple-darwin11.0.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for ifconfig... /sbin/ifconfig
checking for ip... ip
checking for route... /sbin/route
checking for netstat... /usr/sbin/netstat
checking for gcc... /usr/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/cc accepts -g... yes
checking for /usr/bin/cc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of /usr/bin/cc... none
checking how to run the C preprocessor... /usr/bin/cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether /usr/bin/cc needs -traditional... no
checking for ANSI C header files... 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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... 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... no
checking net/if_tun.h presence... no
checking for net/if_tun.h... no
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... no
checking stropts.h presence... no
checking for stropts.h... no
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... yes
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 size of unsigned int... 4
checking size of unsigned long... 8
checking for ctime... yes
checking for memset... yes
checking for vsnprintf... yes
checking for strdup... yes
checking for daemon... yes
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... yes
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... yes
checking for unlink... yes
checking for chsize... no
checking for ftruncate... yes
checking for execve... yes
checking for getpeereid... yes
checking for umask... yes
checking return type of signal handlers... void
checking for library containing socket... none required
checking for library containing inet_ntoa... none required
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 LZO Library and Header files...
checking lzo/lzo1x.h usability... yes
checking lzo/lzo1x.h presence... yes
checking for lzo/lzo1x.h... yes
checking for lzo1x_1_15_compress in -llzo2... 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: checking for libselinux Library and Header files...
checking selinux/selinux.h usability... no
checking selinux/selinux.h presence... no
checking for selinux/selinux.h... no
SELinux headers not found.
configure: creating ./config.status
config.status: creating t_client.sh
config.status: creating Makefile
config.status: creating openvpn.spec
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: executing depfiles commands
==> make install
make install
Making install in images
make[2]: Nothing to be done for `install-exec-am'.
test -z "" || .././install-sh -c -d ""
Making install in service-win32
test -z "/usr/local/Cellar/openvpn/2.2.0/sbin" || .././install-sh -c -d "/usr/local/Cellar/openvpn/2.2.0/sbin"
make[2]: Nothing to be done for `install-data-am'.
Making install in install-win32
make[2]: Nothing to be done for `install-exec-am'.
test -z "" || .././install-sh -c -d ""
test -z "" || .././install-sh -c -d ""
test -z "/usr/local/Cellar/openvpn/2.2.0/share/doc/openvpn" || .././install-sh -c -d "/usr/local/Cellar/openvpn/2.2.0/share/doc/openvpn"
test -z "" || .././install-sh -c -d ""
test -z "" || .././install-sh -c -d ""
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c base64.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c buffer.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c crypto.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c dhcp.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c error.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c event.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c fdmisc.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c forward.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c fragment.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c gremlin.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c helper.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c httpdigest.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c lladdr.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c init.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c interval.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c list.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c lzo.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c manage.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c mbuf.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c misc.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c mroute.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c mss.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c mtcp.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c mtu.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c mudp.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c multi.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c ntlm.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c occ.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c pkcs11.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c openvpn.c
awk -f ./configure_h.awk config.h > configure.h
awk -f ./configure_log.awk config.log >> configure.h
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c otime.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c packet_id.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c perf.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c pf.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c ping.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c plugin.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c pool.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c proto.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c proxy.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c ieproxy.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c ps.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c push.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c reliable.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c route.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c schedule.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c session_id.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c shaper.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c sig.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c socket.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c socks.c
/usr/bin/cc -DHAVE_CONFIG_H -I. -I. -no-cpp-precomp -O3 -w -pipe -c ssl.c
socket.c: In function ‘create_socket_udp’:
socket.c:613: error: ‘SOL_IP’ undeclared (first use in this function)
socket.c:613: error: (Each undeclared identifier is reported only once
socket.c:613: error: for each function it appears in.)
socket.c: In function ‘link_socket_read_udp_posix_recvmsg’:
socket.c:2242: error: ‘SOL_IP’ undeclared (first use in this function)
socket.c: In function ‘link_socket_write_udp_posix_sendmsg’:
socket.c:2323: error: ‘SOL_IP’ undeclared (first use in this function)
make[1]: *** [socket.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install-recursive] Error 1
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/openvpn.rb#L16
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: 917bdbc823b933f6db9c4a25ed23261bc44f44c8
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: quad-core 64-bit sandybridge
OS X: 10.7
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/c++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -w -pipe
CXXFLAGS: -O3 -w -pipe
MAKEFLAGS: -j4
Error: Failed executing: make install
Please report this bug: https://github.com/mxcl/homebrew/wiki/Checklist-before-filing-a-new-issue
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/#issue/6126
https://github.com/mxcl/homebrew/issues/#issue/6160
Also try:
`brew doctor` to check your setup for common problems.
`brew missing` to check installed packages for missing deps.
@freeyoung
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment