Re: [classad-users] Build Problems on OS X


Date: Tue, 13 Oct 2009 11:31:28 -0600
From: Ole Weidner <oweidner@xxxxxxxxxxx>
Subject: Re: [classad-users] Build Problems on OS X
Hey Dan,

I'm compiling on OS X 10.6:

Teahupoo:classads-1.0.4 oweidner$ ./configure --prefix=/usr/local/ classad-1.0.4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking build system type... i686-apple-darwin10.0.0
checking host system type... i686-apple-darwin10.0.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/libexec/gcc/i686-apple- darwin10/4.2.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from gcc object... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking if gcc supports -fno-rtti -fno-exceptions... rm: conftest.dSYM: is a directory
no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if gcc static flag -static works... rm: conftest.dSYM: is a directory
no
checking if gcc supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple- darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking for ld used by g++... /usr/libexec/gcc/i686-apple- darwin10/4.2.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no checking whether the g++ linker (/usr/libexec/gcc/i686-apple- darwin10/4.2.1/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... rm: conftest.dSYM: is a directory
yes
checking if g++ static flag -static works... rm: conftest.dSYM: is a directory
no
checking if g++ supports -c -o file.o... rm: conftest.dSYM: is a directory
yes
checking whether the g++ linker (/usr/libexec/gcc/i686-apple- darwin10/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.0.0 dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking whether compiler accepts -Wall... yes
checking whether compiler accepts -Wextra... yes
checking whether compiler accepts -Wshadow... yes
checking whether compiler accepts -Wpointer-arith... yes
checking whether compiler accepts -Wcast-qual... yes
checking whether compiler accepts -Wcast-align... yes
checking whether compiler accepts -Winvalid-pch... yes
checking whether compiler accepts -Woverloaded-virtual... yes
checking whether compiler accepts -Wno-system-headers... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for unistd.h... (cached) yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking for struct tm.tm_gmtoff... yes
checking for error_at_line... no
checking for stdlib.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... no
checking for strftime... yes
checking for working strtod... no
checking for pow... yes
checking for vprintf... yes
checking for _doprnt... no
checking for floor... yes
checking for ftime... yes
checking for getcwd... yes
checking for gettimeofday... yes
checking for localtime_r... yes
checking for memset... yes
checking for regcomp... yes
checking for rint... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtol... yes
checking for tzset... yes
checking for dlopen... yes
checking for regcomp... (cached) yes
checking if localtime_r() needs _REENTRANT... no
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking for pcre_compile in -lpcre... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Thanks,
Ole

On Oct 13, 2009, at 11:27 AM, Dan Bradley wrote:

Hello Ole,

classads-1.0.4 compiles fine for me on OS X 10.5. Could you please show
the full output from configure?

Thanks,
--Dan

Ole Weidner wrote:

when I try to build the latest release of classad, I run into the
following problem:

fnCall.cpp: In function 'bool regexp_helper(const char*, const char*,
const char*, bool, std::string, Value&)':
fnCall.cpp:2627: error: 'pcre' was not declared in this scope
fnCall.cpp:2627: error: 're' was not declared in this scope
fnCall.cpp:2635: error: 'PCRE_CASELESS' was not declared in this scope
fnCall.cpp:2638: error: 'PCRE_MULTILINE' was not declared in this
scope
fnCall.cpp:2641: error: 'PCRE_DOTALL' was not declared in this scope
fnCall.cpp:2644: error: 'PCRE_EXTENDED' was not declared in this scope
fnCall.cpp:2649: error: 'pcre_compile' was not declared in this scope
fnCall.cpp:2655: error: 'PCRE_INFO_CAPTURECOUNT' was not declared in
this scope
fnCall.cpp:2655: error: 'pcre_fullinfo' was not declared in this scope
fnCall.cpp:2661: error: 'pcre_exec' was not declared in this scope
fnCall.cpp:2668: error: 'pcre_free' was not declared in this scope
fnCall.cpp:2680: error: 'pcre_get_substring_list' was not declared in
this scope
fnCall.cpp:2703: error: 'pcre_free_substring_list' was not declared in
this scope

I don't know why it is trying to do pcre stuff at all - configure --
help reads:

 --with-pcre[=DIR] Use PCRE instead of POSIX regex. The directory
                         should be include and lib subdirectories
(default:
                         not used)

Any idea how to fix this?

Thanks,
Ole
Condor Classads Info:
http://www.cs.wisc.edu/condor/classad/
Condor Classads Info:
http://www.cs.wisc.edu/condor/classad/

[← Prev in Thread] Current Thread [Next in Thread→]