PDA

View Full Version : Pb with configure/libEQ.a



snoopman41
06-10-2002, 01:51 AM
i have this problem when the ./configure is trying to use libEQ.a
There is a libEQ.a in my /usr/lib, the error message seems to indicate that this lib is older than it is required, if so, where can get a new one ? (i gone through the mandrake 8.1 install to get a libEQ)


checking whether to build with decryption... yes
checking for InitializeLibEQ in -lEQ... no
configure: error: libEQ.a not found or out of date. Be sure libEQ.a is already installed in /usr/local/lib or /usr/lib

Cryonic
06-10-2002, 03:02 AM
vi README.libEQ

snoopman41
06-10-2002, 03:47 AM
thanks, i check the file, get a new libEQ.a but it still do not compile (same problem with libEQ.a)
Compiler if gcc-3.0.4 and every other steps of ./configure just work fine.
here's a nm for the lib symbols, the InitializeLibEQ is present

so, anyone got some clue ? mangling problem ?


libEQ.o:
00000570 T DecodeSpawn
00000da0 T DllMain
00000be0 T FindKey
00000000 T InitializeLibEQ
000006f0 T ProcessPacket
000003a0 T _Z10CheckSpawnPKhjj
00000410 T _Z11CheckPlayerPKhjj
00000030 t _Z11isValidNamePKhj
00000630 T _Z12DecodePlayerPKhjPhPjj
000001c0 T _Z16GetKeyBruteForcePhjj
00000070 T _Z17CheckFingerPrintsPKhi
00000200 T _Z6GetKeyPKhjj
00000010 d _ZZ13ProcessPacketE4once
...

casey
06-10-2002, 07:12 AM
go check your config.log. it will show all the commands configure actually runs to check these things, and will give you a much more helpful error than "no". feel free to post the compile/link commands here if you need a little help deciphering them.

snoopman41
06-10-2002, 07:44 AM
thanks, i'll check it and post further informations (successful or not).

snoopman41
06-10-2002, 10:00 AM
here's the result on the config.log, i cannot figure what is wrong.


configure:8197: g++-3.0.4 -o conftest -g
-O2 conftest.C -lEQ -lz -lpthread -lgdbm -lz -lpcap 1>&5
/tmp/cc4di6YG.o: In function `main':
/root/showeq/configure:8193: undefined reference to `InitializeLibEQ'
collect2: ld returned 1 exit status
configure: failed program was:
#line 8183 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char InitializeLibEQ();

int main() {
InitializeLibEQ()
; return 0; }

Dedpoet
06-10-2002, 11:32 AM
Check your permissions on your libEQ.a file and make sure it's only in one lib directory.

snoopman41
06-10-2002, 12:18 PM
no other libEQ.a on the machine :


-rw-r--r-- 1 root root 6734 jun 10 11:46 /usr/lib/libEQ.a.1

here's part of the config.log, in bold the strange thing.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.


configure:2034: checking for Cygwin environment
configure:2050: gcc-3.0.4 -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:2046: `__CYGWIN32__' undeclared (first use in this function)
configure:2046: (Each undeclared identifier is reported only once
configure:2046: for each function it appears in.)
configure: failed program was:
#line 2039 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2067: checking for mingw32 environment
configure:2079: gcc-3.0.4 -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:2075: `__MINGW32__' undeclared (first use in this function)
configure:2075: (Each undeclared identifier is reported only once
configure:2075: for each function it appears in.)
configure: failed program was:
#line 2072 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2176: checking for ld used by GCC
configure:2244: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.11.92.0.12 20011121
configure:2261: checking for /usr/bin/ld option to reload object files
configure:2273: checking for BSD-compatible nm
configure:2311: checking how to recognise dependant libraries
configure:2494: checking for object suffix
configure:2500: gcc-3.0.4 -c -g -O2 conftest.c 1>&5
configure:2520: checking for executable suffix
configure:2530: gcc-3.0.4 -o conftest -g -O2 conftest.c 1>&5
configure:2561: checking command to parse /usr/bin/nm -B output
configure:2641: gcc-3.0.4 -c -g -O2 conftest.c 1>&5
configure:2644: /usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm
configure:2695: gcc-3.0.4 -o conftest -g -O2 conftest.c conftstm.o 1>&5
configure:2744: checking for dlfcn.h
configure:2754: gcc-3.0.4 -E conftest.c >/dev/null 2>conftest.out
configure:2922: checking for ranlib
configure:2989: checking for strip
configure:3232: checking for objdir
configure:3259: checking for gcc-3.0.4 option to produce PIC
configure:3411: checking if gcc-3.0.4 PIC flag -fPIC works
configure:3425: gcc-3.0.4 -c -g -O2 -fPIC -DPIC conftest.c 1>&5
configure:3477: checking if gcc-3.0.4 static flag -static works
configure:3492: gcc-3.0.4 -o conftest -g -O2 -static conftest.c 1>&5
configure:3519: checking if gcc-3.0.4 supports -c -o file.o
configure:3538: gcc-3.0.4 -c -g -O2 -o out/conftest2.o conftest.c 1>&5
configure:3567: checking if gcc-3.0.4 supports -c -o file.lo
configure:3585: gcc-3.0.4 -c -g -O2 -c -o conftest.lo conftest.c 1>&5
configure:3635: checking if gcc-3.0.4 supports -fno-rtti -fno-exceptions
configure:3648: gcc-3.0.4 -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5
configure:3675: checking whether the linker (/usr/bin/ld) supports shared libraries
configure:4359: checking how to hardcode library paths into programs
configure:4387: checking whether stripping libraries is possible
configure:4401: checking dynamic linker characteristics
configure:4798: checking if libtool supports shared libraries
configure:4802: checking whether to build shared libraries
configure:4825: checking whether to build static libraries
configure:5361: checking whether -lc should be explicitly linked in
configure:5368: gcc-3.0.4 -c -g -O2 conftest.c 1>&5
configure:5381: gcc-3.0.4 -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2>&1 | grep -lc >/dev/null 2>&1
configure:5972: checking for supported libc version
configure:5995: g++-3.0.4 -o conftest -g -O2 conftest.C 1>&5
configure:6199: checking for extra includes
configure:6230: checking for extra libs
configure:6264: checking for libz
configure:6290: gcc-3.0.4 -o conftest -g -O2 conftest.c -lz 1>&5
configure:6352: checking for X
configure:6647: checking for IceConnectionNumber in -lICE
configure:6666: gcc-3.0.4 -o conftest -g -O2 -L/usr/X11R6/lib conftest.c -lICE 1>&5
configure:6695: checking for libXext
configure:6718: gcc-3.0.4 -o conftest -g -O2 -L/usr/X11R6/lib conftest.c -lXext -lX11 1>&5
configure:6756: checking for libpng
configure:6786: gcc-3.0.4 -o conftest -g -O2 -I/usr/X11R6/include conftest.c -L/usr/X11R6/lib -lpng -lz -lm -lX11 1>&5
configure:6824: checking for Qt
configure:7228: checking for Qt MOC
configure:7362: tried to call /usr/local/lib/qt-2.3.2/bin/moc --help 2>&1 | sed -e '1q' | grep Qt
configure:7363: moc output: Qt meta object compiler
configure:7411: checking if Qt compiles without flags
configure:7464: g++-3.0.4 -o conftest -g -O2 -I/usr/local/lib/qt-2.3.2/include -L/usr/X11R6/lib conftest.C -lqt-mt -lXext -lX11 1>&5/usr/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status
configure: failed program was:
#define QT_THREAD_SUPPORT 1
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qapp.h>
#include <qobjcoll.h>
#include <qstringlist.h>
#include <qstyle.h>
#include <qthread.h>
#if ! (QT_VERSION > 231)
#error 1
#endif

