compiling daemon for 10.4 (on 10.5 box)

Ask for help and report issues with the Mac OS X version of Transmission
Post Reply
ryanv
Posts: 4
Joined: Fri Jun 19, 2009 8:02 am

compiling daemon for 10.4 (on 10.5 box)

Post by ryanv »

I'm having trouble compiling transmission-daemon for 10.4. When compiled through xcode it continues to use the 10.5 libSystemB.dylib and gives this error on execution:

dyld: Symbol not found: _read$UNIX2003
Referenced from: /mnt/Scratch/Users/frontrow/Downloads/./transmission-daemon
Expected in: /usr/lib/libSystem.B.dylib

My configuration:
Computer: Darwin PowerBook.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:54:29 PDT 2009; root:xnu-1228.12.14~1/RELEASE_PPC Power Macintosh
Source: Transmission-1.72
OS: Mac OS X 10.5.7
Xcode: 3.1.2
MacPorts: 1.710
Transmission-X11: 1.71
Full MacPorts:
curl @7.19.5_0 (active)
expat @2.0.1_0 (active)
gettext @0.17_3 (active)
gnome-common @2.26.0_0 (active)
gperf @3.0.3_0 (active)
gsed @4.2_0 (active)
gsl @1.11_0 (active)
intltool @0.40.6_0 (active)
libiconv @1.12_0 (active)
ncurses @5.6_0 (active)
ncursesw @5.6_1 (active)
openssl @0.9.8k_0 (active)
p5-xml-parser @2.36_0 (active)
perl5 @5.8.9_0 (active)
perl5.8 @5.8.9_3 (active)
pkgconfig @0.23_1 (active)
texinfo @4.11_0 (active)
transmission-x11 @1.71_0 (active)
zlib @1.2.3_2 (active)
EDIT: Trying to recreate my attempts the original post had the wrong flags
env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" \
LDFLAGS="-arch i386 -arch ppc"
./configure --enable-daemon --disable-gtk --disable-mac --disable-dependency-tracking
make

This creates a PPC bin and not Universal.

I've also tried compiling through Xcode. In Xcode I set the active target to transmission-daemon with the build configuration set to Base SDK to Mac OS X 10.4 and the Deployment Target to Mac OS X 10.4. This does compile, but gives the dylib error on execution. Any advice would be greatly appreciated, please let me know if you would like logs.

UPDATE:
I don't believe my previous configure attempt was registering the environment variables. I tried using these instead:
/configure --enable-daemon --disable-gtk --disable-mac --host=i386 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
and ./configure --enable-daemon --disable-gtk --disable-mac --host=i386 CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc"

They both result in:
checking for C compiler default output file name...
configure: error: in `/Users/ryanvinson/Temp/transmission-1.72':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Config log:
configure:3293: checking for C compiler default output file name
configure:3315: gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk conftest.c >&5
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
Post Reply