PDA

View Full Version : Someone change libEQ search



Yendor
01-03-2002, 01:38 PM
I'd do this, but am lazy (and working on something else).

In configure.in need to change the libEQ search from
AC_CHECK_LIB(EQ, ProcessPacket,
to
AC_CHECK_LIB(EQ, InitializeLibEQ,

Plus some extra text when it fails to suggest the problem.
That should prevent it from trying to build against old libEQ.a versions.

I don't have time to test it out and post a patch at the moment. But maybe this is enough to get someone else to do it :).

:p :p :p

Maybe I will do it later if no one else submits a patch.

Zaphod
01-03-2002, 11:13 PM
Good idea Yendor. Any volunteers??? (I'm also kinda preoccupied with other stuff).

Enjoy,
Zaphod (dohpaZ)

casey
01-04-2002, 08:38 AM
i have changed it, and made the error mesage a little more helpful in the event they have the wrong lib installed.

Hoihoi
01-04-2002, 11:18 AM
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

# md5sum /usr/lib/libEQ.a
4e9d9772132fc63ea8860cc2fdb2905d /usr/lib/libEQ.a
# md5sum /usr/local/lib/libEQ.a
4e9d9772132fc63ea8860cc2fdb2905d /usr/local/lib/libEQ.a

already a new libeq again or did this patch nothing good at all?

Hoihoi
01-04-2002, 11:23 AM
sigh, double post (

KennySP
01-04-2002, 11:25 AM
Is libEQ.a a+x ?

$ chmod a+x /usr/lib/libEQ.a
$ chmod a+x /usr/local/lib/libEQ.a

casey
01-04-2002, 11:50 AM
post the last 20 lines or so from config.log, that'll help determine what he problem may be.

are CC and CXX set so you are using g++ 3 ?

i tested the confgure script to still work, and just re-did so. having the lines from your log will help.

Hoihoi
01-04-2002, 11:59 AM
no it wasn't but that shouldn't have mattered because i've been successful compiling till todays update. anyway, changed it to 0777 just in case and it didn't work either

casey
01-04-2002, 12:04 PM
can you post the last 20-30 lines of config.log?

Hoihoi
01-04-2002, 03:58 PM
# tail -30 config.log
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

configure:7877: checking for deque.h
configure:7887: g++3 -E conftest.C >/dev/null 2>conftest.out
configure:7916: checking for size_t
configure:7950: checking whether to build with decryption
configure:8014: checking for InitializeLibEQ in -lEQ
configure:8036: g++3 -o conftest -g -O2 conftest.C -lEQ -lz -lpthread -lgdbm -lz -lpcap 1>&5
/tmp/ccWjoqgD.o: In function `main':
/usr/local/src/showeq4/showeq/configure:8032: undefined reference to `InitializeLibEQ'
collect2: ld returned 1 exit status
configure: failed program was:
#line 8022 "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; }

casey
01-04-2002, 05:24 PM
hoihoi, i had some other people in irc test configure, and its working for them

is it possible that your lib search path is encountering an old libEQ before a current one?

find / -name libEQ.a -print

i suggest running that, and then deleting all the libEQ.a's you find, and maintaining a single copy in /usr/lib