Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

compiling on AIX 5.2 and location of libgmp.

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


hospodarsky at gmail

Apr 16, 2008, 2:48 PM

Post #1 of 11 (1515 views)
Permalink
compiling on AIX 5.2 and location of libgmp.

I've been trying to compile clamav (0.93) on AIX 5.2, and I keep getting the

checking for libgmp... no
configure: WARNING: ****** GNU MP 2 or newer NOT FOUND - digital
signature support will be disabled !

conflig.log shows the following:

configure:15256: checking for libgmp
configure:15286: cc -qlanglvl=extc89 -o conftest -g
-I/usr/local/include conftest.c -lgmp >&5
ld: 0706-006 Cannot find or open library file: -l gmp
ld:open(): No such file or directory
configure:15292: $? = 255

I have compiled and installed GMP, and the libraries are in fact
located in /usr/local/include:

gmp.h
libgmp.a
libgmp.la

Is it possible one is missing? or is there some other thing I need to
do to make the clamav configure see that it is, in fact installed, IN
the location where it's looking.

At the end of the GMP install, it did say:

Libraries have been installed in:
/usr/local/include

So I'm not sure where the disconnect is happening between the two
programs; if anyone has any ideas, I'd be very glad to hear them!

Naomi Hospodarsky

Naomi Hospodarsky
Systems Administrator
University of Iowa
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


kwijibo at zianet

Apr 16, 2008, 2:53 PM

Post #2 of 11 (1447 views)
Permalink
Re: compiling on AIX 5.2 and location of libgmp. [In reply to]

Naomi Hospodarsky wrote:
> So I'm not sure where the disconnect is happening between the two
> programs; if anyone has any ideas, I'd be very glad to hear them!

I am not up to speed on AIX so I may have some wrong presumptions
but shouldn't your header files by in /usr/local/include and your
libraries be in /usr/local/lib? It looks like ClamAV can't find
the libraries. What happens if you put the libraries in /usr/local/lib?
Or modify your library path.

Steven
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


hospodarsky at gmail

Apr 16, 2008, 3:07 PM

Post #3 of 11 (1447 views)
Permalink
Re: compiling on AIX 5.2 and location of libgmp. [In reply to]

In the output of the config.log I posted, you'll see that clamav is
looking for the libs in /usr/local/include (where GMP installed its
files), but for some reason doesn't see them. So it's not that clamav
is looking in the wrong location, exactly, but that it is, for some
reason, not seeing what's there.



On Wed, Apr 16, 2008 at 4:53 PM, <kwijibo [at] zianet> wrote:
> Naomi Hospodarsky wrote:
> > So I'm not sure where the disconnect is happening between the two
> > programs; if anyone has any ideas, I'd be very glad to hear them!
>
> I am not up to speed on AIX so I may have some wrong presumptions
> but shouldn't your header files by in /usr/local/include and your
> libraries be in /usr/local/lib? It looks like ClamAV can't find
> the libraries. What happens if you put the libraries in /usr/local/lib?
> Or modify your library path.
>
> Steven
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://lurker.clamav.net/list/clamav-users.html
>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


dennispe at inetnw

Apr 16, 2008, 3:12 PM

Post #4 of 11 (1446 views)
Permalink
Re: compiling on AIX 5.2 and location of libgmp. [In reply to]

Naomi Hospodarsky wrote:
> In the output of the config.log I posted, you'll see that clamav is
> looking for the libs in /usr/local/include (where GMP installed its
> files), but for some reason doesn't see them. So it's not that clamav
> is looking in the wrong location, exactly, but that it is, for some
> reason, not seeing what's there.
>

No - it's looking only for the header files in the include directory (.h
files). The linker will look in the library path or the system default
library search path and that certainly will not include your path.

So to hasten this along, try putting the gmp.h file in
/usr/local/include and the .a files in /usr/local/lib and try again. It
can't hurt.

dp
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


hospodarsky at gmail

Apr 16, 2008, 3:19 PM

Post #5 of 11 (1444 views)
Permalink
Re: compiling on AIX 5.2 and location of libgmp. [In reply to]

Okay, that makes sense. I tried copying the lib files over to
/usr/local/lib as you suggested, and am now getting this error in
config.log

configure:15256: checking for libgmp
configure:15286: cc -qlanglvl=extc89 -o conftest -g
-I/usr/local/include conftest.c /usr/local/lib/libgmp.a >&5
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
configure:15292: $? = 8

d'you happen to know if I need to do something to tell AIX that I
moved the lib files?
I'm fairly new-ish to compiling software on AIX.

On Wed, Apr 16, 2008 at 5:12 PM, Dennis Peterson <dennispe [at] inetnw> wrote:
> Naomi Hospodarsky wrote:
> > In the output of the config.log I posted, you'll see that clamav is
> > looking for the libs in /usr/local/include (where GMP installed its
> > files), but for some reason doesn't see them. So it's not that clamav
> > is looking in the wrong location, exactly, but that it is, for some
> > reason, not seeing what's there.
> >
>
> No - it's looking only for the header files in the include directory (.h
> files). The linker will look in the library path or the system default
> library search path and that certainly will not include your path.
>
> So to hasten this along, try putting the gmp.h file in
> /usr/local/include and the .a files in /usr/local/lib and try again. It
> can't hurt.
>
> dp
>
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://lurker.clamav.net/list/clamav-users.html
>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


