Amanda-Users

Re: build 2.6.1 Solaris x86 problem

2009-02-10 08:07:14
Subject: Re: build 2.6.1 Solaris x86 problem
From: Nick Smith <Nick.Smith AT techopfinance DOT com>
To: Brian Cuttler <brian AT wadsworth DOT org>, amanda-users AT amanda DOT org
Date: Tue, 10 Feb 2009 13:54:00 +0100
Hi Brian,

I use the following to build on Solaris 10. If the Solaris 10 version of pkg-config is new enough for configure then you shouldn't need to set the PKG_CONFIG and PKG_CONFIG_PATH variables.

Regards,

Nick

./configure \
CC=cc \
CXX=CC \
CFLAGS="-xO3 -g -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \
CPPFLAGS="-I/usr/include -I/usr/sfw/include" \
LDFLAGS="-xO3 -g -L/usr/sfw/lib -R/usr/sfw/lib -R/usr/local/lib/amanda" \
LIBS="-lglib-2.0 -lgthread-2.0 -lgobject-2.0 -lcrypto" \
PKG_CONFIG=/usr/local/bin/pkg-config \
PKG_CONFIG_PATH=/usr/lib/pkgconfig \
<amanda options...>

Brian Cuttler wrote:
Sorry to bother you all again, 2.6.1 on Solaris 10 Sparc tested
out good but the build on Solaris 10 x86 is hitting a road block.

I believe I have a sufficient version of GLIB, I know it tests
for 2.2.0 but I believe I have 2.4.1 (which is greater for most
tests, see note below).

# pkg-config --modversion glib-2.0
2.4.1

checking for main in -lresolv... yes
checking for main in -lnsl... yes
checking for main in -lsocket... yes
checking for main in -lsun... no
checking for pkg-config... /usr/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

I found a note last week that indicated a problem with gnu version
numbering, 2.4.1 and 2.2.0 but I don't know (Note between Jon LaBadie
and Dustin Mitchell.

http://www.mail-archive.com/amanda-users AT amanda DOT org/msg40816.html

On Mon, Aug 18, 2008 at 01:57:48PM -0400, Dustin J. Mitchell wrote:
On Mon, Aug 18, 2008 at 12:19 PM, Jon LaBadie <[EMAIL PROTECTED]> wrote:
I've see some gnome software that has funny numbering.
Like 2.1 > 2.11 > 2.12 > 2.2 > 2.21
So it could look like 2.11 and 2.12 etc are newer than 2.2.
I don't know if your glib 2.16 is newer than 2.2 or not.

Tried to leave the SUNWspro out of the loop but its there if we
need it and its better.

Current paths are, probably overkill

PATH=/opt/sfw/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/local/bin:/usr/bin:/usr/sbin

LD_LIBRARY_PATH=/usr/include:/usr/lib/glib-2.0:/usr/lib/amd64:/usr/local/lib:/usr/lib:/usr/ucblib:/usr/ucblib:/opt/sfw/lib:/usr/sfw/lib:/usr/lib:/usr/ccs/lib:/usr/5lib:/opt/csw/lib

                                                thank you,

                                                Brian

---
   Brian R Cuttler                 brian.cuttler AT wadsworth DOT org
   Computer Systems Support        (v) 518 486-1697
   Wadsworth Center                (f) 518 473-6384
   NYS Department of Health        Help Desk 518 473-0773

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