Re: Building and using shared libraries using gccgo

2013-02-06 Thread Enrico Tassi
On Tue, Feb 05, 2013 at 04:36:44PM +0100, Joachim Breitner wrote: > At least to me my work on Haskell in Debian feels more than pretending, > and from personal experience with the creators of the language, I have > strong doubts that they are Idiots. They are not, they are very smart, but they are

Re: Building and using shared libraries using gccgo

2013-02-05 Thread Don Armstrong
On Tue, 05 Feb 2013, Joachim Breitner wrote: > Am Dienstag, den 05.02.2013, 17:03 +0100 schrieb Adam Borowski: > > Just imagine what would happen if libc6 would be statically > > linked, and a security bug happens inside (like, in the stub > > resolver). Rebuilding the world on every update might b

Re: Building and using shared libraries using gccgo

2013-02-05 Thread Hilko Bengen
* Adam Borowski: > If there is a bug in library A, if you use static linking, you need to > rebuild every single library B that uses A, then rebuild every C that > uses B, then finally every single package in the archive that uses any > of these libraries. But wouldn't it be great if all the peop

Re: Building and using shared libraries using gccgo

2013-02-05 Thread Joachim Breitner
Hi, Am Dienstag, den 05.02.2013, 17:03 +0100 schrieb Adam Borowski: > On Tue, Feb 05, 2013 at 04:36:44PM +0100, Joachim Breitner wrote: > It's not a matter of "a little infrastructural complication", it's about > having the slightest chance of reasonable security support -- or even > regular bug f

Re: Building and using shared libraries using gccgo

2013-02-05 Thread Adam Borowski
On Tue, Feb 05, 2013 at 04:36:44PM +0100, Joachim Breitner wrote: > At least to me my work on Haskell in Debian feels more than pretending, > and from personal experience with the creators of the language, I have > strong doubts that they are Idiots. > > In fact I don’t see how you can have modern

Re: Building and using shared libraries using gccgo

2013-02-05 Thread Joachim Breitner
Hi, Am Dienstag, den 05.02.2013, 10:53 + schrieb Steve McIntyre: > Paul Wise wrote: > >On Tue, Feb 5, 2013 at 7:14 AM, Michael Stapelberg wrote: > > > >> Assuming we ship Go libraries compiled as shared libraries, where do we > >> get the SONAME from? There is no mechanism for Go libraries to

Re: Building and using shared libraries using gccgo

2013-02-05 Thread Chow Loong Jin
On 05/02/2013 18:53, Steve McIntyre wrote: > FFS, yet another new language where the implementors have refused to > think ahead and consider ABI handling? Idiots. :-( I totally agree with you here. > Considering the mess that we already have with (for example) Haskell > in this respect, I would v

Re: Building and using shared libraries using gccgo

2013-02-05 Thread Steve McIntyre
Paul Wise wrote: >On Tue, Feb 5, 2013 at 7:14 AM, Michael Stapelberg wrote: > >> Assuming we ship Go libraries compiled as shared libraries, where do we >> get the SONAME from? There is no mechanism for Go libraries to declare >> an ABI break. Inventing one and asking all upstream projects to adopt

Re: Building and using shared libraries using gccgo

2013-02-04 Thread Paul Wise
On Tue, Feb 5, 2013 at 7:14 AM, Michael Stapelberg wrote: > Assuming we ship Go libraries compiled as shared libraries, where do we > get the SONAME from? There is no mechanism for Go libraries to declare > an ABI break. Inventing one and asking all upstream projects to adopt it > seems unlikely t

Re: Building and using shared libraries using gccgo

2013-02-04 Thread Michael Stapelberg
Hi Hilko, Hilko Bengen writes: > Sure. See the Makefile at the end of this mail. Please note that I > [...] Thanks for the instructions. I reproduced them and got shared libraries plus dynamically linked binaries. Aside from details about the split stack flags, now one big question arises: Assu

Re: Building and using shared libraries using gccgo

2013-02-04 Thread Michael Stapelberg
Hi Matthias, Matthias Klose writes: > Am 31.01.2013 13:02, schrieb Hilko Bengen: >> 2. -fno-split-stack >>Otherwise I could not link executables and got the following error >>message: >>/usr/bin/ld.bfd.real: cindex: hidden symbol `__morestack' in >>/usr/lib/gcc/x86_64-linux-gnu/4

Re: Building and using shared libraries using gccgo

2013-01-31 Thread Matthias Klose
Am 31.01.2013 13:02, schrieb Hilko Bengen: > 2. -fno-split-stack >Otherwise I could not link executables and got the following error >message: >/usr/bin/ld.bfd.real: cindex: hidden symbol `__morestack' in >/usr/lib/gcc/x86_64-linux-gnu/4.7/libgcc.a/morestack.o) is referenced >by

Building and using shared libraries using gccgo

2013-01-31 Thread Hilko Bengen
* Michael Stapelberg: > Can you please list the full instructions you did to accomplish building > sparse/index/regexp as a shared library? Sure. See the Makefile at the end of this mail. Please note that I don't really know what I'm doing here -- just tried a few things and tried to make sense o