GLIB too old - Linux ?

2009-05-20 Thread Deb Baddorf

I've found some reports of GLIB too old errors on initial amanda compilation,
on Solaris boxes,   but I'm having the problem on a Linux box.

Any ideas?   I can send the config.log but it's 32000 lines long or so.
Deb Baddorf
Fermi National Accelerator Lab


Re: GLIB too old - Linux ?

2009-05-20 Thread Dustin J. Mitchell
On Wed, May 20, 2009 at 4:53 PM, Deb Baddorf badd...@fnal.gov wrote:
 I've found some reports of GLIB too old errors on initial amanda
 compilation,
 on Solaris boxes,   but I'm having the problem on a Linux box.

What distro?  What version of glib is installed?  Note that glib != glibc.

Dustin

-- 
Open Source Storage Engineer
http://www.zmanda.com


Re: GLIB too old - Linux ?

2009-05-20 Thread Doyle Collings
We are using SLES 10 SP2.  We have to download the latest GLIB from glib.org to 
get amanda to compile.

 Deb Baddorf badd...@fnal.gov 5/20/2009 2:53 PM 
I've found some reports of GLIB too old errors on initial amanda compilation,
on Solaris boxes,   but I'm having the problem on a Linux box.

Any ideas?   I can send the config.log but it's 32000 lines long or so.
Deb Baddorf
Fermi National Accelerator Lab


Re: GLIB too old - Linux ?

2009-05-20 Thread Dustin J. Mitchell
On Wed, May 20, 2009 at 6:39 PM, Doyle Collings dcolli...@loganutah.org wrote:
 We are using SLES 10 SP2.  We have to download the latest GLIB from glib.org
 to get amanda to compile.

Any glib later than 2.2.0 should be fine.  We test every commit
against glib-2.2.3, and have caught and worked around a few errors due
to bugs in older versions of glib.

Dustin

-- 
Open Source Storage Engineer
http://www.zmanda.com


Re: GLIB too old - Linux ?

2009-05-20 Thread Dustin J. Mitchell
On Wed, May 20, 2009 at 6:55 PM, Deb Baddorf badd...@fnal.gov wrote:
 # yum info glib2
 Loading kernel-module plugin
 Installed Packages
 Name   : glib2
 Arch   : i386
 Version: 2.12.3
 Release: 4.el5_3.1

This should be fine.  If you look at the end of config.log, there are
three sections of variable dumps at the end; *before* those, you will
see the log data.  Please examine, and if necessary copy and paste the
last bit of log data into an email.

Dustin

-- 
Open Source Storage Engineer
http://www.zmanda.com


Re: GLIB too old - Linux ?

2009-05-20 Thread Deb Baddorf

At 7:03 PM -0400 5/20/09, Dustin J. Mitchell wrote:

On Wed, May 20, 2009 at 6:55 PM, Deb Baddorf badd...@fnal.gov wrote:

 # yum info glib2
 Loading kernel-module plugin
 Installed Packages
 Name   : glib2
 Arch   : i386
 Version: 2.12.3
 Release: 4.el5_3.1


This should be fine.  If you look at the end of config.log, there are
three sections of variable dumps at the end; *before* those, you will
see the log data.  Please examine, and if necessary copy and paste the
last bit of log data into an email.

Dustin

--
Open Source Storage Engineer
http://www.zmanda.com




Holler if I've removed too much data:

| /* end confdefs.h.  */
|
|
| int
| main ()
| {
| return main ();
|   ;
|   return 0;
| }
configure:56189: result: no
configure:56208: checking for pkg-config
configure:56227: found /usr/bin/pkg-config
configure:56239: result: /usr/bin/pkg-config
configure:56395: checking pkg-config is at least version 0.7
configure:56398: result: yes
configure:56416: checking for GLIB - version = 2.2.0
configure:56579: result: no
configure:56617: gcc -o conftest -g -O2 -fno-strict-aliasing 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -fno-strict-aliasing 
-D_GNU_SOURCE   conftest.c -lnsl -lresolv5

conftest.c:253:18: error: glib.h: No such file or directory
conftest.c: In function 'main':
conftest.c:259: error: 'glib_major_version' undeclared (first use in 
this function)

conftest.c:259: error: (Each undeclared identifier is reported only once
conftest.c:259: error: for each function it appears in.)
conftest.c:259: error: 'glib_minor_version' undeclared (first use in 
this function)
conftest.c:259: error: 'glib_micro_version' undeclared (first use in 
this function)

