Posts: 11,582
Joined: Feb 2008
Reputation:
84
davilla
Retired-Team-XBMC Developer
Posts: 11,582
again, "ls -l /Developer/SDKs/MacOSX10.4u.sdk" ? is it there ?
Posts: 9
Joined: Sep 2010
Reputation:
0
Hello Davilla,
I do have MacOSX10.4u.SDK installed and out put of the above command is like this
total 8
drwxr-xr-x 4 root wheel 136 May 16 2009 Developer
drwxr-xr-x 3 root wheel 102 Aug 21 15:59 Library
-rw-r--r-- 1 root wheel 899 Sep 30 2009 SDKSettings.plist
drwxr-xr-x 3 root wheel 102 May 16 2009 System
drwxr-xr-x 8 root wheel 272 May 16 2009 usr
Thanks,
Posts: 11,582
Joined: Feb 2008
Reputation:
84
davilla
Retired-Team-XBMC Developer
Posts: 11,582
ok, lets get a verbose error message.
sudo port -v install pcre +universal
Posts: 9
Joined: Sep 2010
Reputation:
0
2010-09-09, 15:36
(This post was last modified: 2010-09-09, 15:42 by jinith.)
below is the error got on executing, sudo port -v install pcre +universal.
[[[---> Building bzip2
rm -f libbz2.dylib
/usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -dynamiclib blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o -o libbz2.1.0.5.dylib \
-install_name /opt/local/lib/libbz2.1.0.dylib \
-compatibility_version 1.0 -current_version 1.0.5
ld: library not found for -ldylib1.o
collect2: ld returned 1 exit status
make: *** [libbz2.dylib] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_xbmc-port-depends-read-only_dports_archivers_bzip2/work/bzip2-1.0.5" && make all PREFIX="/opt/local" " returned error 2
Command output: rm -f libbz2.dylib
/usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -dynamiclib blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o -o libbz2.1.0.5.dylib \
-install_name /opt/local/lib/libbz2.1.0.dylib \
-compatibility_version 1.0 -current_version 1.0.5
ld: library not found for -ldylib1.o
collect2: ld returned 1 exit status
make: *** [libbz2.dylib] Error 1
Warning: the following items did not execute (for bzip2): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: The following dependencies failed to build: bzip2 ncurses ncursesw readline zlib
Error: Status 1 encountered during processing.]]]
Posts: 11,582
Joined: Feb 2008
Reputation:
84
davilla
Retired-Team-XBMC Developer
Posts: 11,582
let's find dylib1.o
"sudo find / -name dylib1.o"
Posts: 9
Joined: Sep 2010
Reputation:
0
2010-09-10, 07:35
(This post was last modified: 2010-09-10, 08:06 by jinith.)
Hello Davilla,
Out put of sudo find / -name dylib1.o is as below. Which suggests that Mac 10.4u.SDK is not installed but I have installed it and folder can be seen in Developer's directory.
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/dylib1.o
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/dylib1.o
/usr/lib/dylib1.o
Thanks,
Posts: 11,582
Joined: Feb 2008
Reputation:
84
davilla
Retired-Team-XBMC Developer
Posts: 11,582
wohhh, there cowboy. too much info and changes. you go me confused now.
macports need to be set to build i386 and not both. +universal means more than just i386/ppc and you want to get that too but not build ppc when on intel platform.
before you had a problem with MacOSX10.4u.sdk and no dylib1.o, now it's there. what did you do. The SDK much be installed with the pkg installer, not dragged over. There are pre and post flight scripts that run.
This smells like the 10.4SDK is not installed correctly.
Posts: 9
Joined: Sep 2010
Reputation:
0
Hello Davilla,
Sorry for confusing, I have uninstalled Xcode by logging in /Developer/Library diretory and performed following command (sudo ./uninstall-devtools). then I have reinstalled Xcode with .dmg file downloaded form Apple site. The version of Xcode is xcode_3.2.4.
Is there any thing that is missing which I forgot to performed.
Thanks,
Posts: 9
Joined: Sep 2010
Reputation:
0
Hello Davilla,
Output of gcc -v is
[[[
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~101/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)
]]]
Thanks,