static libraries corrupt?
Ulli Hansen
u.hansen at tu-bs.de
Mon May 22 08:04:54 BST 2000
Hi,
fistly let me state, i'm using the egcs 1.1.2 compiler. If this is not
compatible to kdevelop, maybe the following problem description is
obsolete.
I have subdevided my project into subfolders. While compiling kdevelop
tries to build a static library for each subdir, which seems to work
nicely. But when it comes to linking, i get the following error:
./daemon/libdaemon.a ./common/libcommon.a -L/usr/lib
-L/opt/CORBA/OB-3.2.1/ob/lib -L/opt/poet60/lib -ldaemon -lcommon
-lpt6begcs29 -lpt6eegcs29 -lpt6iegcs29 -lpt6kegcs29 -lpt6qegcs29
-lpt6segcs29 -lpt6tegcs29 -ldl -lpthread -lstdc++ -lOB
make[1]: execvp: ./daemon/libdaemon.a: Keine Berechtigung
make[1]: *** [test] Error 127
make[1]: Leaving directory `/users2/mitarb/ulli/kdev/test/test'
make: *** [all-recursive] Error 1
*** Fehler ***
(sorry, i'm using the german version - basically i get a Permission
Denied)
If i run a chmod 755 on libdaemon.a the error turns into this:
./daemon/libdaemon.a ./common/libcommon.a -L/usr/lib
-L/opt/CORBA/OB-3.2.1/ob/lib -L/opt/poet60/lib -ldaemon -lcommon
-lpt6begcs29 -lpt6eegcs29 -lpt6iegcs29 -lpt6kegcs29 -lpt6qegcs29
-lpt6segcs29 -lpt6tegcs29 -ldl -lpthread -lstdc++ -lOB
./daemon/libdaemon.a: line 1: syntax error near unexpected token
`!<arch>'
./daemon/libdaemon.a: line 1: `!<arch>'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/users2/mitarb/ulli/kdev/test/test'
make: *** [all-recursive] Error 1
*** Fehler ***
So now it can use the library but is not happy with its contents.
Do the libraries seem to be corrupt? Is it possible to build dynamic
libraries or is it possible to avoid building libraries for each
subdirectory? (The structure of subdirectories is due to this being a
project being imported into kdevelop)
-> I'm using kdevelop 1.2 on SuSE Linux 6.3, Compiler: gcc version
egcs-2.91.66 19990314/Linux (egcs-1.1.2 release), Linker: GNU ld version
2.9.1 (with BFD 2.9.1.0.25)
Any hints and help appreciated
thanks
Ulli
------------------------------------------------------------------
Ulli Hansen
Institut für Mikrotechnik tel: ++49-531-391-9764
Technische Universität Braunschweig fax: ++49-531-391-9751
Alte Salzdahlumer Str. 203 mailto:u.hansen at tu-bs.de
D-38124 Braunschweig http://www.tu-bs.de/institute/imt
------------------------------------------------------------------
More information about the KDevelop
mailing list