On Tue, Jul 15, 2008 at 23:10, Adrian Robert <[EMAIL PROTECTED]> wrote:
>
> On Jul 15, 2008, at 9:31 PM, Denis Bueno wrote:
>
>> Ignore that.  After 'make distclean' I get a different error, which is:
>>
>> gcc-4.0  -prebind -framework AppKit -lresolv -Xlinker -headerpad
>> -Xlinker 6C8  -o temacs pre-crt0.o dispnew.o frame.o scroll.o xdisp.o
>> ...
>>    -L/opt/local/lib -ldbus-1 -lresolv
>> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning prebinding
>> disabled because dependent library: /opt/local/lib/libdbus-1.3.dylib
>> is not prebound
>> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
>> _BC
>> _UP
>> _tgoto
>
> ...
>
> It looks like your link line does not get -lncurses, causing the undefined
> symbols.  'configure' checks for this, but for some reason the check is
> failing on your system.  You mention macports -- are you on OS X?  What does
> a 'locate libncurses' give you?  If it's there, can you figure out why
> configure isn't finding it?


I'm on OS X 10.4.11.  'locate libncurses' produces a lot of output, including:

    /opt/local/lib/libncurses++.a
    /opt/local/lib/libncurses++w.a
    /opt/local/lib/libncurses.5.dylib
    /opt/local/lib/libncurses.a
    /opt/local/lib/libncurses.dylib
    /opt/local/lib/libncursesw.5.dylib
    /opt/local/lib/libncursesw.a
    /opt/local/lib/libncursesw.dylib
    /usr/lib/libncurses.5.4.dylib
    /usr/lib/libncurses.5.dylib
    /usr/lib/libncurses.dylib

The check for libncurses from config.log does indeed fail:

    configure:20022: checking for tparm in -lncurses
    configure:20057: gcc-4.0 -o conftest -g -arch ppc -arch i386
-fpascal-strings -DMAC_OSX    conftest.c -lncurses  -lm   >&5

    /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: for architecture ppc
    /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning
/opt/local/lib/libncurses.dylib cputype (7, architecture i386) do
    es not match cputype (18) for specified -arch flag: ppc (file not loaded)
    /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
    _tparm
    collect2: ld returned 1 exit status
    lipo: can't open input file: /var/tmp//ccE1FrBX.out (No such file
or directory)
    configure:20063: $? = 1
    [snip failed program]
    configure:20081: result: no


Compiling the failing conftest.c without the "-arch ppc" flag works.
How can I get configure to exclude that flag?


-- 
 Denis

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emacs-app-dev- mailing list
Emacs-app-dev-@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-

Reply via email to