Superuser

Autor Thema: xchat compile error  (Gelesen 5766 mal)

shIva

  • Gast
xchat compile error
« am: 20. September 2003, 17:58:22 »
kann jemand damit etwas anfangen ?

ld: Schwerer Fehler: Bibliothek -lpython2.2: nicht gefunden
ld: Schwerer Fehler: Bibliothek -lutil: nicht gefunden
ld: Schwerer Fehler: Dateiverarbeitungsfehler. Keine Ausgabe in .libs/python.so geschrieben
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `python.la'
Current working directory /export/download/xchat-2.0.4/plugins/python
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/download/xchat-2.0.4/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/download/xchat-2.0.4
*** Error code 1
make: Fatal error: Command failed for target `all'

python2.2 ist auf dem system vorhanden (/usr/local/lib)
links auf /usr/lib bringen nichts und LD_LIBRARY_PATH ist auch richtig gesetzt.

die ausgabe kommt nach einem ./configure --disable-nls beim make des xchat.

sonnenblen.de - Das unabhängige Sun User Forum

xchat compile error
« am: 20. September 2003, 17:58:22 »

Waldo

  • Gast
Re: xchat compile error
« Antwort #1 am: 21. September 2003, 16:07:38 »
Nahmd,

shIva: schwerster Fehler: Unix auf deutsch installiert.

LD_LIBRARY_PATH ist für ld.so.1,
für den Linker beim Kompilieren brauchst Du -L/pfad/zu/python/lib.

Probier mal stumpf folgendes (in Bourne-Shells):
LDFLAGS=-L/usr/local/lib make

Hth,

E.:wq

shIva

  • Gast
Re: xchat compile error
« Antwort #2 am: 21. September 2003, 17:11:24 »
guten tag !

unix auf deutsch ist meistens garnicht so deutsch :-)

es funktioniert auf diesem wege leider nicht.
eigenartigerweise wird im Makefile nach dem configure ein falscher pfad angegeben. dummerweise klappt es nach aenderung auf den richtigen pfad auch nicht.

@waldo : hast du vielleicht noch eine idee ?

Waldo

  • Gast
Re: xchat compile error
« Antwort #3 am: 21. September 2003, 18:27:51 »
Hi,

wie hast Du denn das ./configure aufgerufen?
Was spuckt denn ein "ls -l  /usr/local/lib | grep pyth" aus?
Und wo auf Deinem System gibt es ein libutil.so?

Fragen über Fragen...

E.:wq

shIva

  • Gast
Re: xchat compile error
« Antwort #4 am: 22. September 2003, 03:03:20 »
wie hast Du denn das ./configure aufgerufen?

./configure --disable-nls
mittels
/configure --disable-nls --disable-python kommt es zum gleichen ergebnis

Was spuckt denn ein "ls -l  /usr/local/lib | grep pyth" aus?

bash-2.05# ls -l  /usr/local/lib | grep pyth
drwxr-xr-x  16 root     bin        11264 Sep 20 14:47 python2.2

Und wo auf Deinem System gibt es ein libutil.so?

hmm... anscheinend nirgends. scheint so, als sei dies das problem. durch die python geschichte habe ich mich wohl zusehr darauf versteift.  :o

in welchem pkg verbirgt sich die lib ?
 ???

die einzige (aehnliche) lib ist /usr/local/libutils.so
« Letzte Änderung: 22. September 2003, 04:35:23 von shIva »

SmellyCat

  • Gast
Re: xchat compile error
« Antwort #5 am: 22. September 2003, 13:44:59 »
libutil.so sollte (!!!) ein Teil von glib sein, ich glaube von 2.x wobei ich mir hier aber nicht 100% sicher bin.

shIva

  • Gast
Re: xchat compile error
« Antwort #6 am: 22. September 2003, 18:02:39 »
sooooo .... einen fehler habe ich beseitigen koennen : libpython wird nun gefunden. in den Makefiles wurde irrsinnigerweise immer der pfad /usr/local/local/lib/..... angegeben. woher das kommt weiss ich nicht. ich habe alle von hand korrigiert und die lib wird nun gefunden.
das problem mit lutil ist noch da :

