GNUstep install on OS X 10.3.9 - libffi fails

View: New views
2 Messages — Rating Filter:   Alert me  

GNUstep install on OS X 10.3.9 - libffi fails

by Bryan Pierce-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everyone!!

I have been trying to install GNUstep on OS X 10.3.9 and have not been
able to get gnustep-base to compile.
    I have been able to install libtiff, libjpeg, libpng, libslt from source
    I had to use fink for libart2, freetype2, and windowmaker (which I
couldn't get to compile from source)
    I have installed (fsf) gcc 3.3.5 and gnu make-2.2.0 (the latter I
hoped might be an answer)

When running configure on gnustep-base-1.18.0 I get the fallowing error
        You do not have either ffcall or libffi installed, or configure
needs
        --with-ffi-include and/or --with-ffi-library flags so GNUstep
can find them,
        or you have ffcall but gnustep-make is configured to use native
exceptions
        (native exceptions are not compatible with ffcall).
        GNUstep requires ffcall or libffi and proper libobjc hooks to do
        invocations and DO.

Nothing I have tried so far has worked
    I have reinstalled libffi into the "recommended" directories
    I have defined DYLD_LIBRARY_PATH to include these pathways
    I have configured with
         --enable-libffi  
--with-libffi-library=$GNUSTEP_SYSTEM_ROOT/Library/Libraries
         --with-libffi-include=$GNUSTEP_SYSTEM_ROOT/Library/Headers

    (The full list of options...)
        ./configure --with-xml-prefix=/usr --disable-xmltest
--with-library-combo=gnu-gnu-gnu
         --enable-libffi  
--with-libffi-library=$GNUSTEP_SYSTEM_ROOT/Library/Libraries
        --with-libffi-include=$GNUSTEP_SYSTEM_ROOT/Library/Headers
--disable-flattened
        --enable-multi-platform LDFLAGS=-L/sw/lib CPPFLAGS=-I/sw/include
    (And of course...)
        (I've added sym-links for libobjc.a as suggested)


I've tried rereading the Darwin install notes at
www.gnustep.org/resources/documentation/User/GNUstep/README.Darwin
and I've done google searches for the past 24 hours trying to figure out
anything I might be missing. I'm  relative
newbie so anything beyond trying to make sure the libffi and libobjc
libraries are in in the DYLD_LIBRARY_PATH and
trying to place order the paths so that the <fsf gcc> directories are
searched before the <apple gcc> directories
and...well...I'm out of ideas.

If anyone has any ideas or suggestions, it would really, really, really
be appreciated!!! :)

Best Regards,
Bryan Pierce


_______________________________________________
Help-gnustep mailing list
Help-gnustep@...
http://lists.gnu.org/mailman/listinfo/help-gnustep

Re: GNUstep install on OS X 10.3.9 - libffi fails

by Bryan Pierce-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

BryanPierc wrote:
>  ...anything beyond trying to make sure the libffi and libobjc
> libraries are in in the DYLD_LIBRARY_PATH and
> trying to place order the paths so that the <fsf gcc> directories are
> searched before the <apple gcc> directories
> and...well...I'm out of ideas.
OK! Good news and not so good news:

I got configure to run
    I copied the libffi headers (from the default install locations) to
/urs/local/GNUstep/System/Library/Headers
    I added
/usr/local/lib/gcc-lib/powerpc-apple-darwin7.9.0/3.3.5/include/ to
DYLD_LIBRARY_PATH
    (The latter seemed to do the trick, which would suggest that OS X
uses DYLD_LIBRARY_PATH to search for headers as well as libraries(?))

make terminated with the following error
        Compiling file Unicode.m ...
        Linking subproject Additions ...
       /usr/bin/ld: flag: -undefined dynamic_lookup can't be used with
                MACOSX_DEPLOYMENT_TARGET environment variable
                set to: 10.1 collect2: ld returned 1 exit status
        make[4]: *** [obj/powerpc/darwin7/gnu-gnu-gnu/subproject.o] Error 1
        make[3]: *** [internal-subproject-all_] Error 2
        make[2]: *** [Additions.all.subproject.variables] Error 2
        make[1]: *** [libgnustep-base.all.library.variables] Error 2

Any Ideas here??
Any help would be appreciated!! :-)


Thanks again!
Bryan


_______________________________________________
Help-gnustep mailing list
Help-gnustep@...
http://lists.gnu.org/mailman/listinfo/help-gnustep