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
Contact:

Compiling problem on Tiger

Post by a monkey » Sat Jul 23, 2005 11:30 pm

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

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: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Post by JeffM » Sun Jul 24, 2005 4:29 pm

it works for me.

make sure you installed ALL of the dev packages, and make sure you have a clean set of source.

User avatar
a monkey
Private First Class
Private First Class
Posts: 49
Joined: Fri Jan 21, 2005 7:35 pm
Location: a banana tree
Contact:

Post by a monkey » Sun Jul 24, 2005 5:05 pm

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: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Post by JeffM » Sun Jul 24, 2005 5:31 pm

I allways install all the ones on the dev CD.

you need libCURL and SDL

User avatar
a monkey
Private First Class
Private First Class
Posts: 49
Joined: Fri Jan 21, 2005 7:35 pm
Location: a banana tree
Contact:

Post by a monkey » Sun Jul 24, 2005 6:39 pm

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: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Post by JeffM » Sun Jul 24, 2005 10:18 pm

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?

[tank explode];
Private
Private
Posts: 4
Joined: Fri Feb 11, 2005 1:10 am

Post by [tank explode]; » Wed Jul 27, 2005 3:09 am

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

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
Contact:

Post by a monkey » Sat Jul 30, 2005 1:37 am

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 » Sat Jul 30, 2005 2:45 am

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
Contact:

Post by a monkey » Sat Jul 30, 2005 5:05 am

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

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]; » Sat Jul 30, 2005 7:37 pm

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
Contact:

Post by a monkey » Sat Jul 30, 2005 8:10 pm

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]; » Sat Jul 30, 2005 11:38 pm

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 » Sun Jul 31, 2005 2:29 pm

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
Contact:

Post by a monkey » Sun Jul 31, 2005 3:20 pm

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
Contact:

Post by a monkey » Sun Jul 31, 2005 4:39 pm

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

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: 211
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma » Sun Aug 07, 2005 11:04 pm

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: 211
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma » Sun Aug 07, 2005 11:15 pm

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

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