[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-solaris
Subject:    Re: [kde-solaris] Compiling KOffice
From:       James Tappin <sjt () star ! sr ! bham ! ac ! uk>
Date:       2001-09-14 11:57:22
[Download RAW message or body]

On Friday 14 September 2001 12:48, Mathias Waack wrote:
> Hi all,
>
> I'v got a problem compiling koffice (from CVS tagged
> KOFFICE_1_1_RELEASE)
>
> c++ -shared -nostdlib
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crti.o
> /usr/ccs/lib/values-Xa.o
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crtbegin.o
> .libs/kivio_canvas.o .libs/kivio_doc.o .l
> <------------ snip -------------------------->
>  -Wl,-h -Wl,libkiviopart.so -o .libs/libkiviopart.so
> Text relocation remains                         referenced
>     against symbol                  offset      in file
> _PyUnicode_IsLinebreak              0x630
> /usr/local/lib/python2.1/config/libpython2.1.a(_sre.o)
> _PyUnicode_IsLinebreak              0x47e0
> /usr/local/lib/python2.1/config/libpython2.1.a(unicodeobject.o)
> _PyUnicode_IsLinebreak              0x624
> /usr/local/lib/python2.1/config/libpython2.1.a(_sre.o)
> init_exceptions                     0x1f0
> /usr/local/lib/python2.1/config/libpython2.1.a(pythonrun.o)
> closedir                            0x8dc
> /usr/local/lib/python2.1/config/libpython2.1.a(posixmodule.o)
> closedir                            0x954
> /usr/local/lib/python2.1/config/libpython2.1.a(posixmodule.o)
> <--------------- snip ----------------------->
> <unknown>                           0xa8
> /usr/local/lib/python2.1/config/libpython2.1.a(marshal.o)
> <unknown>                           0x8
> /usr/local/lib/python2.1/config/libpython2.1.a(listobject.o)
> <unknown>                           0x4
> /usr/local/lib/python2.1/config/libpython2.1.a(listobject.o)
> <unknown>                           0x15c
> /usr/local/lib/python2.1/config/libpython2.1.a(_sre.o)
> ld: fatal: relocations remain against allocatable but non-writable
> sections
> collect2: ld returned 1 exit status
> make[2]: *** [libkiviopart.la] Error 1
> make[2]: Leaving directory
> `/export/q_opt/kde2.2cvs/koffice/kivio/kiviopart'
>
> Anybody knows whats going wrong here?

The problem is how the python library was compiled. Under Solaris (at least 
on Sparc) a static library which is called from a dynamic one must be made 
relocatable (just as if it were going to be a sharable). You'll need to 
recompile libpython with the -fPIC compile option. 

James

-- 
+------------------------+-------------------------------+---------+
| James Tappin           | School of Physics & Astronomy |  O__    |
| sjt@star.sr.bham.ac.uk | University of Birmingham      | --  \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722                  |         |
+--------------------------------------------------------+---------+
___________________________________________________
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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic