Building from SVN fails

Discussion and announcements regarding the Mac port… er, original version of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
goran
---- E L I T E ----
---- E L I T E ----
Posts: 294
Joined: Sat Feb 23, 2008 12:32 am
Location: Zagreb, Croatia
Contact:

Building from SVN fails

Post by goran »

First, many thanks for a great game. I used to play elite on my speccy twentysXXX, ahhh, a long time ago, and oolite is a great time-traveling machine to those good old days. :)

And now the problem. After my first build of oolite from SVN repository, every new try is failing with:

Ld /Users/goran/Documents/projects/TestRelease/Oolite.app/Contents/MacOS/Oolite normal ppc
cd "/Users/goran/Desktop/oolite svn"
/usr/bin/gcc-4.0 -o /Users/goran/Documents/projects/TestRelease/Oolite.app/Contents/MacOS/Oolite -L/Users/goran/Documents/projects/TestRelease -L/Users/goran/Desktop/oolite\ svn/deps/Cocoa-deps/Ogg\ Vorbis -F/Users/goran/Documents/projects/TestRelease -F/Users/goran/Desktop/oolite\ svn/deps/Cocoa-deps -filelist /Users/goran/Documents/projects/Oolite.build/TestRelease/Oolite.build/Objects-normal/ppc/Oolite.LinkFileList -framework Carbon -framework Cocoa -framework OpenGL -framework CoreAudio -framework AudioToolbox -framework AudioUnit -lVorbisAll -lpng -lz -lOgg /Users/goran/Desktop/oolite\ svn/build/TestRelease/libjs.a -arch ppc -exported_symbols_list src/Cocoa/debug-exports.exp -Wl,-Y,1455 -mmacosx-version-min=10.3 -Wl,-dead_strip
/usr/bin/ld: Undefined symbols:
_InitOOJSSpecialFunctions
_JSSpecialFunctionsObjectWrapper
/Users/goran/Documents/projects/Oolite.build/TestRelease/Oolite.build/Objects-normal/ppc/OOJavaScriptEngine.o reference to undefined _InitOOJSSpecialFunctions
/Users/goran/Documents/projects/Oolite.build/TestRelease/Oolite.build/Objects-normal/ppc/OOJavaScriptEngine.o reference to undefined _JSSpecialFunctionsObjectWrapper
/Users/goran/Documents/projects/Oolite.build/TestRelease/Oolite.build/Objects-normal/ppc/OODebugMonitor.o reference to undefined _JSSpecialFunctionsObjectWrapper
collect2: ld returned 1 exit status

First I tried with update, and then with a complete SVN checkout but still nothing. Couple of versions later nothing changed so i decided to post my first thread here.

iMac G5, OSX 10.4.11, xcode 2.4.1 (will be 2.5 tomorrow)

Best regards to all brave captains in the ooniverse. :)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

After a bit of head-scratching, I think I know what’s happening: there is a conflict between your version of the Xcode project file and the one in SVN, and SVN can’t merge them.

The easiest fix is to delete Oolite.xcodeproj (or more specifically Oolite.xcodeproj/project.pbxproj) and svn update. The second-easiest way is to just add OOJSSpecialFunctions.m to the project (it’s in src/Core/Scripting/).
User avatar
goran
---- E L I T E ----
---- E L I T E ----
Posts: 294
Joined: Sat Feb 23, 2008 12:32 am
Location: Zagreb, Croatia
Contact:

Post by goran »

Thanks. I started from scratch and (after remembering to DL libpng and crashreporter) new build is up and running.

Just two things. If I choose to build UB, building fails on libVorbisAll. If I deselect Intel, all is OK.

And the other one, there is no bounty awarded for killing offenders, fugitives, thargoids (bounty: 0)... Known bug?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

gorans wrote:
Just two things. If I choose to build UB, building fails on libVorbisAll. If I deselect Intel, all is OK.
Fails how? Please paste the build transcript. (Xcode build window, bottom left corner, button with little rows of text on it)
And the other one, there is no bounty awarded for killing offenders, fugitives, thargoids (bounty: 0)... Known bug?
Hmm, no. Works here.
User avatar
goran
---- E L I T E ----
---- E L I T E ----
Posts: 294
Joined: Sat Feb 23, 2008 12:32 am
Location: Zagreb, Croatia
Contact:

Post by goran »