/bin/bash ../../libtool --mode=link gcc  -g -O2 -Wall   -L/usr/local/lib -o python.la -rpath /usr/local/lib/xchat/plugins -avoid-version -module python.lo -L/usr/local/lib/python2.2/config -lpython2.2 -lpthread -lutil -lnsl -lsocket  -L/usr/openwin/lib -lX11 -ldl -lgmodule-2.0 -ldl -lglib-2.0
gcc -shared -Wl,-h -Wl,python.so -o .libs/python.so  .libs/python.o  -L/usr/local/lib -L/usr/local/lib/python2.2/config -lpython2.2 -lpthread -lutil -lnsl -lsocket -L/usr/openwin/lib -lX11 -lgmodule-2.0 -ldl -lglib-2.0 -lc
ld: Schwerer Fehler: Bibliothek -lutil: nicht gefunden
ld: Schwerer Fehler: Dateiverarbeitungsfehler. Keine Ausgabe in .libs/python.so geschrieben
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `python.la'
Current working directory /export/download/xchat-2.0.4/plugins/python
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/download/xchat-2.0.4/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/download/xchat-2.0.4
*** Error code 1
make: Fatal error: Command failed for target `all'


in glib ist die lib nicht enthalten. ich habe mir eine libutils.so selbst compiliert, die scheint es aber nicht zu sein.

BITTE : woher bekomme ich die jetzt ?

es gibt noch eine libutil von freshmeat, die allerdings nur via cc nicht aber ueber gcc compiliert werden will, wobei mein cc scheinbar probleme damit hat :-/

falls jemand die lib hat, kann er sie mir evtl. via email zukommen lassen, oder einen link zum downloaden geben ?

danke leute ;-)

SmellyCat

  • Gast
Re: xchat compile error
« Antwort #7 am: 22. September 2003, 20:02:52 »

Zitat
es gibt noch eine libutil von freshmeat, die allerdings nur via cc nicht aber ueber gcc compiliert werden will, wobei mein cc scheinbar probleme damit hat

ich habe die Software nicht vor mir aber norm hat man bei soetwas 2 Möglichkeiten:

- es gibt mehere Makefiles und eins davon ist für gcc (siehe README)
- export CC=gcc, wobei da etwas unsauber ist IMO

bye
Mats

shIva

  • Gast
Re: xchat compile error
« Antwort #8 am: 22. September 2003, 22:58:50 »
uuuuuunglaublich :

das problem schien das configure script gewesen zu sein. nachdem ich gesehen hatte, dass auf xchat.org eine neue version (2.0.5) availible war, habe ich diese getestet ... und siehe da : alles funktioniert vollkommen problemlos.

wer also xchat compilieren moechte, sollte direkt version 2.0.5 nutzen.

trotzdem, danke nochmals fuer die hilfe.

ps : ich habe noch einen anderen thread gestartet : http://www.sonnenblen.de/cgi-bin/YaBB/YaBB.cgi?board=Solaris&action=display&num=1063931749
falls noch jemand dazu etwas sagen kann, waere das wirklich sehr hilfreich ;)

SmellyCat

  • Gast
Re: xchat compile error
« Antwort #9 am: 22. September 2003, 23:19:14 »
Hi,

weisst Du aus dem Kopfe gegen was Du gebaut hast? Glib, gtk etc meine ich - Downloads, von den Solaris CDs, von SUN Gnome etc.?

Ich frage deshalb: bekommst Du die Dependencies noch in etwa zusammen hätte ich gerne ein Packages davon für http://www.baking-unix.net (in naher Zukunft) bzw http://www.smellycat.net/sun.html

bye
Mats

sonnenblen.de - Das unabhängige Sun User Forum

Re: xchat compile error
« Antwort #9 am: 22. September 2003, 23:19:14 »