Compiling problem on Tiger

Questions or HOWTOs about the above? Post 'em here...
Post Reply
User avatar
a monkey
Private First Class
Private First Class
Posts: 49
Joined: Fri Jan 21, 2005 7:35 pm
Location: a banana tree

Compiling problem on Tiger

Post by a monkey »

I'm on Mac OS X 10.4 Tiger, to let you know. I try and compile BZFlag, look what I get after 'make':

Code: Select all

Making all in data
Making all in l10n
make[2]: Nothing to be done for `all'.
Making all in fonts
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
Making all in doc
Making all in man
make[2]: Nothing to be done for `all'.
Making all in faq
make[2]: Nothing to be done for `all'.
Making all in guide
Making all in Commands
make[3]: Nothing to be done for `all'.
Making all in Flags
make[3]: Nothing to be done for `all'.
Making all in Geometry
make[3]: Nothing to be done for `all'.
Making all in Installation
make[3]: Nothing to be done for `all'.
Making all in Tactics
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in howto
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.
Making all in include
make  all-am
make[2]: Nothing to be done for `all-am'.
Making all in man
make[1]: Nothing to be done for `all'.
Making all in package
make[2]: Nothing to be done for `all-am'.
Making all in src
Making all in 3D
if g++ -DHAVE_CONFIG_H -I. -I. -I../../include  -I../../include -pipe -ansi -pedantic -fno-exceptions -W -Wall -Wundef -Wstrict-prototypes  -g -O2 -DBZ_BUILD_DATE=20050723 -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -fno-exceptions -MT BitmapFont.o -MD -MP -MF ".deps/BitmapFont.Tpo" \
  -c -o BitmapFont.o `test -f 'BitmapFont.cxx' || echo './'`BitmapFont.cxx; \
