#31 libparsers does not link on Mac for ppc of universal binary

closed-out-of-date
nobody
None
5
2010-04-16
2007-06-20
b6s
No

Use this command to configure Universal Binary building on Mac OS X (no matter Intel or PowerPC):

env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc" ./configure --disable-dependency-tracking

The error message:

g++ -g -O2 -arch i386 -arch ppc -o .libs/testparser firstparser.o htmlparser.o latexparser.o manparser.o testparser.o textparser.o -Wl,-bind_at_load ../hunspell/.libs/libhunspell-1.1.dylib
/usr/bin/ld: for architecture ppc
/usr/bin/ld: warning firstparser.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning htmlparser.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning latexparser.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning manparser.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning testparser.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning textparser.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning ../hunspell/.libs/libhunspell-1.1.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: Undefined symbols:
_main

Discussion

  • Németh László

    Logged In: YES
    user_id=726595
    Originator: NO

    Thanks for the report. Any patch would be appreciated.

     
  • b6s

    b6s - 2007-07-09

    Logged In: YES
    user_id=1561489
    Originator: YES

    I've tried many different ways but not any of them worked perfectly. So currently it's just a reminder. Thanks to all your hard works on hunspell.

     
  • Németh László

    Logged In: YES
    user_id=726595
    Originator: NO

    b6s: Thanks for your kind words and this bug report. I hope, we could fix this problem in the near future, too.

     
  • sjurum

    sjurum - 2007-11-02

    Logged In: YES
    user_id=1306054
    Originator: NO

    The latest version, 1.1.12, compiles without problems on MacOS X 10.5 (Leopard), using only the default setup (./configure; make; make install). I haven't tested whether the resulting binary works on older OSes, or whether it works on PPC computers (compiled on Intel).

     
  • b6s

    b6s - 2007-11-03

    Logged In: YES
    user_id=1561489
    Originator: YES

    I just experienced 1.2.1 and encountered different error, although it passed configuration this time:

    gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DIN_LIBINTL -DHAVE_CONFIG_H -I.. -I. -I../intl -O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc l10nflist.c
    l10nflist.c:61: error: static declaration of ‘stpcpy’ follows non-static declaration

     
  • Németh László

    Logged In: YES
    user_id=726595
    Originator: NO

    Thanks for the feedbacks. Hunspell 1.2.2 is out, with several bug fixes.

     
  • caolan mcnamara

    caolan mcnamara - 2010-04-16
    • status: open --> closed-out-of-date
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks