Help with using Autotools (GNU build system) on Mac OS X 10.6.3
I have tried to install several free and open source software, which use Autotools (GNU build system) for build automation, in vain.
The "./configure" script terminates with an error, indicating that the GCC compiler does not have a library (-lposix) that is needed.
Go Trojans >./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking use 32 bit compile... no
checking enable lxt support... yes
checking enable lxt2 support... yes
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
Go Trojans >
Some of the contents of the "config.log" file include:
configure:2600: checking for C++ compiler version
configure:2607: g++ --version >&5
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2610: $? = 0
configure:2617: g++ -v >&5
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5659~1/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c +,obj-c+ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5659)
configure:2620: $? = 0
configure:2627: g++ -V >&5
g++-4.2: argument to `-V' is missing
configure:2630: $? = 1
configure:2653: checking for C++ compiler default output file name
configure:2680: g++ conftest.cpp -lposix >&5
ld: library not found for -lposix
collect2: ld returned 1 exit status
configure:2683: $? = 1
configure:2721: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "veriwell"
| #define PACKAGE_TARNAME "veriwell"
| #define PACKAGE_VERSION "2.8.7"
| #define PACKAGE_STRING "veriwell 2.8.7"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "veriwell"
| #define VERSION "2.8.7"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2728: error: C++ compiler cannot create executables
See `config.log' for more details.
I cannot find a definition of the "-lposix" library in the "./configure" file, and do not know enough about Autotools (GNU build system) to modify the "./configure" file to the correct location of the library.
In addition, where can I find this "-lposix" library in my computer? "g++" is located in "/usr/bin", which only contains executables. Does this "-lposix" library exist? Does anyone else have this problem?
Thank you.
Mac Book Pro, Mac OS X (10.6.3)