int main() {
QStringList *t = new QStringList();
QMutex mutex;
return 0;
}
configure:7573: checking for pthread_create in -lpthread
configure:7595: g++-3.0.4 -o conftest -g -O2 conftest.C -lpthread 1>&5
configure:7629: checking for pcap_open_live in -lpcap
configure:7651: g++-3.0.4 -o conftest -g -O2 conftest.C -lpcap 1>&5
configure:7681: checking for gdImageCreate in -lgd
configure:7703: g++-3.0.4 -o conftest -g -O2 conftest.C -lgd -lpcap 1>&5
/usr/bin/ld: cannot find -lgd
collect2: ld returned 1 exit status
configure: failed program was:
#line 7689 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gdImageCreate();

int main() {
gdImageCreate()
; return 0; }
configure:7735: checking for gdImagePng in -lgd
configure:7757: g++-3.0.4 -o conftest -g -O2 conftest.C -lgd -lpcap 1>&5
/usr/bin/ld: cannot find -lgd
collect2: ld returned 1 exit status
configure: failed program was:
#line 7743 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gdImagePng();

int main() {
gdImagePng()
; return 0; }
configure:7782: checking for inflate in -lz
configure:7804: g++-3.0.4 -o conftest -g -O2 conftest.C -lz -lpcap 1>&5
configure:7833: checking for gdbm_open in -lgdbm
configure:7855: g++-3.0.4 -o conftest -g -O2 conftest.C -lgdbm -lz -lpcap 1>&5
configure:7885: checking how to run the C++ preprocessor
configure:7903: g++-3.0.4 -E conftest.C >/dev/null 2>conftest.out
configure:7928: checking for ANSI C header files
configure:7941: g++-3.0.4 -E conftest.C >/dev/null 2>conftest.out
configure:8011: g++-3.0.4 -o conftest -g -O2 conftest.C -lgdbm -lz -lpcap 1>&5
configure:8038: checking for deque
configure:8048: g++-3.0.4 -E conftest.C >/dev/null 2>conftest.out
configure:8077: checking for size_t
configure:8111: checking whether to build with decryption
configure:8175: checking for InitializeLibEQ in -lEQ
configure:8197: g++-3.0.4 -o conftest -g -O2 conftest.C -lEQ -lz -lpthread -lgdbm -lz -lpcap 1>&5
/usr/bin/ld: cannot find -lEQ
collect2: ld returned 1 exit status
configure: failed program was:
#line 8183 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char InitializeLibEQ();

int main() {
InitializeLibEQ()
; return 0; }

Cryonic
06-10-2002, 12:32 PM
libEQ.a.1???????

S_B_R
06-10-2002, 12:53 PM
Originally posted by Cryonic
libEQ.a.1??????? We have a Winner!

http://seq.sourceforge.net/images/info.jpg

snoopman41
06-10-2002, 01:23 PM
arf, i tougth the .a.1 was not a problem as it was named like this when i downloaded the lib, i suppose it's a mozilla's joke !

thanks for help.

Dedpoet
06-10-2002, 01:51 PM
Damn it! Now I can't read these forums at work anymore. Every time I see that pic I lose it...almost shot Coke out my nose this time too. :eek: