configure failure os x
Michael K. Ter Louw
mterlo1 at uic.edu
Thu Apr 3 02:40:53 CEST 2003
>===== Original Message From Matthias Andree <matthias.andree at gmx.de> =====
>Michael Kenneth Ter Louw <mterlo1 at uic.edu> writes:
>
>> I had the same problem when running Bogofilter configure on an AIX
>> machine. The config.log showed that gcc was returning errors related to
>> the pthread library.
>
>Can you quote from that file?
configure:3324: checking for db_create in -ldb
configure:3342: gcc -o conftest -g -O2 -Wall -W -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align
-Wwrite-strings -Waggregate-return -Wmissing-declarations -Wnested-externs
-ggdb -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wreturn-type
-I/homes/home1/mterlo1/include -L/homes/home1/mterlo1/lib conftest.c -lm
-ldb >&5
configure:3333: warning: function declaration isn't a prototype
configure: In function `main':
configure:3334: warning: unused variable `foo'
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
ld: 0711-317 ERROR: Undefined symbol: .pthread_cond_signal
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_trylock
ld: 0711-317 ERROR: Undefined symbol: .pthread_cond_wait
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_setpshared
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutexattr_destroy
ld: 0711-317 ERROR: Undefined symbol: .pthread_condattr_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_condattr_setpshared
ld: 0711-317 ERROR: Undefined symbol: .pthread_cond_init
ld: 0711-317 ERROR: Undefined symbol: .pthread_condattr_destroy
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
configure:3345: $? = 1
configure: failed program was:
#line 3329 "configure"
#include "confdefs.h"
#include <db.h>
int
main ()
{
int foo=db_create((void *)0, (void *) 0, 0 )
;
return 0;
}
configure:3362: result: no
>> (I don't know where I saw this, it might have
>> been from BerkeleyDB's generated Makefile) and I got configure to run
>> successfully, but then I would get errors when running make.
>
>Can you remember these? Do these occur without the -pthread option to
>xlc_r? what is this xlc_r anyways?
make error:
xlc_r -DHAVE_CONFIG_H -I. -I. -I. -I./dcdflib/doc
-I/homes/home1/mterlo1/include -DBOGOFILTER -g -c `test -f 'globals.c' ||
echo './'`globals.c
"common.h", line 66.24: 1506-046 (S) Syntax error.
make[3]: *** [globals.o] Error 1
>From 'man xlc_r':
C for AIX Compiler
Usage:
xlc [ option | inputfile ]...
cc [ option | inputfile ]...
c89 [ option | inputfile ]...
xlC [ option | inputfile ]...
xlc128 [ option | inputfile ]...
cc128 [ option | inputfile ]...
xlC128 [ option | inputfile ]...
xlc_r [ option | inputfile ]...
cc_r [ option | inputfile ]...
xlC_r [ option | inputfile ]...
icc [ option | inputfile ]...
ixlc [ option | inputfile ]...
ic89 [ option | inputfile ]...
ixlc128 [ option | inputfile ]...
icc128 [ option | inputfile ]...
ixlc_r [ option | inputfile ]...
icc_r [ option | inputfile ]...
Description:
The xlc and related commands compile C source files.
They also processes assembler source files and object files. Unless the
-c option is specified, xlc calls the linkage editor to produce a
single object file. Input files may be any of the following:
1. file name with .c suffix: C source file
2. file name with .i suffix: preprocessed C source file
4. file name with .o suffix: object file for ld command
5. file name with .s suffix: assembler source file
Mike
More information about the Bogofilter
mailing list