Amanda-Users

RE: Checking for GLIB error

2008-07-24 16:42:21
Subject: RE: Checking for GLIB error
From: "McGraw, Robert P" <rmcgraw AT purdue DOT edu>
To: <amanda-users AT amanda DOT org>
Date: Thu, 24 Jul 2008 16:21:19 -0400

FYI,

I was finally able to get the Amanda.2.6.0p1 to compile.

I use software from blasewave where possible which is located in /opt/csw/.

It seem that /opt/csw/bin/pkg-config was try to pick up the .pc files from
/usr/lib/pkgconfig rather than /opt/csw/lib/pkgconfig. It also seemed that
glib.pc is not in the /usr/lib/pkgconfig but in the /opt/csw/lib/pkgconfig.

The trick was to add 

PKG_CONFIG=/opt/csw/bin/pkg-config 
PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig

To the configure command such as 

/configure \
PKG_CONFIG=/opt/csw/bin/pkg-config \
PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig \
CC=$GCC \
LDFLAGS='-R/opt/csw/lib' \
: \
: \

This seemed to do the trick.



Robert

> -----Original Message-----
> From: owner-amanda-users AT amanda DOT org [mailto:owner-amanda-users AT 
> amanda DOT org]
> On Behalf Of McGraw, Robert P
> Sent: Thursday, July 24, 2008 11:23 AM
> To: amanda-users AT amanda DOT org
> Subject: Checking for GLIB error
> 
> Solaris 10 SPARC Amanda 2.6.0p1
> 
> My configure looks like
> 
> ./configure \
> PKG_CONFIG=/opt/csw/bin/pkg-config \
> CC=/pkgs/$GCCVERSION/bin/gcc \
> LDFLAGS='-R/opt/csw/lib' \
> PERL=/opt/csw/bin/perl \
> --prefix=/local/Amanda/$AMANDAVERSION \
> --without-client \
> --with-user=amanda \
> --with-group=operator \
> --with-gnutar=/opt/csw/bin/gtar \
> --with-gnutar-listdir=/var/amanda/gnutar-lists \
> --with-includes=/opt/csw/include \
> --with-libraries=/opt/csw/lib \
> --with-index-server=zorn \
> --with-smbclient=/pkgs/samba/bin/smbclient \
> --with-tape-device=/dev/rmt/1bn \
> --with-changer-device=/dev/changer/1 \
> --with-maxtapeblocksize=2048
> 
> Running configure I get the following error:
> 
>       checking for main in -lsun... no
>       checking for pkg-config... /opt/csw/bin/pkg-config
>       checking pkg-config is at least version 0.7... yes
>       checking for GLIB - version >= 2.2.0... no
>       *** Could not run GLIB test program, checking why...
>       *** The test program failed to compile or link. See the file
> config.log    for the
>       *** exact error that occured. This usually means GLIB is incorrectly
> installed.
>       configure: error: glib not found or too old; See
> http://wiki.zmanda.com/index.php/Installation for help
> 
> The following is a snippet of the config.log
> 
> configure:53899: checking pkg-config is at least version 0.7
> configure:53902: result: yes
> configure:53920: checking for GLIB - version >= 2.2.0
> configure:54044: /pkgs/gcc-3.4.3/bin/gcc -o conftest -g -O2
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
> 64 -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -D_REENTRANT
> -I/opt/csw/include -D_GNU
> _SOURCE -I/opt/csw/include -R/opt/csw/lib -L/opt/csw/lib  conftest.c -mt
> -lgmodule-2.0 -lgobject-2.0
>  -lgthread-2.0 -lglib-2.0   -lsocket -lnsl -lresolv -lintl -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
> cc1: error: invalid option `t'
> cc1: error: invalid option `t'
> configure:54047: $? = 1
> configure: program exited with status 1
> configure: failed program was:
> 
> 
> I assume that this is not working because of the compile error. I assume
> that the invalid option is the -mt.
> 
> I am not sure what is causing this option in be inserted. Any suggestions.
> 
> Thanks
> 
> Robert
> 
> 
> 
> 
> --------------------------------------------------------------------
> Robert P. McGraw, Jr.
> Manager, Computer System                 EMAIL: rmcgraw AT purdue DOT edu
> Purdue University                         ROOM: MATH-807
> Department of Mathematics                PHONE: (765) 494-6055
> 150 N. University Street
> West Lafayette, IN 47907-2067

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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