Re: Problem building on OSX




On Oct 17, 2007, at 7:33 PM, Dave Stewart wrote:

Thanks for the assist Marius, but so far my luck hasn't changed ...

On Oct 16, 2007, at 6:41 PM, Marius Schamschula wrote:

Dave,

Try passing 

CPPFLAGS=-I/usr/local/include

and

LDFLAGS="-flat_namespace -L/usr/local/lib"


This results in the system not being able to build executables:


 $ ./configure PKG_CONFIG=/usr/local/bin/pkg-config GETTEXT_PACKAGE=/usr/local/bin/gettext CPPFLAGS=-l/usr/local/include LDFLAGS=-flat_namespace -L/usr/local/lib

## --------- ##
## Platform. ##
## --------- ##

hostname = diags.aquaflo.com
uname -m = Power Macintosh
uname -r = 8.10.0
uname -s = Darwin
uname -v = Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC

/usr/bin/uname -p = powerpc
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC
Kernel configured for a single processor only.
1 processor is physically available.
Processor type: ppc7450 (PowerPC 7450)
Processor active: 0
Primary memory available: 512.00 megabytes
Default processor set: 67 tasks, 193 threads, 1 processors
Load average: 4.82, Mach factor: 0.29
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown
...
configure:3094: gcc -v >&5
Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs
Configured with: /private/var/tmp/gcc/gcc-4061.obj~8/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
configure:3097: $? = 0
configure:3104: gcc -V >&5
gcc: argument to `-V' is missing
configure:3107: $? = 1
configure:3130: checking for C compiler default output file name
configure:3157: gcc  -l/usr/local/include -flat_namespace -L/usr/local/lib conftest.c  >&5
/usr/bin/ld: can't locate file for: -l/usr/local/include
collect2: ld returned 1 exit status
configure:3160: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "glib"
| #define PACKAGE_TARNAME "glib"
| #define PACKAGE_VERSION "2.14.1"
| #define PACKAGE_STRING "glib 2.14.1"
| #define GLIB_MAJOR_VERSION 2
| #define GLIB_MINOR_VERSION 14
| #define GLIB_MICRO_VERSION 1
| #define GLIB_INTERFACE_AGE 1
| #define GLIB_BINARY_AGE 1401
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3199: error: C compiler cannot create executables


Hmm. Next I tried a few variations on the theme. If I use CPPFLAGS=-L/usr/local/include instead (capitol L instead of lowercase l), I end up with the same original problem. I also tried running with just the LDFLAGS argument and then tried changing the LDFLAGS argument to LDFLAGS="-flat_namespace -L/usr/local/include" just for fun, but still no luck:


For the CPPFLAGS  that should be a capitol i (I), not a lower case L.

  $ ./configure PKG_CONFIG=/usr/local/bin/pkg-config GETTEXT_PACKAGE=/usr/local/bin/gettext LDFLAGS=-flat_namespace -L/usr/local/lib CPPFLAGS=-L/usr/local/include
...
configure:8634: checking for libintl.h
configure:8641: result: yes
configure:8652: checking for ngettext in libc
configure:8680: gcc -o conftest -g -O2 -L/usr/local/include -flat_namespace -L/usr/local/lib -framework Carbon conftest.c  >&5
/usr/bin/ld: Undefined symbols:
_libintl_ngettext
collect2: ld returned 1 exit status


Any other thoughts? I'm starting to feel rather lost and can't believe that I'm the first to encounter this issue, it's to fundamental (it won't build!).

Marius

--

Marius Schamschula

Webmaster


The Huntsville Macintosh Users Group

www.hmug.org


webmaster at hmug dot org

marius at schamschula dot com






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]