Page 1 of 1

Compiling problem on Tiger

Posted: Sat Jul 23, 2005 11:30 pm
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?

Posted: Sun Jul 24, 2005 5:55 am
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

Posted: Sun Jul 24, 2005 4:29 pm
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.

Posted: Sun Jul 24, 2005 5:05 pm
by a monkey
Well, what dev packages do I need, anyways? Just SDL, right? I have that...

Posted: Sun Jul 24, 2005 5:31 pm
by JeffM
I allways install all the ones on the dev CD.

you need libCURL and SDL

Posted: Sun Jul 24, 2005 6:39 pm
by a monkey
Is libcurl-dev included in an installation of Mac OS X 10.4 Tiger? I know the configure script detected libcurl.

Posted: Sun Jul 24, 2005 10:18 pm
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?

Posted: Wed Jul 27, 2005 3:09 am
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....

Posted: Wed Jul 27, 2005 4:46 am
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

Posted: Sat Jul 30, 2005 1:37 am
by a monkey
I can't compile 2.0.2 stable or 2.0.3 (CVS). I get the same error on both.

Posted: Sat Jul 30, 2005 2:45 am
by A Meteorite
Make sure you're using an admin account. I can't compile anything at all without admin privs.

Posted: Sat Jul 30, 2005 5:05 am
by a monkey
<sigh/>Yep. I'm admin when I'm doing this stuff.

Posted: Sat Jul 30, 2005 5:40 am
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.

Posted: Sat Jul 30, 2005 7:37 pm
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.

Posted: Sat Jul 30, 2005 8:10 pm
by a monkey
Hmm, I'll have to try that.

Posted: Sat Jul 30, 2005 11:38 pm
by [tank explode];
I forgot to mention it was the CVS 2.0.3

Posted: Sun Jul 31, 2005 2:29 pm
by BinarySpike
Yes, for some reason config.sub and config.guess are dissapearing.
(Crystal Space and know BZFlag.... :?:)

Posted: Sun Jul 31, 2005 3:20 pm
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!

Posted: Sun Jul 31, 2005 4:39 pm
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.

Posted: Mon Aug 01, 2005 4:43 am
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

Posted: Sun Aug 07, 2005 11:04 pm
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.

Posted: Sun Aug 07, 2005 11:15 pm
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.

Posted: Sun Aug 21, 2005 9:46 pm
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.