Amanda-Users

Re: sizeof error for 2.6.0p1 compile

2008-07-24 10:55:16
Subject: Re: sizeof error for 2.6.0p1 compile
From: Greg Troxel <gdt AT ir.bbn DOT com>
To: "Dustin J. Mitchell" <dustin AT zmanda DOT com>
Date: Thu, 24 Jul 2008 10:12:12 -0400
"Dustin J. Mitchell" <dustin AT zmanda DOT com> writes:

> On Wed, Jul 23, 2008 at 3:52 PM, McGraw, Robert P <rmcgraw AT purdue DOT edu> 
> wrote:
>> I tried to compile amanda-2.6.0p1 on a Sparc Solaris 9 & 10 host and get the
>> following error:
>
> The actual error in config.log (sent privately) is
>
> configure:49348: /pkgs/gcc-3.4.3/bin/gcc -o conftest -g -O2
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -D_REENTRANT
> -I/opt/csw/include -D_GNU_SOURCE -I/opt/csw/include  -L/opt/csw/lib
> conftest.c -lcrypto -L/opt/csw/lib -lcurl -L/opt/csw/lib
> -L/opt/csw/lib -lidn -lssl -lcrypto -llber -lldap -lsocket -lnsl -lz
> -lnsl -lsocket  >&5
> configure:49351: $? = 0
> configure:49357: ./conftest
> ld.so.1: conftest: fatal: libcurl.so.4: open failed: No such file or directory
>
> I'm guessing this is related to Solaris' habit of requiring both a
> runtime and compile-time library search path be specified.  You can
> probably fix this with
>  ./configure LDFLAGS='-R/opt/csw/lib' ...

FYI this is not just Solaris but also *BSD.  If one uses pkgsrc then the
pkgconfig files for dependencies have the correct -R flags.



<Prev in Thread] Current Thread [Next in Thread>