discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem compiling libobjc2 on pcbsd 9.1


From: Stephen Woolerton
Subject: Re: Problem compiling libobjc2 on pcbsd 9.1
Date: Fri, 28 Jun 2013 07:55:06 +1200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7

On 26/06/13 11:50 PM, David Chisnall wrote:
On 26 Jun 2013, at 11:52, Stephen Woolerton <address@hidden> wrote:

It is not being linked...
# ldd /usr/local/lib/libobjc.so
/usr/local/lib/libobjc.so:
This is clearly nonsense - it seems to not be linking to libc either...

GCC is version 4.2.1 20070831 , and /usr/lib/libgcc_s.so exists.
Can you show me the command that linked libobjc.so? (either make VERBOSE=1 or ninja -v, depending on how you are building libobjc2)

David

Hi David

Solved... No idea where the renegade libobjc.so in /usr/local/lib came from as it had a date of "April", while the ports jail was only a week old. I found the libobjc.so I had built, inside the GNUstep folder tree.

So I created a new jail yesterday and ran through the install process again, and now have gnustep-base working with blocks and libdispatch.

Thank you for your assistance. Much appreciated.

And in case it will help anyone, here is the recipe I used on PCBSD 9.1...

----------
Create a new jail in PCBSD 9.1, include ports

portsnap fetch update
#vipw  ->
#  make /usr/local/bin/bash the shell of the "toor" account
#  add new account "devel" also with bash shell
#passwd toor -> set root passwd
#su - toor   	# need to install sudo...


pgk_add -r vim bash portmaster subversion libdispatch
cd /usr/ports

portmaster /usr/ports/lang/clang33

# gnustep sources
mkdir /usr/local/src
svn co svn://svn.gna.org/svn/gnustep/modules/ gnustep

# check what packages could be required to install gnustep...
pkg_add -n -r gnustep-base gnustep-back
#(showed following packages required: libsndfile flac libao libvorbis
#  libogg aspell libxslt libgcrypt gnutls libpg libGLU libGL libdrm
#  libpciaccess giflib libXmu p11-kit mDNSResponder gmp nettle mpfr
#  libgpg libgcrypt xf86vidmodeproto dri2proto pciids libXxf86vm

# install recommended packages prior compilation
portmaster textproc/libxml      # pulled in ports for libgpg libgcrypt
				#pkgconf libxml2 libxslt
portmaster devel/icu
portmaster devel/cmake		# pulled in port for cmake-modules


export CC=/usr/local/bin/clang33
export CXX=/usr/local/bin/clang++33
# gnustep-make; required for libobc2 build
cd /usr/local/src/gnustep/core/make/
./configure
gmake
gmake install
. /usr/local/share/GNUstep/Makefiles/GNUstep.sh

# build libobjc2
cd ../../dev-libs/libobjc2
mkdir Build
cd Build
cmake .. -DCMAKE_C_COMPILER=/usr/local/bin/clang33 -DCMAKE_CXX_COMPILER=/usr/local/bin/clang++33
make
make install

#find / -name libobjc.so.*
#  /usr/local/lib/libobjc.so.4.6
#ldd /usr/local/lib/libobjc.so
#  /usr/local/lib/libobjc.so:
#        libthr.so.3 => /lib/libthr.so.3 (0x801235000)
#        libdispatch.so.0 => /usr/local/lib/libdispatch.so.0 (0x801458000)
#        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x80166a000)
#        libm.so.5 => /lib/libm.so.5 (0x80197a000)
#        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x801b9b000)
#        libc.so.7 => /lib/libc.so.7 (0x80081b000)
#        libBlocksRuntime.so.0 => /usr/lib/libBlocksRuntime.so.0 (0x801da8000)

# install gnustep-make again
./configure
gmake
gmake install
# source GNUstep again
. /usr/local/share/GNUstep/Makefiles/GNUstep.sh

# gnustep-base
cd ../base
./configure
gmake
gmake install

# gnustep-gui
# Note: all of "tiff jpeg png giflib aspell" packages are already installed
cd ../gui
./configure
gmake
gmake install

# gnustep-back
# Note: cairo already installed, but libGL is not.
cd ../back
./configure
gmake
gmake install



Regards 
Stephen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]