Menu

Can't compile on OSX (10.4.8)

Help
2006-10-09
2013-05-28
  • Nobody/Anonymous

    I get the latest CVS, installed gc, still configure sends me a warning first, and make halts very early on :

    -- ./configure warning : --
    ...
    checking for dlfcn.h... yes
    checking for dlopen in -ldl... yes
    checking how to run the C++ preprocessor... g++ -E
    checking cppunit/TestSuite.h usability... no
    checking cppunit/TestSuite.h presence... no
    checking for cppunit/TestSuite.h... no
    checking for include/cppunit/TestSuite.h... no
    checking for cppunit/TestSuite.h... :
    configure:
    configure: Header directories for cppunit not found; needed only for unit testing.
    configure:
    checking for _ZN7CppUnit8TestCase3runEv in -lcppunit... no
    checking for lib/libcppunit.a... no
    checking for libcppunit.a... :
    configure:
    configure: cppunit (C++ Unit Testing) library not found; needed only for testing
    configure:
    checking whether byte ordering is bigendian... no
    checking for char... yes
    ...

    -- make halt log --
    cd loader && make
    g++ -g -O2 -Wall -c -fPIC  -I../include -o ElfBinaryFile.o ElfBinaryFile.cpp
    ElfBinaryFile.cpp: In member function 'virtual bool ElfBinaryFile::RealLoad(const char*)':
    ElfBinaryFile.cpp:134: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'size_t'
    g++ -g -O2 -Wall -c -fPIC -DBUILDING_LIBBINARYFILE -I../include -o BinaryFile.o BinaryFile.cpp
    g++ -g -O2 -Wall -c -fPIC  -I../include -o SymTab.o SymTab.cpp
    g++ -g -O2 -Wall -o ../lib/libBinaryFile.dylib -dynamic -dylib BinaryFile.o SymTab.o 
    /usr/bin/ld: Undefined symbols:
    _main
    collect2: ld returned 1 exit status
    make[1]: *** [../lib/libBinaryFile.dylib] Error 1
    make: *** [loaders] Error 2
    ----

    How did you compile under macosx ?

     
    • Gerard Krol

      Gerard Krol - 2006-10-10

      See the thread "OSX issues" (http://sourceforge.net/forum/forum.php?thread_id=1579214&forum_id=159427)

      - Gerard