configure:56624: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME 
| #define PACKAGE_TARNAME 
| #define PACKAGE_VERSION 
| #define PACKAGE_STRING 
| #define PACKAGE_BUGREPORT 
| #define PACKAGE amanda
| #define VERSION 2.6.1p1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_FLOAT_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_UNISTD_H 1
| #define restrict __restrict
| #define HAVE_INCLUDE_NEXT 1
| #define HAVE_IPV4 1
| #define HAVE_IPV6 1
| #define HAVE_GETOPT_H 1
| #define HAVE_GETOPT_LONG_ONLY 1
| #define HAVE_DECL_GETENV 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_LSTAT 1
| #define USE_POSIX_THREADS 1
| #define USE_POSIX_THREADS_WEAK 1
| #define HAVE_PTHREAD_RWLOCK 1
| #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
| #define HAVE_DECL_SNPRINTF 1
| #define HAVE__BOOL 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_LONG_LONG_INT 1
| #define HAVE_UNSIGNED_LONG_LONG_INT 1
| #define HAVE_DECL_STRDUP 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_WCHAR_T 1
| #define HAVE_WINT_T 1
| #define HAVE_INTTYPES_H_WITH_UINTMAX 1
| #define HAVE_STDINT_H_WITH_UINTMAX 1
| #define HAVE_INTMAX_T 1
| #define HAVE_ALLOCA 1
| #define HAVE_SYS_MOUNT_H 1
| #define STAT_STATFS2_BSIZE 1
| #define HAVE_SYS_STATFS_H 1
| #define HAVE_GETHOSTBYNAME 1
| #define HAVE_DECL_GETADDRINFO 1
| #define HAVE_DECL_FREEADDRINFO 1
| #define HAVE_DECL_GAI_STRERROR 1
| #define HAVE_DECL_GETNAMEINFO 1
| #define HAVE_STRUCT_ADDRINFO 1
| #define HAVE_INET_NTOP 1
| #define HAVE_DECL_INET_NTOP 1
| #define HAVE_MALLOC_POSIX 1
| #define HAVE_MKDTEMP 1
| #define HAVE_SYS_SYSINFO_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SYSCTL_H 1
| #define HAVE_SYSCTL 1
| #define HAVE_STDINT_H 1
| #define HAVE_SNPRINTF 1
| #define HAVE_STRDUP 1
| #define HAVE_DECL_MKDIR 1
| #define HAVE_SNPRINTF 1
| #define HAVE_WCSLEN 1
| #define HAVE_DECL__SNPRINTF 0
| #define HAVE_VISIBILITY 1
| #define HAVE_STDINT_H 1
| #define CLIENT_LOGIN operator
| #define CONFIG_DIR /usr/local/etc/amanda
| #define GNUTAR_LISTED_INCREMENTAL_DIR /usr/local/var/amanda/gnutar-lists
| #define AMANDA_TMPDIR /tmp/amanda
| #define CHECK_USERID 1
| #define BINARY_OWNER operator
| #define USE_REUSEADDR 1
| #define AMANDA_DBGDIR /tmp/amanda
| #define AMANDA_DEBUG_DAYS 4
| #define SERVICE_SUFFIX 
| #define AMANDA_SERVICE_NAME amanda
| #define KAMANDA_SERVICE_NAME kamanda
| #define WANT_SETUID_CLIENT 1
| #define DEFAULT_SERVER bdback
| #define DEFAULT_CONFIG daily
| #define DEFAULT_TAPE_SERVER bdback
| #define DEFAULT_TAPE_DEVICE /dev/nsa0
| #define DEFAULT_CHANGER_DEVICE /dev/null
| 

Re: GLIB too old - Linux ?

2009-05-20 Thread Dustin J. Mitchell
On Wed, May 20, 2009 at 7:38 PM, Deb Baddorf badd...@fnal.gov wrote:
 conftest.c:253:18: error: glib.h: No such file or directory

This suggests you may not have the glib development package (that
includes the headers) installed.  Ah, the joys of binary-only distros
:)

Dustin

-- 
Open Source Storage Engineer
http://www.zmanda.com


Re: GLIB too old - Linux ?

2009-05-20 Thread Deb Baddorf

At 7:46 PM -0400 5/20/09, Dustin J. Mitchell wrote:

On Wed, May 20, 2009 at 7:38 PM, Deb Baddorf badd...@fnal.gov wrote:

 conftest.c:253:18: error: glib.h: No such file or directory


This suggests you may not have the glib development package (that
includes the headers) installed.  Ah, the joys of binary-only distros
:)

Dustin

--
Open Source Storage Engineer
http://www.zmanda.com





Hmmm, yes.  FIND   over the whole disk only finds  glib.so   type files.
Thanks!
Deb


Re: GLIB too old - Linux ?

2009-05-20 Thread Deb Baddorf

At 6:07 PM -0400 5/20/09, Dustin J. Mitchell wrote:

On Wed, May 20, 2009 at 4:53 PM, Deb Baddorf badd...@fnal.gov wrote:

 I've found some reports of GLIB too old errors on initial amanda
 compilation,
 on Solaris boxes,   but I'm having the problem on a Linux box.


What distro?  What version of glib is installed?  Note that glib != glibc.

Dustin

--
Open Source Storage Engineer
http://www.zmanda.com


amanda-2.6.1p1

# uname -a
Linux beams-docdb1.fnal.gov 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 
07:03:59 EDT 2009 i686 i686 i386 GNU/Linux

# cat /etc/redhat-release
Scientific Linux SLF release 5.2 (Lederman)

# yum info glib2
Loading kernel-module plugin
Installed Packages
Name   : glib2
Arch   : i386
Version: 2.12.3
Release: 4.el5_3.1

]# yum install glibc
Loading kernel-module plugin
Setting up Install Process
Parsing package install arguments
Package glibc - 2.5-24.i686 is already installed.
Nothing to do


# yum info glib
Loading kernel-module plugin
Installed Packages
Name   : glib
Arch   : i386
Epoch  : 1
Version: 1.2.10

# yum info gcc
Loading kernel-module plugin
Installed Packages
Name   : gcc
Arch   : i386
Version: 4.1.2
Release: 42.el5