swarm-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [swarm-hackers] Old autoconf build process is broken in current trun


From: Scott Christley
Subject: Re: [swarm-hackers] Old autoconf build process is broken in current trunk
Date: Wed, 25 Nov 2009 11:30:01 -0800


On Nov 25, 2009, at 3:05 AM, Bill Northcott wrote:

/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. - I../.. -I../../../../src/collections -I../.. -I. -I.. -I../../../../ src/collections/.. -I../../../../src/collections/../defobj - I../../../../src/collections/../misc -I../../../../src/ collections/../objectbase -I../../../../src/collections/../random - DGNUSTEP -I/Library/Headers -I/Library/Headers/GNUstepBase -I/ Library/Headers -D_GNU_SOURCE -DBUILDING_SWARM -g -O2 - B ../../../../tools -F Cocoa -fno-strict-aliasing -Wall -Wno-import - Wno-protocol -Wno-long-long -Wno-unknown-pragmas -MT Array.lo -MD - MP -MF .deps/Array.Tpo -c -o Array.lo ../../../../src/collections/ Array.m libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../../../src/ collections -I../.. -I. -I.. -I../../../../src/collections/.. - I../../../../src/collections/../defobj -I../../../../src/ collections/../misc -I../../../../src/collections/../objectbase - I../../../../src/collections/../random -DGNUSTEP -I/Library/Headers - I/Library/Headers/GNUstepBase -I/Library/Headers -D_GNU_SOURCE - DBUILDING_SWARM -g -O2 -B ../../../../tools -F Cocoa -fno-strict- aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -Wno-unknown- pragmas -MT Array.lo -MD -MP -MF .deps/Array.Tpo -c ../../../../src/ collections/Array.m -fno-common -DPIC -o .libs/Array.o
In file included from ./Swarm/Collection.h:27,
from ../../../../src/collections/../collections/ Array.h:26,
                from ../../../../src/collections/Array.m:26:
./Swarm/collections.h:1238:36 ./Swarm/collections.h:1238:36: error: Swarm/collections_types.h: No such file or directory


I have no idea how this works for you on Linux. In my build, the Swarm symlink in builddir/src/collections goes back to the source, which is why Swarm/collection_types.h is not found. <collection_types.h> would work, but I appreciate that it is not what is wanted.

With the change I made, it should not be trying to include <Swarm/ collections_types.h>, it should be trying to include <collections/ collections_types.h>. Do you have SWARM_OPENSTEP defined for some reason? Maybe you configured with "--enable-openstep"?




I think you need to symlink the individual headers from the source and keep the Swarm symlinks in the build tree linking to '.' . Apple does something like that in their build process.

The issue with this is then you have to know all of the individual headers in order to create symlinks, or have to make some assumption like link all *.h files. It's possible but it complicates the matter.


I'm a little unclear what you are exactly trying to do. Is it you want to build Swarm with tcl/tk GUI and Apple compiler and Apple runtime? Essentially the same as what I've done but using tcl/tk GUI instead of OpenStep? If that is your goal, then I think the most robust route is to use Xcode, copy the SwarmOSX project, include the TCL/TK framework, and let Xcode handle the compiling and linking.

Trying to get the autoconf/libtool/makefile system to do all of that for you means you are going to have to reverse-engineer all the flags and so forth that Xcode uses to compile and link, then figure out how to integrate that into the build system. Is it possible, sure, by why not go the simpler route.

Scott






reply via email to

[Prev in Thread] Current Thread [Next in Thread]