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)

main.log (9.1 KB) - added by christophe@… 13 years ago.
socat_lion_rfc2292.patch (286 bytes) - added by patrik@… 13 years ago.

Download all attachments as: .zip

Change History (19)

Changed 13 years ago by christophe@…

Attachment: main.log added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: md@… added
Description: modified (diff)
Keywords: socat removed

Remember to use WikiFormatting, and to Cc the port's maintainer.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: lion added

comment:3 Changed 13 years ago by nospam2000 (Michael Dreher)

Cc: nospam2000@… added

Cc Me!

comment:4 Changed 13 years ago by elventear (Pepe Barbe)

Cc: elventear@… added

Cc Me!

comment:5 Changed 13 years ago by leslie.rock68@…

Cc: leslie.rock68@… added

Cc Me!

comment:6 Changed 13 years ago by stefan.van.der.eijk@…

Cc: stefan.van.der.eijk@… added

Cc Me!

Changed 13 years ago by patrik@…

Attachment: socat_lion_rfc2292.patch added

comment:7 in reply to:  description 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:8 Changed 13 years ago by kvanrhee@…

Cc: kvanrhee@… added

Cc Me!

comment:9 Changed 13 years ago by kvanrhee@…

How would I apply this patch?

comment:10 in reply to:  9 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:12 Changed 13 years ago by christophe@…

Cc: christophe@… added

Cc Me!

comment:13 Changed 13 years ago by christophe@…

Cc: christophe@… removed

Cc Me!

comment:14 Changed 13 years ago by dossy@…

Cc: dossy@… added

Cc Me!

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:16 Changed 13 years ago by akimd (Akim Demaille)

Cc: akim.demaille@… added

Cc Me!

comment:17 Changed 13 years ago by drkp (Dan Ports)

Cc: dports@… added
Resolution: fixed
Status: newclosed

This should be fixed now; see #32698 and r88706/r88707.

Note: See TracTickets for help on using tickets.