Linking on OS X fails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Linking on OS X fails

Tim Kack
Hi,

I've been trying to build latest master on my 10.6 OS X box but have run into some oddity.
All needed libs (sigsegv etc) are upto date from macports.
Here is what I get:

libtool: link: /usr/bin/grep -E -e "^gst_.*" ".libs/libgst.exp" > ".libs/libgst.expT"
libtool: link: mv -f ".libs/libgst.expT" ".libs/libgst.exp"
libtool: link: sed 's,^,_,' < .libs/libgst.exp > .libs/libgst-symbols.expsym
libtool: link: gcc -dynamiclib  -o .libs/libgst.7.dylib  .libs/gstpub.o .libs/files.o .libs/gst-parse.o .libs/lex.o .libs/str.o .libs/tree.o .libs/byte.o .libs/comp.o .libs/sym.o .libs/dict.o .libs/oop.o .libs/opt.o .libs/save.o .libs/cint.o .libs/heap.o .libs/input.o .libs/sysdep.o .libs/callin.o .libs/xlat.o .libs/mpz.o .libs/print.o .libs/alloc.o .libs/security.o .libs/re.o .libs/interp.o .libs/real.o .libs/sockets.o .libs/events.o   -Wl,-force_load,../lib-src/.libs/library.a -Wl,-force_load,../snprintfv/snprintfv/.libs/libsnprintfvc.a  -ldl -L/opt/local/lib /opt/local/lib/libsigsegv.dylib -lc /opt/local/lib/libffi.dylib /opt/local/lib/libltdl.dylib -lm  -O2   -install_name  /usr/local/lib/libgst.7.dylib -compatibility_version 9 -current_version 9.3 -Wl,-single_module -Wl,-exported_symbols_list,.libs/libgst-symbols.expsym
ld: duplicate symbol __gst_compiler_state in .libs/files.o and .libs/gstpub.o
collect2: ld returned 1 exit status
gnumake[3]: *** [libgst.la] Error 1
gnumake[2]: *** [all] Error 2
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2

Cheers,
Tim

Sent from a small device
_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Linking on OS X fails

Holger Freyther
On 04/13/2011 10:23 PM, Tim Käck wrote:

> libtool: link: /usr/bin/grep -E -e "^gst_.*" ".libs/libgst.exp" > ".libs/libgst.expT"
> libtool: link: mv -f ".libs/libgst.expT" ".libs/libgst.exp"
> libtool: link: sed 's,^,_,' < .libs/libgst.exp > .libs/libgst-symbols.expsym
> libtool: link: gcc -dynamiclib  -o .libs/libgst.7.dylib  .libs/gstpub.o .libs/files.o .libs/gst-parse.o .libs/lex.o .libs/str.o .libs/tree.o .libs/byte.o .libs/comp.o .libs/sym.o .libs/dict.o .libs/oop.o .libs/opt.o .libs/save.o .libs/cint.o .libs/heap.o .libs/input.o .libs/sysdep.o .libs/callin.o .libs/xlat.o .libs/mpz.o .libs/print.o .libs/alloc.o .libs/security.o .libs/re.o .libs/interp.o .libs/real.o .libs/sockets.o .libs/events.o   -Wl,-force_load,../lib-src/.libs/library.a -Wl,-force_load,../snprintfv/snprintfv/.libs/libsnprintfvc.a  -ldl -L/opt/local/lib /opt/local/lib/libsigsegv.dylib -lc /opt/local/lib/libffi.dylib /opt/local/lib/libltdl.dylib -lm  -O2   -install_name  /usr/local/lib/libgst.7.dylib -compatibility_version 9 -current_version 9.3 -Wl,-single_module -Wl,-exported_symbols_list,.libs/libgst-symbols.expsym
> ld: duplicate symbol __gst_compiler_state in .libs/files.o and .libs/gstpub.o

I think that is a genuine error and needs to be fixed. Right now I think you
want to use the stable-3.2 branch instead of master though.

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Linking on OS X fails

Tim Kack
Thanks Holger, I'll create a ticket. Hopefully can I build stable successfully.
I use gst built from git version on my Linux box and Gwens win32 version on the Windows boxes, just missing the OS X version. I guess I should use stable everywhere for production use :)

Cheers,
Tim

Sent from a small device

On Apr 13, 2011, at 23:09, Holger Hans Peter Freyther <[hidden email]> wrote:

> On 04/13/2011 10:23 PM, Tim Käck wrote:
>
>> libtool: link: /usr/bin/grep -E -e "^gst_.*" ".libs/libgst.exp" > ".libs/libgst.expT"
>> libtool: link: mv -f ".libs/libgst.expT" ".libs/libgst.exp"
>> libtool: link: sed 's,^,_,' < .libs/libgst.exp > .libs/libgst-symbols.expsym
>> libtool: link: gcc -dynamiclib  -o .libs/libgst.7.dylib  .libs/gstpub.o .libs/files.o .libs/gst-parse.o .libs/lex.o .libs/str.o .libs/tree.o .libs/byte.o .libs/comp.o .libs/sym.o .libs/dict.o .libs/oop.o .libs/opt.o .libs/save.o .libs/cint.o .libs/heap.o .libs/input.o .libs/sysdep.o .libs/callin.o .libs/xlat.o .libs/mpz.o .libs/print.o .libs/alloc.o .libs/security.o .libs/re.o .libs/interp.o .libs/real.o .libs/sockets.o .libs/events.o   -Wl,-force_load,../lib-src/.libs/library.a -Wl,-force_load,../snprintfv/snprintfv/.libs/libsnprintfvc.a  -ldl -L/opt/local/lib /opt/local/lib/libsigsegv.dylib -lc /opt/local/lib/libffi.dylib /opt/local/lib/libltdl.dylib -lm  -O2   -install_name  /usr/local/lib/libgst.7.dylib -compatibility_version 9 -current_version 9.3 -Wl,-single_module -Wl,-exported_symbols_list,.libs/libgst-symbols.expsym
>> ld: duplicate symbol __gst_compiler_state in .libs/files.o and .libs/gstpub.o
>
> I think that is a genuine error and needs to be fixed. Right now I think you
> want to use the stable-3.2 branch instead of master though.
>
> _______________________________________________
> help-smalltalk mailing list
> [hidden email]
> http://lists.gnu.org/mailman/listinfo/help-smalltalk

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Linking on OS X fails

Paolo Bonzini-2
On 04/14/2011 08:22 AM, Tim Käck wrote:
> Thanks Holger, I'll create a ticket. Hopefully can I build stable
> successfully. I use gst built from git version on my Linux box and
> Gwens win32 version on the Windows boxes, just missing the OS X
> version. I guess I should use stable everywhere for production use:)

I fixed this, I just forgot an extern. :)

master should be pretty stable in general.

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Linking on OS X fails

Tim Kack
That was quick, thanks very much!

// Tim

Sent from a small device

On Apr 14, 2011, at 9:23, Paolo Bonzini <[hidden email]> wrote:

> On 04/14/2011 08:22 AM, Tim Käck wrote:
>> Thanks Holger, I'll create a ticket. Hopefully can I build stable
>> successfully. I use gst built from git version on my Linux box and
>> Gwens win32 version on the Windows boxes, just missing the OS X
>> version. I guess I should use stable everywhere for production use:)
>
> I fixed this, I just forgot an extern. :)
>
> master should be pretty stable in general.
>
> Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk