discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep build problem


From: Andreas Höschler
Subject: Re: GNUstep build problem
Date: Thu, 7 Jan 2010 18:43:22 +0100

Hi all,

I tried both, make and gmake, both with the same result

 Linking library libgnustep-base ...
Text relocation remains                         referenced
    against symbol                  offset      in file
<unknown> 0x11 /usr/local/lib/libcallback.a(misc.o) <unknown> 0x3e /usr/local/lib/libcallback.a(misc.o) <unknown> 0x8b /usr/local/lib/libcallback.a(trampoline.o) free 0x51 /usr/local/lib/libcallback.a(trampoline.o) abort 0x22 /usr/local/lib/libcallback.a(misc.o) abort 0x4f /usr/local/lib/libcallback.a(misc.o) abort 0x95 /usr/local/lib/libcallback.a(trampoline.o) fprintf 0x1d /usr/local/lib/libcallback.a(misc.o) fprintf 0x4a /usr/local/lib/libcallback.a(misc.o) __iob 0x18 /usr/local/lib/libcallback.a(misc.o) __iob 0x45 /usr/local/lib/libcallback.a(misc.o) __iob 0x74 /usr/local/lib/libcallback.a(trampoline.o) fwrite 0x90 /usr/local/lib/libcallback.a(trampoline.o) malloc 0x66 /usr/local/lib/libcallback.a(trampoline.o) ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
gmake[3]: *** [obj/libgnustep-base.so.1.19.3] Error 1
gmake[2]: *** [internal-library-all_] Error 2
gmake[1]: *** [libgnustep-base.all.library.variables] Error 2
gmake: *** [internal-all] Error 2

Any one success on Solaris with a recent GNustep release?

I have googled and found of on http://www.phpman.info/index.php/info/gcc the hint:

`-mimpure-text'
     `-mimpure-text', used in addition to `-shared', tells the compiler
     to not pass `-z text' to the linker when linking a shared object.
     Using this option, you can link position-dependent code into a
     shared object.

     `-mimpure-text' suppresses the "relocations remain against
     allocatable but non-writable sections" linker error message.
     However, the necessary relocations will trigger copy-on-write, and
     the shared object is not actually shared across processes.
     Instead of using `-mimpure-text', you should compile all source
     code with `-fpic' or `-fPIC'.

     This option is only available on SunOS and Solaris.

If I understand this correct thsi tells me to either use the -mimpure-text or fpic option with gcc. However, how do I tell make to use this option when doing

        cd base
./configure --with-openssl-include=/usr/local/ssl/include --with-openssl-library=/usr/local/ssl/lib
        make

??

Thanks a lot,

 Andreas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]