Game Development Community

Error when building Linux Dedicated Server

by DavidRM · in Torque Game Engine · 07/26/2002 (11:10 am) · 10 replies

We're getting this error when we attempt to make the dedicated server on our Linux server:

Compiling platformX86UNIX/x86UNIXDedicatedStub.cc  
In file included from platformX86UNIX/x86UNIXDedicatedStub.cc:28:  
platformX86UNIX/glu_func.h:14: 'int (* gluProject)(double, double, double, const double *, const double *, const int *, GLdouble *, GLdouble *, GLdouble *)' redeclared as different kind of symbol  
platformX86UNIX/glu_func.h:14: previous declaration of 'int gluProject(double, double, double, const double *, const double *, const int *, GLdouble *, GLdouble *, GLdouble *)'  
platformX86UNIX/glu_func.h:15: 'int (* gluUnProject)(double, double, double, const double *, const double *, const int *, GLdouble *, GLdouble *, GLdouble *)' redeclared as different kind of symbol  
platformX86UNIX/glu_func.h:15: previous declaration of 'int gluUnProject(double, double, double, const double *, const double *, const int *, GLdouble *, GLdouble *, GLdouble *)'

We get that from our own source (which is merged with the HEAD daily), and from the current HEAD, as well.

We're kind of at a loss as to what needs to be done...

Any help would be appreciated.

-David

#1
07/26/2002 (1:53 pm)
Have you previously done a "non-dedicated" build with that same set of files? If so, then make sure that you do a "make clean" before you do "make dedicated".
#2
07/26/2002 (1:56 pm)
We doing a clean build. That's not the issue.

What we're seeing is that the macro "DEDICATED" doesn't seem to be defined during the make. Which is peculiar since it is a "make dedicated" that we're doing.

We're going to hardcode the #define and see how that works.

Thanks.

-David
#3
07/26/2002 (3:00 pm)
It looks like the dedicated build was broken by a previous checkin to the targets.torque.mk file. I'll have a fix checked in soon.
#4
07/26/2002 (3:06 pm)
I've checked in the fix. Please update targets.torque.mk and try it out.
#5
07/26/2002 (3:13 pm)
We'll do that now. Thanks a lot!

-David
#6
07/26/2002 (4:40 pm)
That did it. Thanks again.

-David
Samu Games
#7
07/26/2002 (6:29 pm)
John, similarly, shouldn't this line of targets.torque.mk:

$(DIR.OBJ)/$(EXE_NAME)$(EXT.EXE): CFLAGS += $(INCLUDES_$(OS))

read like this instead:

$(DIR.OBJ)/engine$(EXT.LIB): CFLAGS += -DTORQUE_MAX_LIB $(INCLUDES_$(OS))
#8
07/26/2002 (6:37 pm)
I don't know. What does TORQUE_MAX_LIB do?
#9
07/26/2002 (7:03 pm)
That caught my attention because that's another example of a symbol define that used to be there, but got erased in the last commit.

Looks like it affects ts/tsIntegerSet.h, ts/tsMesh.cc, ts/tsMesh.h, ts/tsShape.cc, and ts/tsShapeOldRead.cc... doing various things.
#10
08/21/2002 (8:17 pm)
The fix to this problem has been posted here --> www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=6674

Enjoy! :)