Ld /Users/goran/Documents/projects/Oolite.build/TestRelease/Oolite.build/Objects-normal/i386/Oolite normal i386
cd "/Users/goran/Desktop/oolite svn"
/Developer/usr/bin/gcc-4.0 -o /Users/goran/Documents/projects/Oolite.build/TestRelease/Oolite.build/Objects-normal/i386/Oolite -L/Users/goran/Documents/projects/TestRelease -L/Users/goran/Desktop/oolite\ svn/deps/Cocoa-deps/Ogg\ Vorbis -F/Users/goran/Documents/projects/TestRelease -F/Users/goran/Desktop/oolite\ svn/deps/Cocoa-deps -filelist /Users/goran/Documents/projects/Oolite.build/TestRelease/Oolite.build/Objects-normal/i386/Oolite.LinkFileList -framework Carbon -framework Cocoa -framework OpenGL -framework CoreAudio -framework AudioToolbox -framework AudioUnit -lVorbisAll -lpng -lz -lOgg /Users/goran/Desktop/oolite\ svn/build/TestRelease/libjs.a -arch i386 -exported_symbols_list src/Cocoa/debug-exports.exp -Wl,-Y,1455 -mmacosx-version-min=10.4 -Wl,-dead_strip /Users/goran/Desktop/oolite\ svn/deps/Cocoa-deps/Smart\ Crash\ Reports\ SDK/SmartCrashReportsInstall.o -framework Security -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libOgg.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/Developer/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_ogg_page_continued
_ogg_page_eos
_ogg_page_granulepos
_ogg_page_serialno
_ogg_stream_clear
_ogg_stream_init
_ogg_stream_packetout
_ogg_stream_packetpeek
_ogg_stream_pagein
_ogg_stream_reset
_ogg_stream_reset_serialno
_ogg_sync_buffer
_ogg_sync_clear
_ogg_sync_init
_ogg_sync_pageseek
_ogg_sync_reset
_ogg_sync_wrote
_oggpack_writeclear
_oggpack_writeinit
_oggpack_read
_oggpack_readinit
_oggpack_write
_oggpack_adv
_oggpack_look
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_page_continued
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_page_eos
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_page_granulepos
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_page_serialno
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_stream_clear
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_stream_init
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_stream_packetout
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_stream_packetpeek
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_stream_pagein
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_stream_reset
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_stream_reset_serialno
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_sync_buffer
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_sync_clear
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_sync_init
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_sync_pageseek
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_sync_reset
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(vorbisfile.o) reference to undefined _ogg_sync_wrote
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(analysis.o) reference to undefined _oggpack_bytes
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(analysis.o) reference to undefined _oggpack_get_buffer
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(analysis.o) reference to undefined _oggpack_reset
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(block.o) reference to undefined _oggpack_writeclear
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(block.o) reference to undefined _oggpack_writeinit
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(info.o) reference to undefined _oggpack_bytes
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(info.o) reference to undefined _oggpack_read
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(info.o) reference to undefined _oggpack_readinit
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(info.o) reference to undefined _oggpack_reset
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(info.o) reference to undefined _oggpack_write
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(info.o) reference to undefined _oggpack_writeclear
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(info.o) reference to undefined _oggpack_writeinit
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(synthesis.o) reference to undefined _oggpack_read
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(synthesis.o) reference to undefined _oggpack_readinit
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(bitrate.o) reference to undefined _oggpack_bytes
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(bitrate.o) reference to undefined _oggpack_get_buffer
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(bitrate.o) reference to undefined _oggpack_write
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(bitrate.o) reference to undefined _oggpack_writetrunc
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(codebook.o) reference to undefined _oggpack_adv
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(codebook.o) reference to undefined _oggpack_look
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(codebook.o) reference to undefined _oggpack_read
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(codebook.o) reference to undefined _oggpack_write
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(floor0.o) reference to undefined _oggpack_read
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(floor1.o) reference to undefined _oggpack_read
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(floor1.o) reference to undefined _oggpack_write
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(mapping0.o) reference to undefined _oggpack_read
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(mapping0.o) reference to undefined _oggpack_write
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(res0.o) reference to undefined _oggpack_read
/Users/goran/Desktop/oolite svn/deps/Cocoa-deps/Ogg Vorbis/libVorbisAll.a(res0.o) reference to undefined _oggpack_write
collect2: ld returned 1 exit status

On the second problem, all ships in shipyard has price 0 in info. Up, in the list, prices are good.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

A third-party application has installed a PowerPC-only copy of libOgg.dylib in /usr/local/lib. I’ve checked in an updated project that should avoid the problem.
On the second problem, all ships in shipyard has price 0 in info. Up, in the list, prices are good.
Hmm. I’m not seeing this either. How do you feel about doing the OXP-swapping dance? :-)
User avatar
nijineko
---- E L I T E ----
---- E L I T E ----
Posts: 353
Joined: Wed Jul 04, 2007 3:37 pm
Location: two strange quarks short of a graviton....
Contact:

Post by nijineko »

i know some nice music to drive the mind-numbing-ness of the task well and truly home, should you like. :wink:
arukibito ga michi wo erabu no ka, michi ga arukibito wo erabu no deshou ka?

Image
Play games. Win Amazon gift cards! Brag. Repeat.
User avatar
goran
---- E L I T E ----
---- E L I T E ----
Posts: 294
Joined: Sat Feb 23, 2008 12:32 am
Location: Zagreb, Croatia
Contact:

Post by goran »

nijineko wrote:
i know some nice music to drive the mind-numbing-ness of the task well and truly home, should you like. :wink:
No need, 'couse the same thing (bounty 0, but money awarded and price 0 in ship info) happens without any OXP installed. :)

But Ahruman concluded that my iMac is broken so it's all behind us now. 8)
User avatar
TGHC
---- E L I T E ----
---- E L I T E ----
Posts: 2157
Joined: Mon Jan 31, 2005 4:16 pm
Location: Berkshire, UK

Post by TGHC »

gorans wrote:
But Ahruman concluded that my iMac is broken so it's all behind us now. 8)
KerChing!
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
Post Reply