kwijibo at zianet

Apr 16, 2008, 4:28 PM

Post #6 of 11 (1436 views)
Permalink
Re: compiling on AIX 5.2 and location of libgmp. [In reply to]

Naomi Hospodarsky wrote:
> Okay, that makes sense. I tried copying the lib files over to
> /usr/local/lib as you suggested, and am now getting this error in
> config.log
>
> configure:15256: checking for libgmp
> configure:15286: cc -qlanglvl=extc89 -o conftest -g
> -I/usr/local/include conftest.c /usr/local/lib/libgmp.a >&5
> ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> configure:15292: $? = 8
>
What version of gmp are you using? It looks like your gmp is missing
some functions
that ClamAV wants.

Steven


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


dennispe at inetnw

Apr 16, 2008, 4:49 PM

Post #7 of 11 (1443 views)
Permalink
Re: compiling on AIX 5.2 and location of libgmp. [In reply to]

Naomi Hospodarsky wrote:
> Okay, that makes sense. I tried copying the lib files over to
> /usr/local/lib as you suggested, and am now getting this error in
> config.log
>
> configure:15256: checking for libgmp
> configure:15286: cc -qlanglvl=extc89 -o conftest -g
> -I/usr/local/include conftest.c /usr/local/lib/libgmp.a >&5
> ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> configure:15292: $? = 8
>
> d'you happen to know if I need to do something to tell AIX that I
> moved the lib files?
> I'm fairly new-ish to compiling software on AIX.
>

It is not happy with that it found. If you have the nm utility try running:

nm /usr/local/lib/libgmp.a |grep __gmpz_init

and see if it finds the __gmpz_init function. It's also possible that it
didn't look in /usr/local/lib in which case you may need to set LDFLAGS
as in this example:

LDFLAGS="-R/usr/local/lib -L/usr/local/lib -L/usr/lib -L/usr/local/ssl"

dp
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


hospodarsky at gmail

Apr 17, 2008, 12:37 PM

Post #8 of 11 (1417 views)
Permalink
Re: compiling on AIX 5.2 and location of libgmp. [In reply to]

This is version 4.2.2 of GMP, and it SEEMS to compile just fine; I can
run make check with no errors.

running
nm /usr/local/lib/libgmp.a |grep __gmpz_init

returns nothing;

and then configuring clamav with either:

LDFLAGS="-R/usr/local/lib -L/usr/local/lib -L/usr/lib -L/usr/local/ssl"

./configure --disable-static -ICONV_LIBS="-L/usr/lib/libiconv.a
-liconv" LIBCLAMAV_LIBS="-L/usr/local/lib -lz -lbz2 -lgmp
-L/usr/lib/libiconv.a -liconv" LIBS="-lnsl"

still result in clamav's configure choking with the

ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

errors. I have to say, I'm totally stumped.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


edwintorok at gmail

Apr 17, 2008, 12:40 PM

Post #9 of 11 (1417 views)
Permalink
Re: compiling on AIX 5.2 and location of libgmp. [In reply to]

Naomi Hospodarsky wrote:
> This is version 4.2.2 of GMP, and it SEEMS to compile just fine; I can
> run make check with no errors.
>
> running
> nm /usr/local/lib/libgmp.a |grep __gmpz_init
>

Try grepping for just mpz_init. Also grep for mpz_init in gmp.h

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


hospodarsky at gmail

Apr 17, 2008, 12:45 PM

Post #10 of 11 (1408 views)
Permalink
Re: compiling on AIX 5.2 and location of libgmp. [In reply to]

hmm. well.

grepping for just mpz_init on libgmp.a also returns nothing.

grepping for mpz_init in gmp.h returns:

gmp.h: 0654-203 Specify an XCOFF object module.



On Thu, Apr 17, 2008 at 2:40 PM, Török Edwin <edwintorok [at] gmail> wrote:
> Naomi Hospodarsky wrote:
> > This is version 4.2.2 of GMP, and it SEEMS to compile just fine; I can
> > run make check with no errors.
> >
> > running
> > nm /usr/local/lib/libgmp.a |grep __gmpz_init
> >
>
> Try grepping for just mpz_init. Also grep for mpz_init in gmp.h
>
> Best regards,
> --Edwin
>
>
> _______________________________________________
> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
> http://lurker.clamav.net/list/clamav-users.html
>
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html


edwintorok at gmail

Apr 17, 2008, 12:59 PM

Post #11 of 11 (1426 views)
Permalink
Re: compiling on AIX 5.2 and location of libgmp. [In reply to]

Naomi Hospodarsky wrote:
> hmm. well.
>
> grepping for just mpz_init on libgmp.a also returns nothing.
>
> grepping for mpz_init in gmp.h returns:
>
> gmp.h: 0654-203 Specify an XCOFF object module.

That string doesn't contain mpz_init, are you sure you used grep on
gmp.h and not nm?

This is weird.
Please open a bugreport, and attach your gmp.h
Also attach your tests/misc.c, and randmts.c, those seem to use mpz_init
here.

Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.