Re: GNUstep base fails - libobjc2 on NetBSD x86

Riccardo Mottola <[email protected]>
Newsgroups gmane.comp.lib.gnustep.devel
Message-ID <[email protected]>
Hi,

Frederik Seiffert wrote:
> Sorry I’m not familiar with NetBSD or PaX, but I’ve seen messages on the mailing list e.g. from Wolfgang Lux that suggest they got libobjc2 working on NetBSD.

Wolfgang is always a steap ahead of me :)


>
> Maybe you could share how you’re building libobjc2?

Sure, but I tried to change it the leat possible:

First, I configured make with:
./configure --with-library-combo=ng-gnu-gnu prefix=/ --with-layout=gnustep

Then, in libobjc2, with "ccmake ." I changed some parameters:

  CMAKE_CXX_FLAGS                  -march=i686 -mtune=i686
  CMAKE_C_FLAGS                    -march=i686 -mtune=i686

(these are necessary so that gcc does nto need external libatomic, 
causing other issues)

And I tried fiddling with the linker:
  CMAKE_LINKER                     /usr/pkg/gnu/bin/ld.gold

but using bfd did not improve things either

ineed, running "make test" has all tests fail, and I see:

/home/multix/code/libobjc2/Build/libobjc.so.4.6: text relocations
/home/multix/code/libobjc2/Build/libobjc.so.4.6: Cannot write-enable 
text segment: Permission denied
<end of output>

So this has nothing with base, but libobjc2 is broken by itself.

Riccardo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.