On Sep 13, 2009, at 12:53 PM, David Fang wrote:

Hi,

Regarding:
https://sourceforge.net/tracker/?func=detail&aid=2857895&group_id=17203&atid=414256

Your fink package for fluidsynth was failing to build on powerpc- darwin8. fluid_coremidi.c was failing to compile because some preprocessor definitions from <netinet/tcp.h> collided with enum definitions in OpenTransportProviders.h.

Could you send me the details of your compilation failure. fluidsynth-1.0.9-169 compiles without any problems on my G4. I'd be interested in duplicating your error.

The failure I was seeing is:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I/sw/ include -I/sw/include -Wall -O2 -fomit-frame-pointer -funroll-all- loops -finline-functions -Wall -W -Wpointer-arith -Wbad-function- cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wno-unused - Winline -MT libfluidsynth_la-fluid_coremidi.lo -MD -MP -MF .deps/ libfluidsynth_la-fluid_coremidi.Tpo -c fluid_coremidi.c -fno-common -DPIC -o .libs/libfluidsynth_la-fluid_coremidi.o In file included from /System/Library/Frameworks/ CoreServices.framework/Frameworks/OSServices.framework/Headers/ OSServices.h:47, from /System/Library/Frameworks/ CoreServices.framework/Headers/CoreServices.h:26,
                from fluid_coremidi.c:37:
/System/Library/Frameworks/CoreServices.framework/Frameworks/ OSServices.framework/Headers/OpenTransportProviders.h:108: error: parse error before numeric constant /System/Library/Frameworks/CoreServices.framework/Frameworks/ OSServices.framework/Headers/OpenTransportProviders.h:116: error: parse error before numeric constant
fluid_coremidi.c: In function 'fluid_coremidi_callback':
fluid_coremidi.c:169: warning: cast discards qualifiers from pointer target type
make[1]: *** [libfluidsynth_la-fluid_coremidi.lo] Error 1

I've saved the preprocessed file:
% gcc (same-arguments... without -o) -E > fluid_coremidi.i

and posted the compressed preprocessed file (180k) here:
http://www.csl.cornell.edu/~fang/test/fluid_coremidi.i.bz2

starting at line 35218 of 40410 of fluid_coremidi.i, I see:

# 99 "/System/Library/Frameworks/CoreServices.framework/Frameworks/ OSServices.framework/Headers/OpenTransportProviders.h" ...<snip>...
enum {
 0x01 = 0x01,
 0x02 = 0x02,
 TCP_NOTIFY_THRESHOLD = 0x10,
 TCP_ABORT_THRESHOLD = 0x11,
 TCP_CONN_NOTIFY_THRESHOLD = 0x12,
 TCP_CONN_ABORT_THRESHOLD = 0x13,
 TCP_OOBINLINE = 0x14,
 TCP_URGENT_PTR_TYPE = 0x15,
 0x10 = 0x0008
};

which comes from line 107 of .../OpenTransportProviders.h.
The enum definitions were corrupted by another header included earlier,
/usr/include/netinet/tcp.h, which defines:

/*
* User-settable options (used with setsockopt).
*/
#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */
#ifndef _POSIX_C_SOURCE
#define TCP_MAXSEG              0x02    /* set maximum segment size */
#define TCP_NOPUSH 0x04 /* don't push last block of write */
#define TCP_NOOPT               0x08    /* don't use TCP options */
#define TCP_KEEPALIVE 0x10 /* idle time used when SO_KEEPALIVE is enabled */
#endif /* _POSIX_C_SOURCE */

I tried to #define _POSIX_C_SOURCE, but that failed, so I just #undef'd those tokens before #including CoreServices.h, in the patch submitted to the tracker.

Could you also post the outputs of the following commands:
sw_vers ; machine ; xcodebuild -version ; gcc --version ; fink -V

what's sw_vers?

David

Try "man sw_vers" and then please send us the output of "sw_vers".


fink:
Package manager version: 0.29.9
Distribution version: selfupdate-cvs Sat Sep 12 11:05:10 2009, 10.4, powerpc

machine: powerpc7410 (dual G4)

Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc PowerMac3,4 Darwin

xcode:
Component versions: DevToolsCore-798.0; DevToolsSupport-794.0

As Alexander Hansen has suggested, also send us the output of "fink list xcode".

gcc:
Target: powerpc-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable- checking -enable-werror --prefix=/usr --mandir=/share/man --enable- languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/ s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/ usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 -- target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)

Can anyone else reproduce this?

Well, you are running OS X version 10.4 which is now somewhat outdated so it would be difficult presently to do this. But with the last two remaining bits of the information requested above, maybe I could suggest some kind of resolution.

Ebrahim
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to