Bacula-users

Re: [Bacula-users] ./Configure unable to make BACULA-5.0.1 from src

2010-04-02 06:50:10
Subject: Re: [Bacula-users] ./Configure unable to make BACULA-5.0.1 from src
From: jcd95 <jcdole AT free DOT fr>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 2 Apr 2010 10:47:11 +0000 (UTC)
Martin Simmons <martin <at> lispworks.com> writes:

> 
> >>>>> On Wed, 31 Mar 2010 17:23:43 +0000 (UTC), jcdole  said:
> > 
> > Phil Stracchino <alaric <at> metrocast.net> writes:
> > 
> > > 
> > > On 03/31/10 06:24, jcdole <at> free.fr wrote:
> > > > Hello.
> > > > 
> > > > Following your doc, I am unable to install Bacula 5.0.1 from src.
> > > > 
> > > > I get this error :
> > > > tray-monitor.h:36:21: error: gtk/gtk.h: No such file or directory
> > > 
> > > You need to either install GTK+, tell Bacula where to find it, or
> > > disable building the tray monitor in your configure statement.
> > > 
> > Hello.
> > 
> > GTK is installed.
> > 
> > If you have a moment and look at my previous post (29 Mar 16:24     jcdole) 
> > or
> > directly to :
> > 
> > http://article.gmane.org/gmane.comp.bacula.user/59120
> > 
> > You will see all information details.
> > 
> > If you can help me it would be great.
> 
> What is the value of MONITOR_CPPFLAGS in src/tray-monitor/Makefile?
> 
> The configure script computes this using pkgconfig.  You can look at the lines
> in configure where it does
> 
> TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
> 
> etc and see what they are doing.
> 
> __Martin
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> 

Hello.


Modifying CFLAGS="-g -O2 -Wall -I /usr/include/gtk-2.0 "
Does not help.

Searching for TRAY_MONITOR and CPPFLAGS :

=========================
In .../bacula/configure :
=========================

TRAY_MONITOR_DIR=
if test x$support_tray_monitor = xyes; then
   abc=`$PKGCONFIG --exists gtk+-2.0`
   pkg=$?
   if test $pkg = 0; then
      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`


      TRAY_MONITOR_DIR=src/tray-monitor
      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
      pkg=$?
      if test $pkg = 0; then

$as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h

      fi
   fi
fi


=============================
IN .../bacula/config.status :
=============================

S["TRAY_MONITOR_DIR"]="src/tray-monitor"
S["TRAY_MONITOR_LDFLAGS"]=""
S["TRAY_MONITOR_CPPFLAGS"]=""
............
............
............
S["CPPFLAGS"]=" -fno-strict-aliasing -fno-exceptions -fno-rtti"
S["LDFLAGS"]=""
S["CFLAGS"]="-g -O2 -Wall -I /usr/include/gtk-2.0  -fno-strict-aliasing
-fno-exceptions -fno-rtti"


==========================
In .../bacula/config.log :
==========================

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2 -Wall -I /usr/include/gtk-2.0 '
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=

## ----------------- ##
## Output variables. ##
## ----------------- ##

CFLAGS='-g -O2 -Wall -I /usr/include/gtk-2.0  -fno-strict-aliasing
-fno-exceptions -fno-rtti'
CPPFLAGS=' -fno-strict-aliasing -fno-exceptions -fno-rtti'

TRAY_MONITOR_CPPFLAGS=''
TRAY_MONITOR_DIR='src/tray-monitor'
TRAY_MONITOR_LDFLAGS=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_GTK_2_4 1


==========================
In .../bacula/config.out :
==========================

   Compiler flags:           -g -O2 -Wall -I /usr/include/gtk-2.0 
-fno-strict-aliasing -fno-exceptions -fno-rtti


============================================
In .../bacula/src/tray-monitor/makefile.in :
============================================

MONITOR_CPPFLAGS=@TRAY_MONITOR_CPPFLAGS@
MONITOR_LDFLAGS=@TRAY_MONITOR_LDFLAGS@ @X_LIBS@ -lX11


============================================
In .../bacula/src/tray-monitor/makefile.in :
============================================

MONITOR_CPPFLAGS=
MONITOR_LDFLAGS=  -lX11


=====================================
In .../bacula/autoconf/configure.in :
=====================================

TRAY_MONITOR_DIR=
if test x$support_tray_monitor = xyes; then
   abc=`$PKGCONFIG --exists gtk+-2.0`
   pkg=$?
   if test $pkg = 0; then
      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
      AC_SUBST(TRAY_MONITOR_CPPFLAGS)
      AC_SUBST(TRAY_MONITOR_LDFLAGS)
      TRAY_MONITOR_DIR=src/tray-monitor
      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
      pkg=$?
      if test $pkg = 0; then
         AC_DEFINE(HAVE_GTK_2_4, 1, [Set if you have GTK 4.2 or greater loaded])
      fi
   fi
fi
AC_SUBST(TRAY_MONITOR_DIR)


JCD




------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users