Opened 13 years ago
Closed 13 years ago
#30317 closed defect (fixed)
socat: 'IPV6_PKTINFO' undeclared
Reported by: | christophe@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.0 |
Keywords: | IPV6_PKTINFO lion | Cc: | md@…, nospam2000 (Michael Dreher), elventear (Pepe Barbe), leslie.rock68@…, stefan.van.der.eijk@…, kvanrhee@…, dossy@…, akimd (Akim Demaille), drkp (Dan Ports) |
Port: | socat |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Hi,
When trying to build socat with Lion on a fresh Macports 2.0 install, it fails with following error in log:
... :info:build /Developer/usr/bin/llvm-gcc-4.2 -pipe -O2 -arch x86_64 -D_GNU_SOURCE -Wall -Wno-parentheses -DHAVE_CONFIG_H -I. -I/opt/local/include -I. -I/opt/local/include -c -o xio-system.o xio-system.c :info:build xio-ip6.c:28: error: â~@~XIPV6_PKTINFOâ~@~Y undeclared here (not in a function) :info:build xio-ip6.c:32: error: â~@~XIPV6_RTHDRâ~@~Y undeclared here (not in a function) :info:build xio-ip6.c:39: error: â~@~XIPV6_DSTOPTSâ~@~Y undeclared here (not in a function) :info:build xio-ip6.c:43: error: â~@~XIPV6_HOPOPTSâ~@~Y undeclared here (not in a function) :info:build xio-ip6.c:50: error: â~@~XIPV6_HOPLIMITâ~@~Y undeclared here (not in a function) :info:build make: *** [xio-ip6.o] Error 1 :info:build make: *** Waiting for unfinished jobs.... ...
Attachments (2)
Change History (19)
Changed 13 years ago by christophe@…
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | md@… added |
---|---|
Description: | modified (diff) |
Keywords: | socat removed |
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | lion added |
---|
Changed 13 years ago by patrik@…
Attachment: | socat_lion_rfc2292.patch added |
---|
comment:7 Changed 13 years ago by patrik@…
Replying to christophe@…: The attached patch fixes the problem. A more elegant solution should probably be used, but this gets it compiled and installed.
comment:10 Changed 13 years ago by teejay87@…
Replying to kvanrhee@…:
How would I apply this patch?
Just do this:
Try to install socat, the installation will fail
sudo port install socat
Edit sysincludes.h with your favourite texteditor, e.g. pico (notice the sudo keyword, you need admin priviledges
sudo pico /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_socat/socat/work/socat-1.7.1.3/sysincludes.h
Retry to install socat, this will only rebuild the already downloaded (and modified by you) sources
sudo port install socat
This worked for me :)
comment:11 Changed 13 years ago by teejay87@…
NB:
You need to add the line
#define __APPLE_USE_RFC_2292
right after these two lines:
#ifndef __sysincludes_h_included #define __sysincludes_h_included 1
as you see in the patch
comment:15 Changed 13 years ago by akimd (Akim Demaille)
The patch does work for me too. Too bad it is not included :( Was it sent upstream?
comment:17 Changed 13 years ago by drkp (Dan Ports)
Cc: | dports@… added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
This should be fixed now; see #32698 and r88706/r88707.
Remember to use WikiFormatting, and to Cc the port's maintainer.