Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Compile Problems   » cc1obj, cc1plus, and mozilla

UBBFriend: Email this page to someone!    
Author Topic: cc1obj, cc1plus, and mozilla
kilowatt
Junior Member
Member # 62

posted October 05, 2001 11:08 AM      Profile for kilowatt     Send New Private Message      Edit/Delete Post  Reply With Quote 
As many of you know, there are currently two distinctly different mozilla builds for the Mac OS X. One is basically the os9 version, ported/carbonized for Mac OS X. The other is the unix version, with a carbon frount end (why not cocoa... oh well).

I'm interested in building the unix-like version (http://www.mozilla.org/ports/fizzilla/Mach.html), but I can't get past this step. Step one says to update the compiler, and has two files listed that I need:
cc1obj, and cc1plus
But there are no links as to where to download them.

Does anyone know where to get cc1obj and cc1plus, and has anyone had any success with this branch?

Thanks in advanved, and macosx.forked.net ROCKS!


Posts: 13 | From: /dev | Registered: Aug 2001  |  IP: Logged
apex
Administrator
Member # 1

posted October 05, 2001 04:49 PM      Profile for apex   Email apex   Send New Private Message      Edit/Delete Post  Reply With Quote 
I believe Dev Tools should have installed them. Mine are located in /usr/libexec/ppc/2.95.2/
Posts: 307 | From: Alaska | Registered: Aug 2001  |  IP: Logged
kilowatt
Junior Member
Member # 62

posted October 11, 2001 06:36 PM      Profile for kilowatt     Send New Private Message      Edit/Delete Post  Reply With Quote 
well, gave it a try, and I'm getting ld errors, here's some info the compiler spat out:
c++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth -Wno-long-long -fpascal-strings -traditional-cpp -fno-common -I/Developer/Headers/FlatCarbon -F/System/Library/Frameworks -DDEBUG -DDEBUG_liggett -DTRACING -g -I/Developer/Headers/FlatCarbon -F/System/Library/Frameworks -arch ppc -compatibility_version 1 -current_version 1 -install_name @executable_path/libgfxxprint.dylib -o libgfxxprint.dylib ../xlibrgb/xlibrgb.o xprintutil.o xprintutil_printtofile.o nsDeviceContextXP.o nsFontMetricsXlib.o nsRenderingContextXlib.o nsGfxFactoryXP.o nsXPrintContext.o nsRegionXlib.o nsGCCache.o -framework Carbon -L/usr/X11R6/lib -lXp -lXext -lX11 -L../../../dist/bin -lxpcom -L../../../dist/bin -L/Users/liggett/Downloads/mozilla/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -bundle -L../../../dist/bin -L../../../dist/lib -lgkgfx -L../../../dist/bin -lxpcom -L../../../dist/bin -L/Users/liggett/Downloads/mozilla/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm
/usr/bin/ld: Undefined symbols:
_strtok_r
make[3]: *** [libgfxxprint.dylib] Error 1
make[3]: Leaving directory `/Users/liggett/Downloads/mozilla/mozilla/gfx/src/xprint'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/Users/liggett/Downloads/mozilla/mozilla/gfx/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/Users/liggett/Downloads/mozilla/mozilla/gfx'
make: *** [install] Error 2
make: Leaving directory `/Users/liggett/Downloads/mozilla/mozilla'


It compiled LOTS of stuff... I mean, it was compiling file after file for over 1/2 hour.

I think ld has something to do with linking binaries together or something... I'm no expert. Anyway, at the Fizilla/mach home page, they say " Update the compiler. There is a bug in the linker on OSX 10.0.4 and 10.1." and, still, the links are non-existant. I've got the newest dev tools installed, too.

Thanks for all your help and support, macosx.forked.net


Posts: 13 | From: /dev | Registered: Aug 2001  |  IP: Logged
apex
Administrator
Member # 1

posted October 11, 2001 08:57 PM      Profile for apex   Email apex   Send New Private Message      Edit/Delete Post  Reply With Quote 
Try replacing all occurances of strok_r() with strtok(). You will need to remove the last argument from strtok_r() when you change it.
code:

grep -r strtok_r src/


sample:
code:

token = strtok_r(NULL, " ", &blah);


becomes
code:

token = strtok(NULL, " ");

good luck

[ October 11, 2001: Message edited by: apex ]


Posts: 307 | From: Alaska | Registered: Aug 2001  |  IP: Logged
kilowatt
Junior Member
Member # 62

posted October 11, 2001 09:24 PM      Profile for kilowatt     Send New Private Message      Edit/Delete Post  Reply With Quote 
heh, "good luck"...

only like 30 files, or 45 occurances.. oh well ;-) no time like the present. I've got a few questions on how to edit a few calls, but I'll ask ya when I get to them.

Thanks, you da man!


Posts: 13 | From: /dev | Registered: Aug 2001  |  IP: Logged
apex
Administrator
Member # 1

posted October 11, 2001 09:34 PM      Profile for apex   Email apex   Send New Private Message      Edit/Delete Post  Reply With Quote 
I just ported gawk, you could change all your occurances at once hehe.
Posts: 307 | From: Alaska | Registered: Aug 2001  |  IP: Logged
kilowatt
Junior Member
Member # 62

posted October 11, 2001 09:53 PM      Profile for kilowatt     Send New Private Message      Edit/Delete Post  Reply With Quote 
someone suggested I try and impliment strtok_r instead of replacing it everywhere. I think I'm going to just replace it, though... my head hurts already

piece man


Posts: 13 | From: /dev | Registered: Aug 2001  |  IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2