[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Problems configuring cfengine 2.1.17 on Solaris10
From: |
Martin, Jason H |
Subject: |
RE: Problems configuring cfengine 2.1.17 on Solaris10 |
Date: |
Tue, 20 Dec 2005 15:18:30 -0800 |
What is the exact output from the config.log for when the problem
occurs?
-Jason Martin
> -----Original Message-----
> From:
> help-cfengine-bounces+jason.h.martin=cingular.com@gnu.org
> [mailto:help-cfengine-bounces+jason.h.martin=cingular.com@gnu.
> org] On Behalf Of Kurt Reimer
> Sent: Tuesday, December 20, 2005 1:56 PM
> To: help-cfengine@gnu.org; bug-cfengine@gnu.org
> Subject: Problems configuring cfengine 2.1.17 on Solaris10
>
>
>
> Hello,
> Like previous posters I'm running into problems with the
> configure
> script not recognizing the BerkeleyDB version number, and it
> doesn't seem
> to have anything to do with LD_LIBRARY_PATH or LD_RUN_PATH:
>
> *******************
> bash-3.00# export \
> LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.4/:/usr/local/Berkeley
> DB.4.4/lib/
> bash-3.00# export \
> LD_RUN_PATH=/usr/local/BerkeleyDB.4.4/:/usr/local/BerkeleyDB.4.4/lib/
> bash-3.00# export CFLAGS=-I/usr/local/BerkeleyDB.4.4/include
> bash-3.00# ./configure
> --with-berkeleydb=/usr/local/BerkeleyDB.4.4/ \
> --with-openssl=/usr/sfw checking build system type...
> sparc-sun-solaris2.10
> . . . . . . . . . . . . . .
> checking for BerkeleyDB location in /usr/local/BerkeleyDB.4.4/...
> /usr/local/BerkeleyDB.4.4/
> checking Berkeley DB Version... configure: error: This
> release of cfengine
> requires BerkeleyDB 3.2 or later
> bash-3.00#
>
> (I added the backslashes where my email client wrapped the
> cut-and-pasted command lines.)
> *******************
>
> I've gone so far as to comment out all but the
> "exit(0);" return in
> the test program that is being run at this point in the
> configure script, with the same result:
>
>
> *******************
> #include <db.h>
> #include <stdio.h>
> int main(void)
> {
> /*
> printf("%d.%d.%d ",
> DB_VERSION_MAJOR,DB_VERSION_MINOR,DB_VERSION_PATCH);
> if (DB_VERSION_MAJOR < 3 ||
> (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR < 2))
> exit(1);
> */
> exit(0);
> }
> *******************
>
> I can get cfengine to configure, make, and install if I
> edit the
> configure script to dummy out the two places where it runs the test
> program listed above. Note that the configure, make, and make
> install all
> succeed without the help of LD_LIBRARY_PATH, LD_RUN_PATH, or
> any special include directories defined in CFLAGS:
>
> *******************
> bash-3.00# diff configure.works configure
> 8618,8620c8618
> < ##############################
> < # ac_status=$? This test is broken
> < ac_status=0
> ---
> > ac_status=$?
> 8687,8690c8685,8687
> < ################################
> < #cat >>confdefs.h <<\_ACEOF Same program, still broken
> < ##define CF_OLD_DB 1
> < #_ACEOF
> ---
> > cat >>confdefs.h <<\_ACEOF
> > #define CF_OLD_DB 1
> > _ACEOF
> bash-3.00# cp configure.works configure
> bash-3.00# unset LD_LIBRARY_PATH
> bash-3.00# unset LD_RUN_PATH
> bash-3.00# unset CFLAGS
> bash-3.00# ./configure --with-berkeleydb=/usr/local/BerkeleyDB.4.4/
> --with-openssl=/usr/sfw
> checking build system type... sparc-sun-solaris2.10
> . . . . . . . . . . . . . .
> checking for library containing socket... none required
> checking for BerkeleyDB location in /usr/local/BerkeleyDB.4.4/...
> /usr/local/BerkeleyDB.4.4/
> checking Berkeley DB Version... OK
> checking Berkeley DB API... checking for db_create in -ldb...
> yes checking for OpenSSL location... /usr/sfw
> . . . . . . . . . . . . . .
> DONE: Configuration done. Run make/gmake to build cfengine.
>
> bash-3.00# make[1]: Entering directory
> `/usr/local/src/cfengine-2.1.17/pub'
> if gcc -DHAVE_CONFIG_H -I. -I. -I../src
> -I/usr/local/BerkeleyDB.4.4//include -I/usr/sfw/include -D_REENTRANT
> -pthread -D_REENTRANT -pthread -g -O2
> -I/usr/local/BerkeleyDB.4.4//include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -g -O2 -Wreturn-type -Wmissing-prototypes
> -Wuninitialized -D_REENTRANT -pthread -g -O2
> -I/usr/local/BerkeleyDB.4.4//include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -MT getopt.o -MD -MP -MF
> ".deps/getopt.Tpo" -c -o
> getopt.o getopt.c; \
> then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f
> ".deps/getopt.Tpo"; exit 1; fi
> gcc: unrecognized option `-pthread'
> gcc: unrecognized option `-pthread'
> gcc: unrecognized option `-pthread'
> if gcc -DHAVE_CONFIG_H -I. -I. -I../src
> -I/usr/local/BerkeleyDB.4.4//include -I/usr/sfw/include -D_REENTRANT
> -pthread -D_REENTRANT -pthread -g -O2
> -I/usr/local/BerkeleyDB.4.4//include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -g -O2 -Wreturn-type -Wmissing-prototypes
> -Wuninitialized -D_REENTRANT -pthread -g -O2
> -I/usr/local/BerkeleyDB.4.4//include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -MT getopt1.o -MD -MP -MF
> ".deps/getopt1.Tpo" -c -o
> getopt1.o getopt1.c; \
> then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f
> ".deps/getopt1.Tpo"; exit 1; fi
> . . . . . . . . . .
>
> .....and so on....
>
> *******************
>
> "make" and "make install" both succeed. I haven't yet
> begun to try to
> use cfengine, but I suspect the executables will work properly.
>
> It would be nice if the configuration process would work
> out-of-the-box. If I'm dong something wrong please let me know.
>
> Yours,
>
> Kurt Reimer
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-> cfengine
>
- Re: Problems configuring cfengine 2.1.17 on Solaris10, (continued)
- Re: Problems configuring cfengine 2.1.17 on Solaris10, Mark Burgess, 2005/12/22
- Re: Problems configuring cfengine 2.1.17 on Solaris10, Kurt Reimer, 2005/12/23
- Re: Problems configuring cfengine 2.1.17 on Solaris10, Dave Love, 2005/12/23
- Re: Problems configuring cfengine 2.1.17 on Solaris10, Mark Burgess, 2005/12/24
- Re: Problems configuring cfengine 2.1.17 on Solaris10, Kurt Reimer, 2005/12/28
- Re: Problems configuring cfengine 2.1.17 on Solaris10, Brendan Strejcek, 2005/12/28
- Re: Problems configuring cfengine 2.1.17 (&.18) on Solaris10, Kurt Reimer, 2005/12/28
RE: Problems configuring cfengine 2.1.17 on Solaris10,
Martin, Jason H <=
RE: Problems configuring cfengine 2.1.17 on Solaris10, Martin, Jason H, 2005/12/21
RE: Problems configuring cfengine 2.1.17 on Solaris10, Martin, Jason H, 2005/12/28