then mv -f ".deps/BitmapFont.Tpo" ".deps/BitmapFont.Po"; \
else rm -f ".deps/BitmapFont.Tpo"; exit 1; \
fi
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
/usr/include/sys/time.h:241: error: `fd_set' has not been declared
/usr/include/sys/time.h:241: error: `fd_set' has not been declared
/usr/include/sys/time.h:242: error: `fd_set' has not been declared
/usr/include/sys/select.h:153: error: `fd_set' has not been declared
/usr/include/sys/select.h:153: error: `fd_set' has not been declared
/usr/include/sys/select.h:154: error: `fd_set' has not been declared
/usr/include/sys/select.h:157: error: `fd_set' has not been declared
/usr/include/sys/select.h:157: error: `fd_set' has not been declared
/usr/include/sys/select.h:158: error: `fd_set' has not been declared
make[2]: *** [BitmapFont.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Can anybody help?
Image
May the source be with you.
Come to the dark side. We have cookies!
[tank explode];
Private
Private
Posts: 4
Joined: Fri Feb 11, 2005 1:10 am

Post by [tank explode]; »

I get the exact same errors. I tried using gcc_select to use gcc 3.3 but i just get different errors.


this post was 0% helpful
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

it works for me.

make sure you installed ALL of the dev packages, and make sure you have a clean set of source.
ImageJeffM
User avatar
a monkey
Private First Class
Private First Class
Posts: 49
Joined: Fri Jan 21, 2005 7:35 pm
Location: a banana tree

Post by a monkey »

Well, what dev packages do I need, anyways? Just SDL, right? I have that...
Last edited by a monkey on Thu Aug 04, 2005 6:35 pm, edited 1 time in total.
Image
May the source be with you.
Come to the dark side. We have cookies!
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

I allways install all the ones on the dev CD.

you need libCURL and SDL
ImageJeffM
User avatar
a monkey
Private First Class
Private First Class
Posts: 49
Joined: Fri Jan 21, 2005 7:35 pm
Location: a banana tree

Post by a monkey »

Is libcurl-dev included in an installation of Mac OS X 10.4 Tiger? I know the configure script detected libcurl.
Last edited by a monkey on Thu Aug 04, 2005 6:39 pm, edited 1 time in total.
Image
May the source be with you.
Come to the dark side. We have cookies!
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

the error you are geting is in a system header
"/usr/include/sys/time.h"

that is NOT bzflag code. something is not set correctly in your build system.

what version are you trying to build?
ImageJeffM
[tank explode];
Private
Private
Posts: 4
Joined: Fri Feb 11, 2005 1:10 am

Post by [tank explode]; »

I'm using bzflag2.0.2. A Monkey is probably using the same.

Ok, taking into consideration what you said about something not being set correctly in the build system, I added this little bit in the make file at /src/3d where BitmapFont.cxx is:

SDK=/Developer/SDKs/MacOSX10.4.0.sdk
CFLAGS= -isysroot ${SDK}
LDFLAGS= -isysroot ${SDK} -syslibroot ${SDK}

//-isysroot and -syslibroot aren't documented in the gcc4.0 man page.

I tried building with MacOSX10.4u.sdk, MacOSX10.4.0.sdk, MacOSX10.3.9.sdk, and MacOSX10.2.8.sdk

with 10.3.9 i get

/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/4.0/c++/limits:996: error: floating-point literal cannot appear in a constant-expression
/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/4.0/c++/limits:1009: error: field initializer is not constant
/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/4.0/c++/limits:1052: error: floating-point literal cannot appear in a constant-expression
/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/4.0/c++/limits:1065: error: field initializer is not constant
/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/4.0/c++/limits:1108: error: floating-point literal cannot appear in a constant-expression
/Developer/SDKs/MacOSX10.3.9.sdk/usr/include/gcc/darwin/4.0/c++/limits:1122: error: field initializer is not constant

10.4 and 10.4u gave the same "fd_set has not been declared" errors

/Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/time.h:241: error: 'fd_set' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/time.h:241: error: 'fd_set' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/time.h:242: error: 'fd_set' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/select.h:153: error: 'fd_set' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/select.h:153: error: 'fd_set' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/select.h:154: error: 'fd_set' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/select.h:157: error: 'fd_set' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/select.h:157: error: 'fd_set' has not been declared
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/select.h:158: error: 'fd_set' has not been declared

oh well....
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

Actually I can't ever compile the stable 2.0.2. But I can compile CVS just fine. :roll: On Mac OS X 10.4. Oh well, CVS is much better. :D
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
User avatar
a monkey
Private First Class
Private First Class
Posts: 49
Joined: Fri Jan 21, 2005 7:35 pm
Location: a banana tree

Post by a monkey »

I can't compile 2.0.2 stable or 2.0.3 (CVS). I get the same error on both.
Last edited by a monkey on Thu Aug 04, 2005 6:38 pm, edited 1 time in total.
Image
May the source be with you.
Come to the dark side. We have cookies!
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

Make sure you're using an admin account. I can't compile anything at all without admin privs.
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
User avatar
a monkey
Private First Class
Private First Class
Posts: 49
Joined: Fri Jan 21, 2005 7:35 pm
Location: a banana tree

Post by a monkey »

<sigh/>Yep. I'm admin when I'm doing this stuff.
Last edited by a monkey on Thu Aug 04, 2005 6:38 pm, edited 1 time in total.
Image
May the source be with you.
Come to the dark side. We have cookies!
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

Wow, you got some compiling problems I would say! Not sure what I can do for you, except install all dev packages and SDL.
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
[tank explode];
Private
Private
Posts: 4
Joined: Fri Feb 11, 2005 1:10 am

Post by [tank explode]; »

SUCCESS!!!!!, but not without a few minor problems.

When I first tried ./configure it complained there was not a config.sub file. So I copied config.sub from the 2.0.2 release. Next it complained there was not a config.guess file so I copied that file from the 2.0.2 release also. That was it, now it works.
User avatar
a monkey
Private First Class
Private First Class
Posts: 49
Joined: Fri Jan 21, 2005 7:35 pm
Location: a banana tree

Post by a monkey »

Hmm, I'll have to try that.
Last edited by a monkey on Thu Aug 04, 2005 6:38 pm, edited 1 time in total.
Image
May the source be with you.
Come to the dark side. We have cookies!
[tank explode];
Private
Private
Posts: 4
Joined: Fri Feb 11, 2005 1:10 am

Post by [tank explode]; »

I forgot to mention it was the CVS 2.0.3
User avatar
BinarySpike
Corporal
Corporal
Posts: 735
Joined: Mon Mar 28, 2005 11:58 pm
Contact:

Post by BinarySpike »

Yes, for some reason config.sub and config.guess are dissapearing.
(Crystal Space and know BZFlag.... :?:)
User avatar
a monkey
Private First Class
Private First Class
Posts: 49
Joined: Fri Jan 21, 2005 7:35 pm
Location: a banana tree

Post by a monkey »

I tried checking out the latest CVS, adding config.sub and config.guess, and using that. I just get a set of completely new errors during the compilation... :? I give up!
Last edited by a monkey on Thu Aug 04, 2005 6:38 pm, edited 1 time in total.
Image
May the source be with you.
Come to the dark side. We have cookies!
User avatar
a monkey
Private First Class
Private First Class
Posts: 49
Joined: Fri Jan 21, 2005 7:35 pm
Location: a banana tree

Post by a monkey »

Here's the error, if anyone wants to see what they can make of it:

Code: Select all

SDLMain.m:8:21: error: SDL/SDL.h: No such file or directory
SDLMain.m: In function '-[SDLApplication terminate:]':
SDLMain.m:41: error: 'SDL_Event' undeclared (first use in this function)
SDLMain.m:41: error: (Each undeclared identifier is reported only once
SDLMain.m:41: error: for each function it appears in.)
SDLMain.m:41: error: parse error before "event"
SDLMain.m:42: error: 'event' undeclared (first use in this function)
SDLMain.m:42: error: 'SDL_QUIT' undeclared (first use in this function)
SDLMain.m:43: warning: implicit declaration of function 'SDL_PushEvent'
SDLMain.m:39: warning: unused parameter 'sender'
SDLMain.m: In function 'CustomApplicationMain':
SDLMain.m:156: warning: unused parameter 'argc'
SDLMain.m:156: warning: unused parameter 'argv'
SDLMain.m: In function '-[SDLMain applicationDidFinishLaunching:]':
SDLMain.m:196: warning: implicit declaration of function 'SDL_main'
SDLMain.m:184: warning: unused parameter 'note'
make[3]: *** [SDLMain.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
I've got SDL 1.2.8 installed from source, if you're wondering.
Last edited by a monkey on Thu Aug 04, 2005 6:37 pm, edited 1 time in total.
Image
May the source be with you.
Come to the dark side. We have cookies!
temporal distraction
Sergeant
Sergeant
Posts: 250
Joined: Wed Jan 05, 2005 3:12 pm

Post by temporal distraction »

In my first attempt to build (from the CVS) i cannot get past the ./configure; make step

I get this error:
BZFlag-2.0.3.20050801
configure: error: cannot run /bin/sh ./config.sub
make: *** No targets specified and no makefile found. Stop.


Just the first two lines of the error if I enter just ./configure

OSX 10.4.2 - installed the whole xcode package.

Is this a basic error - got an idea of the next step? TIA
Enigma
Private First Class
Private First Class
Posts: 212
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma »

Temporal just get the 2.0.2 source and copy config.sub and config.guess from there to your 2.0.3 directory

A Monkey, it's obvious, SDL/SDL.h: No such file or directory.

SDL.framework should be in /library/frameworks. I used the regular release and everything worked ok.
Enigma
Private First Class
Private First Class
Posts: 212
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma »

oh yes and i'm pretty sure your binary will be in /bzflag2.0.3/src/bzflag/. Just move it to /bzflag2.0.3/data/ to run it.
User avatar
TD-Linux
Sergeant
Sergeant
Posts: 724
Joined: Wed Apr 27, 2005 8:26 pm
Location: Mountain View, CA

Post by TD-Linux »

When you download CVS, type this into the shell first:
sh autogen.sh
Are you doing that? That will create a bunch of configure files, probably the ones that you are missing.
Post Reply