[kde-solaris] koffice 1.3b2, compilation failed

Stefan Teleman steleman at nyc.rr.com
Thu Jun 19 21:04:22 CEST 2003


This is caused by the Sun linker options being set in Makefile.am | 
Makefile.in | Makefile when building shared objects. I have seen this 
in many places in the KDE distribution.

The original is set to -z text, which is wrong. All instances of '-z 
text' should be changed to '-z defs -z weakextract' followed by the 
full list of archive libraries (*.a) to be extracted and built into 
the shared object. Also, all instances of '-z defaultextract' should 
be removed. It is not necessary to reset the linker to its default 
extract method, it does that on its own when it exits. :-)

In this particular case, the directive should look something like:
-z defs -z weakextract /usr/local/lib/python2.2/config/libpython2.2.a 
<add any other required archive libraries here> <then followed by the 
list of *.o object files here>.

--Stefan

-----

On Thursday 19 June 2003 17:35, Cyrill Ruettimann wrote:
> Hello,
>
> me again ...
>
> after fixing the ./configure issue, I stuck compiling kivio -
> troubles with the python package:
>
> memset                              0x11a8
> /usr/local/lib/python2.2/config/libpython2.2.a(_sre.o)
> memset                              0x5b80
> /usr/local/lib/python2.2/config/libpython2.2.a(_sre.o)
> memset                              0x2b4
> /usr/local/lib/python2.2/config/libpython2.2.a(frameobject.o)
> ld: fatal: relocations remain against allocatable but non-writable
> sections collect2: ld returned 1 exit status
> make[4]: *** [libkiviopart.la] Error 1
> make[4]: Leaving directory
> `/backup/source/KDE/koffice-1.2.91/kivio/kiviopart' make[3]: ***
> [all-recursive] Error 1
> make[3]: Leaving directory
> `/backup/source/KDE/koffice-1.2.91/kivio/kiviopart' make[2]: ***
> [all-recursive] Error 1
> make[2]: Leaving directory
> `/backup/source/KDE/koffice-1.2.91/kivio' make[1]: ***
> [all-recursive] Error 1
> make[1]: Leaving directory `/backup/source/KDE/koffice-1.2.91'
> make: *** [all] Error 2
>
>
> - had installed sunfreeware.com python 2.2.2 package
> - compiled python 2.2.3 on my own
>
> .. no changes.
>
> Any hints ?
>
> Thanks,
>
> Cyrill
>
> ___________________________________________________
> This message is from the kde-solaris mailing list.
> Account management: 
> http://mail.kde.org/mailman/listinfo/kde-solaris. Archives:
> http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.

-- 
Stefan Teleman          'Nobody Expects the Spanish Inquisition'
steleman at nyc.rr.com                          -Monty Python



More information about the kde-solaris mailing list