Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to Port for Darwin



Hi,

I'm trying to port gcl-2.3 for Darwin, the new Apple's open source OS . The
point is that I'm a newbie, hence unexperienced with *NIX and C.

Darwin uses "cc" as the C compiler, which is equivalent to the "gcc", once
one use "cc -traditional-cpp".

I couldn't go through the "configure" script yet and that's what I got in
the "configure.log":
*****
configure:2359: checking for have_ieee in -llieee
configure:2378: cc -traditional-cpp -o conftest -g -O2 conftest.c
-L/sw/lib -llieee -lm 1>&5

/usr/bin/ld: can't locate file for: -llieee

*****
I don't have any file in disk with a "lieee" string. So, if you have any
idea or hint I'd really appreciate.
Thanks in advance,
Lizardo.

Below is the whole "config.log":

******
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:542: checking system version (for dynamic loading)
configure:573: checking for gcc
configure:686: checking whether the C compiler (cc -traditional-cpp ) works
configure:702: cc -traditional-cpp -o conftest conftest.c 1>&5
configure:728: checking whether the C compiler (cc -traditional-cpp ) is a
cross-compiler
configure:733: checking whether we are using GNU C
configure:742: cc -traditional-cpp -E conftest.c
configure:761: checking whether cc -traditional-cpp accepts -g
configure:794: checking finding DBEGIN
configure:810: cc -traditional-cpp -o conftest -g -O2 conftest.c 1>&5
configure:879: checking for getcwd
configure:907: cc -traditional-cpp -o conftest -g -O2 conftest.c 1>&5
configure:934: checking for getwd
configure:962: cc -traditional-cpp -o conftest -g -O2 conftest.c 1>&5
configure:987: checking for uname
configure:1015: cc -traditional-cpp -o conftest -g -O2 conftest.c 1>&5
configure:1039: checking for gettimeofday
configure:1067: cc -traditional-cpp -o conftest -g -O2 conftest.c 1>&5
configure:1093: checking how to run the C preprocessor
configure:1114: cc -traditional-cpp -E conftest.c >/dev/null 2>conftest.out
configure:1176: checking for sys/ioctl.h
configure:1186: cc -traditional-cpp -E conftest.c >/dev/null 2>conftest.out
configure:1226: checking for BSDgettimeofday
configure:1254: cc -traditional-cpp -o conftest -g -O2 conftest.c 1>&5
/usr/bin/ld: Undefined symbols:
_BSDgettimeofday
configure: failed program was:
#line 1231 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char BSDgettimeofday(); below. */
#include <gcc/darwin/2.95.2/assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char BSDgettimeofday();

int main() {

/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
choke me
#else
BSDgettimeofday();
#endif

; return 0; }
configure:1275: checking for gettimeofday
configure:1329: checking for gettimeofday declaration
configure:1354: checking for sin in -lm
configure:1373: cc -traditional-cpp -o conftest -g -O2 conftest.c -lm
1>&5
configure:1366: warning: conflicting types for built-in function `sin'
configure:1414: checking for sockets
configure:1417: checking for connect
configure:1445: cc -traditional-cpp -o conftest -g -O2 conftest.c -lm
1>&5
configure:1560: checking for gethostbyname
configure:1588: cc -traditional-cpp -o conftest -g -O2 conftest.c -lm
1>&5
configure:1647: checking For network code for nsocket.c
configure:1676: cc -traditional-cpp -o conftest -g -O2 conftest.c -lm
1>&5
configure:1693: checking check for listen using fcntl
configure:1708: cc -traditional-cpp -c -g -O2 conftest.c 1>&5
configure:1727: checking for profil
configure:1755: cc -traditional-cpp -o conftest -g -O2 conftest.c -lm
1>&5
configure:1780: checking for _cleanup
configure:1808: cc -traditional-cpp -o conftest -g -O2 conftest.c -lm
1>&5
configure:1862: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O
configure:1918: checking host system type
configure:2057: checking check for SV_ONSTACK
configure:2068: cc -traditional-cpp -c -g -O2 conftest.c 1>&5
configure:2270: checking emacs site lisp directory
configure:2289: checking emacs default.el
configure:2312: checking emacs info/dir
configure:2324: checking for tcl/tk
configure:2359: checking for have_ieee in -llieee
configure:2378: cc -traditional-cpp -o conftest -g -O2 conftest.c
-L/sw/lib -llieee -lm 1>&5
/usr/bin/ld: can't locate file for: -llieee
configure: failed program was:
#line 2367 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char have_ieee();

int main() {
have_ieee()
; return 0; }
configure:2402: checking for have_dl in -ldl
configure:2421: cc -traditional-cpp -o conftest -g -O2 conftest.c -ldl
-lm 1>&5
/usr/bin/ld: can't locate file for: -ldl
configure: failed program was:
#line 2410 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char have_dl();

int main() {
have_dl()
; return 0; }
configure:2501: checking alloca
configure:2510: cc -traditional-cpp -o conftest -g -O2 conftest.c -lm
1>&5
configure: In function `main':
configure:2507: `NULL' undeclared (first use in this function)
configure:2507: (Each undeclared identifier is reported only once
configure:2507: for each function it appears in.)
configure:2507: parse error before `}'
configure: failed program was:
#line 2506 "configure"
#include "confdefs.h"
int main() { exit(alloca(500) != NULL ? 0 : 1)}

--




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.