Attempted install of an Obj-C Foundation library

From: Michael Hopkins (michael.hopkins_at_hopkins-research.com)
Date: 04/25/05


Date: Mon, 25 Apr 2005 19:22:45 +0100


Hi all

I am trying to get a working Objective-C Foundation library on FreeBSD amd64
(5.3-RELEASE-p10 with ports cvsup'd today) so that I can port some
Objective-C code from Mac OS X - and not having any success.

I first tried a default install of the gnustep-base port but got this:
----------------------------------------------------------------------
Athlon# pwd
/usr/ports/lang/gnustep-base
Athlon# make
===> gnustep-base-1.10.3 depends on file: /usr/local/lib/libcallback.a -
found
===> gnustep-base-1.10.3 depends on file:
/usr/local/lib/gcc-lib/x86_64-portbld-freebsd5.3/3.3.6/libobjc.so - not
found
===> Verifying install for
/usr/local/lib/gcc-lib/x86_64-portbld-freebsd5.3/3.3.6/libobjc.so in
/usr/ports/lang/gcc-objc
===> gcc-objc-3.3.6_20050330 is marked as broken: Bus errors in stage2;
system compiler may be broken..
*** Error code 1

Stop in /usr/ports/lang/gcc-objc.
*** Error code 1

Stop in /usr/ports/lang/gnustep-base.
----------------------------------------------------------------------

Someone then suggested I should use 'make -DGNUSTEP_WITH_GCC34' and try
again, so I did and got a lot further. After lots of successful building of
GCC 3.4.4 it died. Another attempt (which skips the successful stuff) gives
this:
----------------------------------------------------------------------
===> Building for gnustep-base-1.10.3
Making all in Source...
gmake[1]: Entering directory
`/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/Source'
Making all in subprojects of library libgnustep-base...
gmake[2]: Entering directory
`/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/Source/Additions'
Making all for subproject Additions...
gmake[3]: Nothing to be done for `internal-subproject-all'.
gmake[2]: Leaving directory
`/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/Source/Additions'
Making all for library libgnustep-base...
 Linking library libgnustep-base ...
/usr/bin/ld: /usr/local/lib/libcallback.a(misc.o): relocation R_X86_64_32
can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libcallback.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
gmake[1]: Leaving directory
`/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/Source'
Making all in SSL...
gmake[1]: Entering directory
`/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/SSL'
Making all for bundle SSL...
 Linking bundle SSL ...
/usr/bin/ld: cannot find -lgnustep-base
collect2: ld returned 1 exit status
gmake[2]: *** [SSL.bundle/./SSL] Error 1
gmake[1]: *** [SSL.all.bundle.variables] Error 2
gmake[1]: Leaving directory
`/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/SSL'
gmake: *** [internal-all] Error 2
*** Error code 2

Stop in /usr/ports/lang/gnustep-base.
----------------------------------------------------------------------

I have also tried the other option i.e. libfoundation, from here:

 http://download.opengroupware.org/sources/trunk/libfoundation-trunk-latest.
tar.gz

I am told that this is a pretty complete port of the Foundation library, but
the install instructions are rather vague. An attempted build after
./configure gives this:
----------------------------------------------------------------------
root@Athlon /home/mwh/Coding/Obj-C/libfoundation/libfoundation # gmake
GNUmakefile:29: /common.make: No such file or directory
GNUmakefile:34: /aggregate.make: No such file or directory
gmake: *** No rule to make target `/aggregate.make'. Stop.
----------------------------------------------------------------------

Has anyone had any luck getting either gnustep-base or libfoundation to
build on FreeBSD amd64? I will also want to get it working with the Linux
compatibility environment compiler and mingw32 (both of which are working
fine for compiling C code) - any thoughts on how feasible this would be?

TIA

Michael

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

        _/ _/ _/_/_/ Hopkins Research Ltd
       _/ _/ _/ _/
      _/_/_/_/ _/_/_/ http://www.hopkins-research.com/
     _/ _/ _/ _/
    _/ _/ _/ _/ 'touch the future'
                   
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/



Relevant Pages

  • Re: run external program, get return code
    ... use the MS portqry tool, which according to its docs, has a quiet mode: ... returns 1 if port is not listening ... an error code back to the caller. ...
    (microsoft.public.scripting.wsh)
  • Cups cant start with error 98
    ... startup, with error code 98: ... That was fair enough the first time, ... and found nothing is bound to port 631. ... so I stopped the nfs processes. ...
    (Debian-User)
  • Re: coredll CreateFile on serial port
    ... > Before leaving the thread can yopu advise the reference you used to fin ... > error code 183? ... The port can only be used by one process at a time. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Convert long number to ascii
    ... When I try to send through the com port I receive ... and error code 380 Invalid property value. ... cofiguration of mscomm and it all seems correct but it just doesn't ... Dim overalloee1 As String ...
    (microsoft.public.vb.general.discussion)
  • whats wrong with my ports???
    ... This problem has been recurring on my laptop for the ... Very frequently, I'll go to portinstall something, and I'll get several ... can successfully build whatever port I was trying at the time. ... *** Error code 1 ...
    (freebsd-questions)