Menu

#22 Does not compile on MacOS X

open
nobody
None
5
2004-04-23
2004-04-23
Anonymous
No

A small problem is that the "long double" type from libflatfile/
Field.h generates a warning, which is turned to an error by
-Werror.

Another small problem is that -Wl,--no-whole-archive and -Wl,--
whole-archive don't exist. They can be omitted.

A more serious problem is that -shared doesn't exist. MacOS X
uses another technique for shared objects, which are *.dylib and
not *.so
Cf. http://www.metapkg.org/wiki/12

Discussion

  • Nobody/Anonymous

    Logged In: NO

    While not ideal, the --disable-warnings configure flag
    removes the -Werror (as well as -ansi, -pedantic and -Wall,
    which you might rather keep). Also it'll compile without
    shared libraries with --enable-static

    So
    ./configure --disable-warnings --enable-static
    is a reasonable workaround to get a Mac OS X build

     
  • Skeeve

    Skeeve - 2006-12-19

    Logged In: YES
    user_id=864970
    Originator: NO

    2006 and it still does not compile on Mac OS X!

    4 errors I fixed(?) were:
    - infofile.h, Parser was missing a virtual destroy method:
    virtual ~Parser() { }
    - A semicolon too much in infofile.h at the end
    - A semicolon too much in File.h
    - A semicolon too much in Block.h

     
  • Skeeve

    Skeeve - 2006-12-19

    Logged In: YES
    user_id=864970
    Originator: NO

    Even worse... Now it fails with:
    gcc pdb2csv.o -o pdb2csv libpdbtools.a ../libflatfile/libflatfile.a ../libsupport/libsupport.a ../libpalm/libpalm.a -lstdc++
    /usr/bin/ld: Undefined symbols:
    __Unwind_Resume

     
  • Skeeve

    Skeeve - 2006-12-19

    Logged In: YES
    user_id=864970
    Originator: NO

    changing
    CC = gcc
    to
    CC = g++
    in MAKEFILE helped. Can someone please include the changes into configure for ostype darwin8.0?

     
  • Skeeve

    Skeeve - 2006-12-19

    Logged In: YES
    user_id=864970
    Originator: NO

    Now make install fails... Running it with -d gives (at the end):

    Considering target file `install'.
    Finished prerequisites of target file `install'.
    No need to remake target `install'.
    make: `install' is up to date.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.