[haiku-development] Re: Building on Mac


On Oct 29, 2007, at 2:00 PM, Ingo Weinhold wrote:


On 2007-10-29 at 23:45:48 [+0100], Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
wrote:
2007/10/29, Ingo Weinhold <ingo_weinhold@xxxxxx>:

On 2007-10-26 at 22:43:37 [+0200], Bryce Groff <bgroff@xxxxxxxxxx> wrote:
On Oct 26, 2007, at 10:04 AM, Ingo Weinhold wrote:
Apparently your system is not identified as UNIX. Can you send the
output
of "gcc -dumpspecs", please.
[...]

Mmh, apparently gcc 4 doesn't list the predefined macros anymore, so that didn't really help. Anyway, in r22765 the unzip code should recognize
MacOS
X as Unix system (if I tested the right macro). Maybe this already makes
it
build correctly.


It could also be a good idea to update unzip with the current one.
Ours seems to be from 2002.

Yep, if there only were someone who would update it (and bash and other
stuff)... :-P

CU, Ingo


Everything builds fine now, just linking is the problem,

InitScript1 generated/haiku.image-init-vars
Link generated/objects/darwin/x86/release/tools/unzip/unzip
/usr/bin/ld: Undefined symbols:
__Unwind_Resume
___gxx_personality_v0
collect2: ld returned 1 exit status

cc -o "generated/objects/darwin/x86/release/tools/unzip/unzip" "generated/objects/darwin/x86/release/tools/unzip/unzip.o" "generated/ objects/darwin/x86/release/tools/unzip/unreduce.o" "generated/objects/ darwin/x86/release/tools/unzip/unshrink.o" "generated/objects/darwin/ lib/libroot_build.so" "/opt/local/lib/libgnuregex.dylib" "generated/ objects/darwin/x86/release/tools/unzip/libunzip.a" "generated/objects/ darwin/lib/libbe_build.so" ;

...failed Link generated/objects/darwin/x86/release/tools/unzip/ unzip ...
...skipped <HaikuImage>haiku.image-init-vars for lack of <build>unzip...
InitScript1 generated/haiku.image-make-dirs


On another side note, in src/build/libbe/interface (is this the library the build links agianst?) Region.cpp was including malloc.h however the Jamfile did not have /headers/posix included. This broke the build for me (on mac).
Bryce

Other related posts: