makefile for Gambit/macosx
Stephane Le Cornec <coleste-XzQKRVe1yT0V+D8aMU/[email protected]> Fri, 16 Jun 2006 14:41:01 -0400
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <f06230900c0b8a13c0055@[66.131.113.202]> |
Has anyone modified the makefile for macosx? The gcc option -shared use in the ssax-sxml.so target is not supported on macosx. I don't know the innards of unix enough to understand the -shared option. I tried replacing -shared with -bundle, but I get undefined symbol errors for all the used Gambit symbols. I then added -lgambc (or -weak-lgambc). Nevertheless, I still get more undefined symbols which may be from libgambc.a itself. == without -lgambc gcc -I/usr/local/Gambit-C/include -L/usr/local/Gambit-C/lib -bundle -lgambc -fPIC -D___LIBRARY -D___SHARED libs/gambit/common.c libs/gambit/myenv.c libs/srfi-13-local.c libs/util.c libs/gambit/parse-error.c libs/input-parse.c libs/look-for-str.c ssax/char-encoding.c ssax/SSAX-code.c ssax/SXML-tree-trans.c sxml-tools/sxpathlib.c multi-parser/id/srfi-12.c multi-parser/id/mime.c multi-parser/id/http.c multi-parser/id/access-remote.c multi-parser/id/id.c sxml-tools/xlink-parser.c multi-parser/ssax-prim.c multi-parser/multi-parser.c html-prag/htmlprag.c sxml-tools/sxml-tools.c sxml-tools/sxpath-ext.c sxml-tools/xpath-parser.c sxml-tools/txpath.c sxml-tools/sxpath.c sxml-tools/xpath-ast.c sxml-tools/xpath-context.c sxml-tools/xlink.c sxml-tools/ddo-axes.c sxml-tools/ddo-txpath.c sxml-tools/lazy-xpath.c ssax/lazy-ssax.c sxml-tools/modif.c sxml-tools/serializer.c sxml-tools/guides.c stx/libmisc.c stx/stx-engine.c ssax-sxml.c -o ssax-sxml.so /usr/bin/ld: Undefined symbols: ____G__23__23_shell_2d_command ____G_car ____G_cdr ____G_close_2d_output_2d_port ____G_cons ____G_eq_3f_ ____G_not ____G_pair_3f_ ____G_apply ____G_current_2d_error_2d_port ____G_display ____G_error ____G_for_2d_each ____G_null_3f_ ____G_procedure_3f_ ____G_string b_::___G__23__23_fixnum_2e(void) d_::___G__23__23_fixnum_2e(void) b_::___G(void) d_::___G(void) ____G__3c__3d_ == with -lgambc gcc -I/usr/local/Gambit-C/include -L/usr/local/Gambit-C/lib -bundle -fPIC -D___LIBRARY -D___SHARED libs/gambit/common.c libs/gambit/myenv.c libs/srfi-13-local.c libs/util.c libs/gambit/parse-error.c libs/input-parse.c libs/look-for-str.c ssax/char-encoding.c ssax/SSAX-code.c ssax/SXML-tree-trans.c sxml-tools/sxpathlib.c multi-parser/id/srfi-12.c multi-parser/id/mime.c multi-parser/id/http.c multi-parser/id/access-remote.c multi-parser/id/id.c sxml-tools/xlink-parser.c multi-parser/ssax-prim.c multi-parser/multi-parser.c html-prag/htmlprag.c sxml-tools/sxml-tools.c sxml-tools/sxpath-ext.c sxml-tools/xpath-parser.c sxml-tools/txpath.c sxml-tools/sxpath.c sxml-tools/xpath-ast.c sxml-tools/xpath-context.c sxml-tools/xlink.c sxml-tools/ddo-axes.c sxml-tools/ddo-txpath.c sxml-tools/lazy-xpath.c ssax/lazy-ssax.c sxml-tools/modif.c sxml-tools/serializer.c sxml-tools/guides.c stx/libmisc.c stx/stx-engine.c ssax-sxml.c -lgambc -o ssax-sxml.so /usr/bin/ld: Undefined symbols: __Unwind_Resume vtable for __cxxabiv1::__class_type_info ___cxa_allocate_exception ___cxa_begin_catch ___cxa_end_catch ___cxa_throw ___gxx_personality_v0 _environ collect2: ld returned 1 exit status -- Stephane! coleste-XzQKRVe1yT0V+D8aMU/[email protected] (Stephane Le Cornec) +------------------- Made with recycled electrons. --------------------+ | #include <disclaimer.h> Kebekkujin desu. | +---------<http://www.starfiredesign.com/starfire/index.html>----------+