Topic: Error under Mac OS X 10.5.8 (Read 10982 times)

Activity: 1
Merit: 0
February 26, 2011, 04:24:12 AM
Sorry to drag up an old thread, but I'm having the same problem on my Intel Mac with 10.5.8.  I get exactly the same error message, regarding the _fopen$UNIX2003 symbol not being found.  My machine has a 2Ghz Core Duo processor (note, not Core 2 Duo) with 2GB RAM.  I think it might be a 32-bit only processor.  Perhaps the problems with the latest pre-built BitCoin are related to that?
full member
Activity: 199
Merit: 2011
July 19, 2010, 05:36:02 PM
The Quicktime message is because it's 32 bit only but it isn't used anyway, it's just linked in by wxWidgets.  I believe if you disable the 'media control' features with configure it won't link them in, but I don't know off the top of my head what the right options for that are.  I noticed that even disabling the 'debug_flag' with configure, the latest svn of wxWidgets still pops up the assertions.  I'm not sure how to disable it completely, maybe I'll dig around in the wxWidgets code.  The 2.9 release of wxWidgets doesn't look very good on mac for me, so I used the latest from their svn.  They are doing a ton of work rewriting it with Cocoa.
Activity: 103
Merit: 61
July 18, 2010, 09:03:24 PM
I'm getting the same wxWidgets debug errors.  Did you get a message about quicktime at the end of your build?  I can't figure it out...
Activity: 5
Merit: 0
July 18, 2010, 09:00:25 PM
Build went well. I'm getting a couple of non-fatal wxWidgets debug errors. The performance is less than half of what I got under Ubuntu, however, I'm pleased that your directions were so complete and I am now generating coins.

In your directions it doesn't remind one to change the build directory in the makefile, I missed this the first time.

If you are interested in the wxWidgets debug messages I would be glad to post them. This may be related: in Bitcoin there are two Apple logos, the menu is offset strangely.

full member
Activity: 199
Merit: 2011
July 17, 2010, 03:45:06 PM
Both, I have a 10.5 and a 10.6 machine both running it.  I suspect the problem is the processor.  Some of the frameworks and such have a CPUID check in them to prevent them from running on non-intel processors, from what I've heard.
Activity: 5
Merit: 0
July 17, 2010, 01:48:46 PM
Was your test machine 10.5.x or 10.6.x?
full member
Activity: 199
Merit: 2011
July 15, 2010, 09:09:57 PM
Try running it with 'bash' instead of 'sh'.. if that doesn't work try to execute the commands one at a time by hand.  I just linked em all together with those &&s but I think that's a bash thing.
Activity: 5
Merit: 0
July 15, 2010, 07:52:56 PM
Its an AMD x2 4200, custom build. Currently I have it running fine under WINE and generated my first coin within two hours!

I am still working on the native, however, and am stuck while trying to build wxWidgets. I know I must be doing something wrong. Here is a copy of the script I took from the directions.


cd "$PREFIX" &&
#svn checkout wxWidgets-trunk &&
cd "$SRCDIR" &&

[ -f include/wx/hashmap.h.orig ] || cp include/wx/hashmap.h include/wx/hashmap.h.orig &&
sed 's/if wxUSE_STL/if 0 \&\& wxUSE_STL/g' < include/wx/hashmap.h.orig > include/wx/hashmap.h &&

[ -f include/wx/hashset.h.orig ] || cp include/wx/hashset.h include/wx/hashset.h.orig &&
sed 's/if wxUSE_STL/if 0 \&\& wxUSE_STL/g' < include/wx/hashset.h.orig > include/wx/hashset.h &&

rm -vrf "$BUILDDIR" &&
mkdir "$BUILDDIR" &&
cd "$BUILDDIR" &&

../configure --prefix="$PREFIX" \
--with-osx_cocoa \
--disable-shared \
--disable-debug_flag \
--with-macosx-version-min=10.5 \
--enable-stl \
--enable-utf8 \
--enable-universal_binary \
--with-libjpeg=builtin \
--with-libpng=builtin \
--with-regex=builtin \
--with-libtiff=builtin \
--with-zlib=builtin \
--with-expat=builtin \
--with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk &&

find . -name Makefile |
while read i; do
  echo $i;
  sed 's/-arch i386/-arch i386 -arch x86_64/g' < "$i" > "$i".new &&
  mv "$i" "$i".old &&
  mv "$i".new "$i";

make &&
make install

And here is the console readout, it seems like I am missing an escape character somewhere or something.

admins-10:wxWidgets-trunk admin$ sh
: command not found
: No such file or directorytcoin/deps
: No such file or directorytcoin/deps
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
mkdir: ~/bitcoin/deps\r/wxWidgets-trunk\r: No such file or directory
: No such file or directoryitcoin/deps
: command not found line 21: ../configure: No such file or directory line 22: --with-osx_cocoa: command not found line 23: --disable-shared: command not found line 24: --disable-debug_flag: command not found line 25: --with-macosx-version-min=10.5: command not found line 26: --enable-stl: command not found line 27: --enable-utf8: command not found line 28: --enable-universal_binary: command not found line 29: --with-libjpeg=builtin: command not found line 30: --with-libpng=builtin: command not found line 31: --with-regex=builtin: command not found line 32: --with-libtiff=builtin: command not found line 33: --with-zlib=builtin: command not found line 34: --with-expat=builtin: command not found line 35: --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk: No such file or directory
: command not found
: command not found
: command not found line 50: syntax error: unexpected end of file

I do have Xcode and the SDK is where it should be. There is something more basic I'm missing. Sorry for hijacking my own thread...
full member
Activity: 199
Merit: 2011
July 15, 2010, 05:53:40 AM
What kind of computer is it?  I only tested on 10.5 with a core 2 duo based mac..
Activity: 5
Merit: 0
July 14, 2010, 11:50:10 PM
The prebuilt application does not seem to be loading in my configuration. Here is the error dump:

Process:         bitcoin [2417]
Path:            /Applications/
Identifier:      org.bitcoin.bitcoin
Version:         0.3 (1)
Code Type:       X86 (Native)
Parent Process:  launchd [607]

Interval Since Last Report:          4694828 sec
Crashes Since Last Report:           1669
Per-App Interval Since Last Report:  3 sec
Per-App Crashes Since Last Report:   2

Date/Time:       2010-07-14 22:07:11.406 -0700
OS Version:      Mac OS X 10.5.8 (9L31a)
Report Version:  6
Anonymous UUID:  A7C00234-5380-48A9-AE0F-A849306E52AF

Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Symbol not found: _fopen$UNIX2003
  Referenced from: /Applications/
  Expected in: /usr/lib/libSystem.B.dylib

A brief search of this error turned up issues regarding building in different environments. Before I attempt my own build, is there anyone who can shed light on this issue? Thanks.
Jump to: