Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with compiling nss for gaim
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Greek
View previous topic :: View next topic  
Author Message
ksenos
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 164
Location: Athens, Greece

PostPosted: Sun Jan 09, 2005 11:52 am    Post subject: Problem with compiling nss for gaim Reply with quote

Γεια και χαρά και χρόνια πολλά σε όλους.

Είπα να βάλω την τελευταία έκδοση του gaim αλλά μου το έκανε σαλάτα λίγο. Κανοντας manually update τα απαιτούμενα portage entries (56K ακόμα :() και στην συνέχεια εγκατάσταση του gaim μου πέταξε ένα error κατα το compile του nss. Παραθέτω ένα μέρος απο το output μήπως και μπορεί κάποιος να μου πεί που οφείλεται.

Code:
gcc -shared -Wl,-soname -Wl,libsoftokn3.so -Wl,--version-script,Linux2.6_x86_glibc_PTH_OPT.OBJ/softokn.def -o Linux2.6_x86_glibc_PTH_OPT.OBJ/libsoftokn3.so Linux2.6_x86_glibc_PTH_OPT.OBJ/alghmac.o Linux2.6_x86_glibc_PTH_OPT.OBJ/dbinit.o Linux2.6_x86_glibc_PTH_OPT.OBJ/dbmshim.o Linux2.6_x86_glibc_PTH_OPT.OBJ/ecdecode.o Linux2.6_x86_glibc_PTH_OPT.OBJ/fipstest.o Linux2.6_x86_glibc_PTH_OPT.OBJ/fipstokn.o Linux2.6_x86_glibc_PTH_OPT.OBJ/keydb.o Linux2.6_x86_glibc_PTH_OPT.OBJ/lowcert.o Linux2.6_x86_glibc_PTH_OPT.OBJ/lowkey.o Linux2.6_x86_glibc_PTH_OPT.OBJ/lowpbe.o Linux2.6_x86_glibc_PTH_OPT.OBJ/padbuf.o Linux2.6_x86_glibc_PTH_OPT.OBJ/pcertdb.o Linux2.6_x86_glibc_PTH_OPT.OBJ/pk11db.o Linux2.6_x86_glibc_PTH_OPT.OBJ/pkcs11.o Linux2.6_x86_glibc_PTH_OPT.OBJ/pkcs11c.o Linux2.6_x86_glibc_PTH_OPT.OBJ/pkcs11u.o Linux2.6_x86_glibc_PTH_OPT.OBJ/rawhash.o Linux2.6_x86_glibc_PTH_OPT.OBJ/rsawrapr.o Linux2.6_x86_glibc_PTH_OPT.OBJ/softkver.o Linux2.6_x86_glibc_PTH_OPT.OBJ/tlsprf.o   ../../../dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/lib/libfreebl.a ../../../dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/lib/libsecutil.a ../../../dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/lib/libdbm.a  -L../../../dist/Linux2.6_x86_glibc_PTH_OPT.OBJ/lib/ -L/usr//nspr/ -lplc4 -lplds4 -lnspr4
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lplc4
collect2: ld returned 1 exit status
make[2]: *** [Linux2.6_x86_glibc_PTH_OPT.OBJ/libsoftokn3.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/nss-3.9.2-r2/work/nss-3.9.2/mozilla/security/nss/lib/softoken'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/var/tmp/portage/nss-3.9.2-r2/work/nss-3.9.2/mozilla/security/nss/lib'
make: *** [libs] Error 2


Ευχαριστώ πολύ.

Κώστας
_________________
Honor guide me...
Back to top
View user's profile Send private message
menace
n00b
n00b


Joined: 25 Dec 2003
Posts: 47

PostPosted: Sun Jan 09, 2005 2:22 pm    Post subject: Reply with quote

απο οτι βλέπω το compile σπάει όταν πάει να κάνει link με το libplc4.so

στο σύστημά μου κάνω:
Code:
[~@ H:5 RC:OK root]#locate libplc4.so
/opt/OpenOffice.org/program/libplc4.so
/usr/aw/maya6.0/lib/libplc4.so
/usr/lib/nspr/libplc4.a
/usr/lib/nspr/libplc4.so
/usr/lib/MozillaFirefox/libplc4.so
/usr/lib/mozilla/libplc4.so


λογικά ο linker ψάχνε στο /lib , /usr/lib και /usr/local/lib.(ανάλογα με το /etc/ld.so.conf)
Μάλλον αυτό που θέλεις είναι το /usr/lib/nspr/libplc4.so
Για να δούμε σε ποιό ebuild ανοίκει το αρχείο αυτό:
Code:
[~@ H:5 RC:OK root]# qpkg -f /usr/lib/nspr/libplc4.so
dev-libs/nspr *


Δες αν έχεις το nspr (ή μήπως θέλει upgrade??)

Ενναλακτικά, αν έχεις ήδη το libplc4.so μπορείς να κάνεις symlink το αρχείο σε ένα directory που είναι ήδη στο /etc/ld.so.conf ή να προσθέσεις το directory που βρίσκεται το libplc4.so στο /etc/ld.so.conf
Back to top
View user's profile Send private message
ksenos
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 164
Location: Athens, Greece

PostPosted: Sun Jan 09, 2005 3:41 pm    Post subject: Reply with quote

Δυστυχώς δεν μου δούλεψε ούτε έτσι (με προσθήκη του path στο /etc/ld.so.conf).

Παρατήρησα οτι μου βγάζει και ένα ακόμα error στην αρχή.

Code:
/usr/lib/portage/bin/ebuild.sh: line 1: get_libdir: command not found


Το παραπάνω μου το εμφανίζει κατά την έναρξη του compile 5 φορες συνεχόμενες (ίσως ψάχνει και άλλα libs?)

Το qpkg που βρίσκεται? Μήπως επειδη το portage μου είναι από την έκδοση 2004.2 με χειροκίνητες προσθήκες έχω τέτοια προβλήματα?
_________________
Honor guide me...
Back to top
View user's profile Send private message
menace
n00b
n00b


Joined: 25 Dec 2003
Posts: 47

PostPosted: Sun Jan 09, 2005 4:05 pm    Post subject: Reply with quote

το qpkg είναι μέρος του gentoolkit.

τώρα για τα υπόλοιπα προβλήματα δεν μπορώ να πώ και πολλά.

Ισως να δοκιμάσεις να βγάλεις το path που έβαλες στο /etc/ld.so.conf και να κάνεις emerge το dev-libs/nspr ?
Back to top
View user's profile Send private message
ksenos
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 164
Location: Athens, Greece

PostPosted: Sun Jan 09, 2005 4:43 pm    Post subject: Reply with quote

Έκανα και το παραπάνω αλλά...

Τελικα όμως διορθώθηκε κάνοντας ένα link του /usr/lib/nspr στο /usr/nspr. Το κακό είναι οτι το πρόβλημα μετατέθηκε αλλού. Αφού έκανε compile με επιτυχία το gaim έχει προβλήματα με το gaim-encryption το οποίο μου πετάει τα παρακάτω errors.

Code:
 gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib/gaim/\" -DDATADIR=\"/usr/share\" -I/usr/include/gaim -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -O2 -march=i686 -c config_ui.c  -fPIC -DPIC -o .libs/config_ui.o
 gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib/gaim/\" -DDATADIR=\"/usr/share\" -I/usr/include/gaim -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -O2 -march=i686 -c ge_blist.c  -fPIC -DPIC -o .libs/ge_blist.o
In file included from cryptproto.h:24,
                 from config_ui.c:31:
rsa_nss.h:33:19: keyhi.h: No such file or directory
In file included from cryptproto.h:24,
                 from config_ui.c:31:
rsa_nss.h:36: error: syntax error before "SECKEYPrivateKey"
rsa_nss.h:36: warning: no semicolon at end of struct or union
rsa_nss.h:37: warning: type defaults to `int' in declaration of `pub'
rsa_nss.h:37: warning: data definition has no type or storage class
rsa_nss.h:39: error: syntax error before '}' token
rsa_nss.h:39: warning: type defaults to `int' in declaration of `RSA_NSS_KEY'
rsa_nss.h:39: warning: data definition has no type or storage class
In file included from config_ui.c:31:
cryptproto.h:32: error: syntax error before "RSA_NSS_KEY"
cryptproto.h:32: warning: no semicolon at end of struct or union
cryptproto.h:33: warning: type defaults to `int' in declaration of `proto_union'
cryptproto.h:33: warning: data definition has no type or storage class
In file included from config_ui.c:32:
keys.h:35: error: syntax error before "proto_union"
keys.h:35: warning: no semicolon at end of struct or union
keys.h:43: error: syntax error before '}' token
config_ui.c: In function `config_do_regen':
config_ui.c:113: error: dereferencing pointer to incomplete type
config_ui.c: In function `GE_get_config_frame':
config_ui.c:331: error: dereferencing pointer to incomplete type
config_ui.c:337: error: dereferencing pointer to incomplete type
config_ui.c:339: error: dereferencing pointer to incomplete type
config_ui.c:348: error: dereferencing pointer to incomplete type
config_ui.c:354: error: dereferencing pointer to incomplete type
config_ui.c:356: error: dereferencing pointer to incomplete type
make[2]: *** [config_ui.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib/gaim/\" -DDATADIR=\"/usr/share\" -I/usr/include/gaim -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -O2 -march=i686 -c ge_blist.c -o ge_blist.o >/dev/null 2>&1
make[2]: Leaving directory `/var/tmp/portage/gaim-encryption-2.32-r1/work/gaim-encryption-2.32'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gaim-encryption-2.32-r1/work/gaim-encryption-2.32'
make: *** [all-recursive-am] Error 2
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/gaim-encryption-2.32-r1/work/gaim-encryption-2.32'
Making all in po
make[2]: Entering directory `/var/tmp/portage/gaim-encryption-2.32-r1/work/gaim-encryption-2.32/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/gaim-encryption-2.32-r1/work/gaim-encryption-2.32/po'
Making all in intl
make[2]: Entering directory `/var/tmp/portage/gaim-encryption-2.32-r1/work/gaim-encryption-2.32/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/gaim-encryption-2.32-r1/work/gaim-encryption-2.32/intl'
make[2]: Entering directory `/var/tmp/portage/gaim-encryption-2.32-r1/work/gaim-encryption-2.32'
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.  -DLOCALEDIR=\"/usr/share/locale\"     -DLIBDIR=\"/usr/lib/gaim/\"          - DDATADIR=\"/usr/share\"                                         -I/usr/include/gaim -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include                  -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -Wall -O2 -march=i686 -c config_ui.c
 gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib/gaim/\" -DDATADIR=\"/usr/share\" -I/usr/include/gaim -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -O2 -march=i686 -c config_ui.c  -fPIC -DPIC -o .libs/config_ui.o
In file included from cryptproto.h:24,
                 from config_ui.c:31:
rsa_nss.h:33:19: keyhi.h: No such file or directory
In file included from cryptproto.h:24,
                 from config_ui.c:31:
rsa_nss.h:36: error: syntax error before "SECKEYPrivateKey"
rsa_nss.h:36: warning: no semicolon at end of struct or union
rsa_nss.h:37: warning: type defaults to `int' in declaration of `pub'
rsa_nss.h:37: warning: data definition has no type or storage class
rsa_nss.h:39: error: syntax error before '}' token
rsa_nss.h:39: warning: type defaults to `int' in declaration of `RSA_NSS_KEY'
rsa_nss.h:39: warning: data definition has no type or storage class
In file included from config_ui.c:31:
cryptproto.h:32: error: syntax error before "RSA_NSS_KEY"
cryptproto.h:32: warning: no semicolon at end of struct or union
cryptproto.h:33: warning: type defaults to `int' in declaration of `proto_union'
cryptproto.h:33: warning: data definition has no type or storage class
In file included from config_ui.c:32:
keys.h:35: error: syntax error before "proto_union"
keys.h:35: warning: no semicolon at end of struct or union
keys.h:43: error: syntax error before '}' token
config_ui.c: In function `config_do_regen':
config_ui.c:113: error: dereferencing pointer to incomplete type
config_ui.c: In function `GE_get_config_frame':
config_ui.c:331: error: dereferencing pointer to incomplete type
config_ui.c:337: error: dereferencing pointer to incomplete type
config_ui.c:339: error: dereferencing pointer to incomplete type
config_ui.c:348: error: dereferencing pointer to incomplete type
config_ui.c:354: error: dereferencing pointer to incomplete type
config_ui.c:356: error: dereferencing pointer to incomplete type
make[2]: *** [config_ui.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/gaim-encryption-2.32-r1/work/gaim-encryption-2.32'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gaim-encryption-2.32-r1/work/gaim-encryption-2.32'
make: *** [all-recursive-am] Error 2
 
!!! ERROR: x11-plugins/gaim-encryption-2.32-r1 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! Make failed
!!! If you need support, post the topmost build error, NOT this status message.


Χάος, ε? Τουλάχιστον εγώ δεν μπορώ να βγάλω άκρη :oops: :cry:
_________________
Honor guide me...
Back to top
View user's profile Send private message
menace
n00b
n00b


Joined: 25 Dec 2003
Posts: 47

PostPosted: Sun Jan 09, 2005 5:02 pm    Post subject: Reply with quote

Δεν μπορεί να βρεί το /usr/include/nss/keyhi.h include file

Αυτό απο οτι βλέπω ανοίκει στο dev-libs/nss

Αν δεν το έχεις (που μάλλον δεν το έχεις) πρέπει να το βάλεις.

Κανονικά αυτά πρέπει να τα κάνει μονο του το portage. Οπως είπες το έκανες update στο χέρι, οπότε μάλλον έχεις δημιουργήσει προβλήματα.
Πάντως ότι αλλαγές και να κάνεις θα χαθούν με το επόμενο sync
Back to top
View user's profile Send private message
ksenos
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 164
Location: Athens, Greece

PostPosted: Mon Jan 10, 2005 9:12 am    Post subject: Reply with quote

Και όμως υπάρχει :( :( :(

Θα την βρω την άκρη που θα πάει. Ευχαριστώ πολύ πάντως :D
_________________
Honor guide me...
Back to top
View user's profile Send private message
ksenos
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 164
Location: Athens, Greece

PostPosted: Mon Jan 10, 2005 9:19 am    Post subject: Reply with quote

Το πρόβλημα λύθηκε τελικα. Αλλό ένα symlink του /usr/nss στο /usr/lib/nss. Μάλλον τα εγκαθιστά το portage σε "λάθος" σημεία τα πακέτα :roll:
_________________
Honor guide me...
Back to top
View user's profile Send private message
ksenos
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 164
Location: Athens, Greece

PostPosted: Mon Jan 10, 2005 10:32 am    Post subject: Reply with quote

Τελικά δούλεψε μόνο χρησιμοποιώντας το gnutls. Έπρεπε να γράψω στο /etc/portage/package.use "net-im/gaim gnutls".

Κάνοντας compile από την αρχή το "τιμημένο" δούλεψε αυτή την φορά. :D
_________________
Honor guide me...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Greek All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum