#30253 closed defect (fixed)
openvpn2 fails to build on OS X 10.7 Lion
Reported by: | cruoho@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.99 |
Keywords: | haspatch | Cc: | mmpestorich (Mike M Pestorich), conrad@…, smparkes@…, edward@…, mullikine@…, humberaquino@…, gallafent, fracai, astricker@…, andreas@…, axet (Alexey Kuznetsov), ryandesign (Ryan Carsten Schmidt) |
Port: | openvpn2 |
Description
openvpn2 fails to build on Lion with XCode 4.1. Macports is the latest from svn. The following error is in the main.log:
:info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I. -no-cpp-precomp -pipe -O2 -arch x86_64 -MT socket.o -MD -MP -MF .deps/socket.Tpo -c -o socket.o socket.c :info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I. -no-cpp-precomp -pipe -O2 -arch x86_64 -MT socks.o -MD -MP -MF .deps/socks.Tpo -c -o socks.o socks.c :info:build mv -f .deps/session_id.Tpo .deps/session_id.Po :info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I. -no-cpp-precomp -pipe -O2 -arch x86_64 -MT ssl.o -MD -MP -MF .deps/ssl.Tpo -c -o ssl.o ssl.c :info:build mv -f .deps/push.Tpo .deps/push.Po :info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I. -no-cpp-precomp -pipe -O2 -arch x86_64 -MT status.o -MD -MP -MF .deps/status.Tpo -c -o status.o status.c :info:build mv -f .deps/reliable.Tpo .deps/reliable.Po :info:build mv -f .deps/route.Tpo .deps/route.Po :info:build mv -f .deps/ps.Tpo .deps/ps.Po :info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I. -no-cpp-precomp -pipe -O2 -arch x86_64 -MT tun.o -MD -MP -MF .deps/tun.Tpo -c -o tun.o tun.c :info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I. -no-cpp-precomp -pipe -O2 -arch x86_64 -MT win32.o -MD -MP -MF .deps/win32.Tpo -c -o win32.o win32.c :info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I. -no-cpp-precomp -pipe -O2 -arch x86_64 -MT cryptoapi.o -MD -MP -MF .deps/cryptoapi.Tpo -c -o cryptoapi.o cryptoapi.c :info:build mv -f .deps/win32.Tpo .deps/win32.Po :info:build mv -f .deps/cryptoapi.Tpo .deps/cryptoapi.Po :info:build /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/include -I/opt/local/include -I/opt/local/include -I. -no-cpp-precomp -pipe -O2 -arch x86_64 -MT options.o -MD -MP -MF .deps/options.Tpo -c -o options.o options.c :info:build mv -f .deps/status.Tpo .deps/status.Po :info:build mv -f .deps/socks.Tpo .deps/socks.Po :info:build socket.c: In function 'create_socket_udp': :info:build socket.c:613: error: 'SOL_IP' undeclared (first use in this function) :info:build socket.c:613: error: (Each undeclared identifier is reported only once :info:build socket.c:613: error: for each function it appears in.) :info:build socket.c: In function 'link_socket_read_udp_posix_recvmsg': :info:build socket.c:2242: error: 'SOL_IP' undeclared (first use in this function) :info:build socket.c: In function 'link_socket_write_udp_posix_sendmsg': :info:build socket.c:2323: error: 'SOL_IP' undeclared (first use in this function) :info:build make[2]: *** [socket.o] Error 1 :info:build make[2]: *** Waiting for unfinished jobs....
Attachments (2)
Change History (25)
comment:1 Changed 13 years ago by jmroot (Joshua Root)
Keywords: | openvpn2 removed |
---|---|
Owner: | changed from macports-tickets@… to pmq@… |
Version: | 1.9.2 → 2.0.99 |
comment:3 Changed 13 years ago by conrad@…
This fix worked for me when building from OpenVPN's current source: http://blog.egopoly.com/2011/07/12/openvpn-on-mac-os-x-lion/
comment:5 Changed 13 years ago by conrad@…
bump because I don't think maintainer was cc'd first time
comment:8 Changed 13 years ago by pmq@…
Owner: | changed from pmq@… to macports-tickets@… |
---|
Stepping down for maintainership as I'm not using this anymore. And I don't even have Lion ;)
Changed 13 years ago by edward@…
Attachment: | openvpn2-lion.patch added |
---|
Making the patch from nullptr@… more self-contained. This patch includes a Portfile change which should apply cleanly to r82428.
comment:12 Changed 13 years ago by gallafent
http://permalink.gmane.org/gmane.network.openvpn.devel/4953 indicates I think that an equivalent patch has been applied upstream. So when OpenVPN releases a patched version including that patch, the port can be updated to match.
comment:15 Changed 13 years ago by astricker@…
I can confirm that the patch attached does work on Lion. Thanks for fixing this.
comment:18 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ak@… ryandesign@… added |
---|---|
Keywords: | haspatch added |
Resolution: | → fixed |
Status: | new → closed |
comment:19 Changed 13 years ago by axet (Alexey Kuznetsov)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
i did update macports but still unbable to build it.
comment:20 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
And you ran "sudo port selfupdate" beforehand? And it's now failing to build 2.2.1? Then please attach the new main.log file.
comment:21 Changed 13 years ago by axet (Alexey Kuznetsov)
axet-laptop:~ axet$ sudo port selfupdate ---> Updating MacPorts base sources using rsync MacPorts base version 2.0.3 installed, MacPorts base version 2.0.3 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated axet-laptop:~ axet$ sudo port install openvpn2 Portfile changed since last build; discarding previous state. ---> Computing dependencies for openvpn2 ---> Fetching archive for openvpn2 ---> Attempting to fetch openvpn2-2.2.1_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/openvpn2 ---> Fetching openvpn2 ---> Attempting to fetch openvpn-2.2.1.tar.gz from http://lil.fr.distfiles.macports.org/openvpn2 ---> Attempting to fetch openvpn-2.2.1.tar.gz from http://swupdate.openvpn.net/community/releases/ ---> Verifying checksum(s) for openvpn2 ---> Extracting openvpn2 ---> Configuring openvpn2 ---> Building openvpn2 Error: Target org.macports.build returned: shell command failed (see log for details) Log for openvpn2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_openvpn2/openvpn2/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> axet-laptop:~ axet$
Changed 13 years ago by axet (Alexey Kuznetsov)
comment:22 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
I've now looked in the patch in this ticket and realized it included an update to 2.2.1 and another change for Lion. I've committed it in r84323.
comment:23 Changed 13 years ago by astricker@…
Compiling the updated Port works here with Lion. Thanks a lot.
Please remember to cc the maintainer.