Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#19193 closed defect (wontfix)

socat fails to build on Panther

Reported by: macports@… Owned by: md@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: dkg@…
Port: socat

Description

The socat port fails during the build stage with the following error:

blunder:~ 0$ sudo port install socat
Password:
--->  Fetching socat
--->  Attempting to fetch socat-1.7.0.0.tar.gz from http://www.dest-unreach.org/socat/download/
--->  Verifying checksum(s) for socat
--->  Extracting socat
--->  Configuring socat
--->  Building socat
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_socat/work/socat-1.7.0.0" && make all " returned error 2
Command output: /usr/bin/gcc-3.3 -O2 -D_GNU_SOURCE  -Wall -Wno-parentheses -DHAVE_CONFIG_H -I. -I/opt/local/include -I. -I/opt/local/include  -c -o socat.o socat.c
In file included from socat.c:9:
xioconfig.h:124: error: parse error before "sa_family_t"
xioconfig.h:124: warning: type defaults to `int' in declaration of `sa_family_t'
xioconfig.h:124: warning: data definition has no type or storage class
In file included from sysincludes.h:58,
                 from socat.c:11:
/usr/include/sys/socket.h:77: error: `sa_family_t' redeclared as different kind of symbol
xioconfig.h:124: error: previous declaration of `sa_family_t'
make: *** [socat.o] Error 1

Error: Status 1 encountered during processing.
blunder:~ 0$

This is on OS X 10.3.9, with port "Version: 1.710". Not exactly sure how to interpret what's going wrong here, and I'm pretty new to MacPorts, so I'm not sure exactly where I should look to track down the issue. Let me know if there's any more info I can provide.

Change History (7)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Keywords: socat removed
Owner: changed from macports-tickets@… to md@…
Port: socat added

comment:2 Changed 15 years ago by macports@…

The following patches seem to fix the problem:

--- xioconfig.h.orig	Mon Apr  6 21:15:42 2009
+++ xioconfig.h	Mon Apr  6 21:17:01 2009
@@ -121,7 +121,7 @@
 #endif
 
 #ifndef HAVE_TYPE_SA_FAMILY_T
-   typedef uint16_t sa_family_t;
+   typedef unsigned char sa_family_t;
 #endif
 
 #endif /* !defined(__xioconfig_h_included) */
--- filan.c.orig	Mon Apr  6 21:38:38 2009
+++ filan.c	Mon Apr  6 21:39:06 2009
@@ -136,7 +136,9 @@
 #ifdef POLLRDBAND
 	    |POLLRDBAND
 #endif
+#ifdef POLLWRNORM
 	    |POLLWRNORM
+#endif
 #ifdef POLLWRBAND
 	    |POLLWRBAND
 #endif

Not sure if they're the exactly right things to do, but they allow the package to build, and it seems to work fine when installed. hth.

comment:3 Changed 15 years ago by dkg@…

Cc: dkg@… added

Cc Me!

comment:4 Changed 15 years ago by dkg@…

The problem with xioconfig.h can probably be better fixed by repairing the ./configure test for the presence of sa_family_t, though i'm not sure how to do that.

You might want to report the problem with filan.c upstream, since they claim for 1.7.0.0:

socat compiles on Mac OS X again.

It seems likely that they haven't tested it with macports under OS 10.3.

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:6 Changed 15 years ago by tobypeterson

Resolution: wontfix
Status: newclosed

Panther is not supported.

comment:7 Changed 15 years ago by tobypeterson

Summary: socat fails to buildsocat fails to build on Panther
Note: See TracTickets for help on using tickets.