On Sun, May 15, 2005 at 04:25:28PM -0400, ljacobs said:
> On a 64bit server, running CentOS 4, when running make, without configuring 
> as -build=x86_64, I get:
> "/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 
> against `a local symbol' can not be used when making a shared object; 
> recompile with -fPIC
> /usr/local/lib/libz.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status"
> 
> When I run make after "configure --build=x86_64", I get:
> "/home/lj/downloads/clamav-0.85/clamd/thrmgr.c:248: undefined reference to 
> `pthread_create'
> server-th.o(.text+0x2c): In function `scanner_thread':
> /home/lj/downloads/clamav-0.85/clamd/server-th.c:75: undefined reference to 
> `pthread_sigmask'
> collect2: ld returned 1 exit status
> make[2]: *** [clamd] Error 1"
> 
> So then I run "/configure --build=x86_64 --enable-pthreads=no" and make 
> results in no obvious errors but "clamd" never gets made.
> 
> Has anyone else dealt with this problem? And has anyone made a yum version 
> availble for CentOS 4?
> 
> Thanks.

It sounds like you are trying to build for 64 bit but link against 32
bit libraries.  That won't work, clearly.  FWIW, it builds just fine in
a pure 64 environment.
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | Lackland's Laws:  (1) Never be first.   |
|  [EMAIL PROTECTED]             | (2) Never be last.  (3) Never volunteer |
|  http://www.lobefin.net/~steve | for anything                            |
 --------------------------------------------------------------------------

Attachment: pgpL7l57rljYt.pgp
Description: PGP signature

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to