m0gely | 7 May 2005 03:46

Need help compiling AQ2

I downloaded the source for Action Quake 2 so I could but am unable to 
compile it.  I've tried make and gmake but in either case it looks like 
something's not happy with 'q_shared.c'.  Any suggestions?

<snip>
gcc -Dstricmp=strcasecmp -g -fPIC -o p_view.o -c p_view.c
gcc -Dstricmp=strcasecmp -g -fPIC -o p_weapon.o -c p_weapon.c
gcc -Dstricmp=strcasecmp -g -fPIC -o q_shared.o -c q_shared.c
q_shared.c: In function `__declspec':
q_shared.c:401: syntax error before `{'
q_shared.c:403: storage class specified for parameter `Ljmptab'
q_shared.c:405: syntax error before `__asm'
q_shared.c:643: syntax error before `for'
q_shared.c:745: syntax error before `{'
q_shared.c:749: syntax error before `length'
q_shared.c:825: syntax error before `while'
q_shared.c:927: syntax error before `{'
q_shared.c:972: syntax error before `}'
q_shared.c:1035: storage class specified for parameter `string'
q_shared.c:1037: syntax error before `('
q_shared.c:1055: syntax error before `{'
q_shared.c:1060: syntax error before `data'
q_shared.c:1145: syntax error before `{'
q_shared.c:1212: syntax error before `('
q_shared.c:1239: storage class specified for parameter `value'
q_shared.c:1241: storage class specified for parameter `valueindex'
q_shared.c:1244: syntax error before `valueindex'
q_shared.c:1282: conflicting types for `value'
q_shared.c:1239: previous declaration of `value'
q_shared.c:1283: redeclaration of `o'
(Continue reading)

Nick Warne | 7 May 2005 10:52

Re: Need help compiling AQ2

On Saturday 07 May 2005 02:46, m0gely wrote:
> I downloaded the source for Action Quake 2 so I could but am unable to
> compile it.  I've tried make and gmake but in either case it looks like
> something's not happy with 'q_shared.c'.  Any suggestions?

Where did you get the source from?  I just tried to download it to see, and:

a)  There is no source code for the game

b)  The server code is available, but the web server is broke and shows the 
perl code as text, so there is no links.

Location of source code?

Nick
--

-- 
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."

qudos qudos | 7 May 2005 11:41
Picon

Re: Need help compiling AQ2

Hi,

I have the sources and also the data, the sources compiles fine for me.

Right now transfering to my site, ~10 minutes and can be it downloaded.

Keep an eye htttp://qudos.quakedev.com/linux/quake2/mods/

<ot>
Someone want to test my experiment? grab the Lights mod :)
</ot>

Cheers

2005/5/7, Nick Warne <nick <at> linicks.net>:
> On Saturday 07 May 2005 02:46, m0gely wrote:
> > I downloaded the source for Action Quake 2 so I could but am unable to
> > compile it.  I've tried make and gmake but in either case it looks like
> > something's not happy with 'q_shared.c'.  Any suggestions?
> 
> Where did you get the source from?  I just tried to download it to see, and:
> 
> a)  There is no source code for the game
> 
> b)  The server code is available, but the web server is broke and shows the
> perl code as text, so there is no links.
> 
> Location of source code?
> 
> Nick
(Continue reading)

m0gely | 7 May 2005 23:42

Re: Need help compiling AQ2

Nick Warne wrote:

> Where did you get the source from?  I just tried to download it to see, and:
> 
> a)  There is no source code for the game
> 
> b)  The server code is available, but the web server is broke and shows the 
> perl code as text, so there is no links.
> 
> Location of source code?

I googled for the file names listed on the page.  I downloaded from two 
seprate sites and they had the same md5.  One link was listed on a File 
planet like site, the other was a link in the quakedev forums.  I forgot 
to mention I'm building this on FreeBSD.

Sheesh.  My server just took a complete dive.  I was going to compile 
the files from qudos site just to see if I got the same error.  I'm 
pretty sure the source files I got are the right one's though.  This 
will have to wait a few days.

--

-- 
- m0gely
http://quake2.telestream.com/
Q2 | Q3A | Counter-strike

m0gely | 15 May 2005 09:00

Re: Need help compiling AQ2

qudos qudos wrote:

> Hi,
> 
> I have the sources and also the data, the sources compiles fine for me.

How did you compile?  I tried your file and it's the same as the one I 
had.  The entire output is here.  Again, this is under FreeBSD 4.11 with 
RH9  Linux compat installed:

%gmake
gcc -Dstricmp=strcasecmp -g -fPIC -o g_ai.o -c g_ai.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_cmds.o -c g_cmds.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_combat.o -c g_combat.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_func.o -c g_func.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_items.o -c g_items.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_main.o -c g_main.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_misc.o -c g_misc.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_monster.o -c g_monster.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_phys.o -c g_phys.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_save.o -c g_save.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_spawn.o -c g_spawn.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_svcmds.o -c g_svcmds.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_target.o -c g_target.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_trigger.o -c g_trigger.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_turret.o -c g_turret.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_utils.o -c g_utils.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_weapon.o -c g_weapon.c
gcc -Dstricmp=strcasecmp -g -fPIC -o g_chase.o -c g_chase.c
gcc -Dstricmp=strcasecmp -g -fPIC -o p_client.o -c p_client.c
(Continue reading)

Nick Warne | 15 May 2005 09:24

Re: Need help compiling AQ2

On Sunday 15 May 2005 08:00, m0gely wrote:
> qudos qudos wrote:
> > Hi,
> >
> > I have the sources and also the data, the sources compiles fine for me.
>
> How did you compile?  I tried your file and it's the same as the one I
> had.  The entire output is here.  Again, this is under FreeBSD 4.11 with
> RH9  Linux compat installed:

This is a FreeBSD problem.

To fix, in q_shared.c line 330:

#if !id386 || defined __linux__

change to this:

#if !id386 || defined __linux__ || defined __FreeBSD__

It all builds OK then on FreeBSD.

Nick
--

-- 
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."

x0563511 | 15 May 2005 16:12
Picon

Re: Need help compiling AQ2

That change should be updated into CVS. It (shouldn't) hurt anything at
all, and only helps those running FreeBSD. What about the other BSDs
though? I hardly know any code, and what I know is C++ anyways.

Nick Warne wrote:
> On Sunday 15 May 2005 08:00, m0gely wrote:
> 
>>qudos qudos wrote:
>>
>>>Hi,
>>>
>>>I have the sources and also the data, the sources compiles fine for me.
>>
>>How did you compile?  I tried your file and it's the same as the one I
>>had.  The entire output is here.  Again, this is under FreeBSD 4.11 with
>>RH9  Linux compat installed:
> 
> 
> This is a FreeBSD problem.
> 
> To fix, in q_shared.c line 330:
> 
> #if !id386 || defined __linux__
> 
> change to this:
> 
> #if !id386 || defined __linux__ || defined __FreeBSD__
> 
> It all builds OK then on FreeBSD.
> 
(Continue reading)

Nick Warne | 15 May 2005 16:20

Re: Need help compiling AQ2

On Sunday 15 May 2005 15:12, x0563511 wrote:
> That change should be updated into CVS. It (shouldn't) hurt anything at
> all, and only helps those running FreeBSD. What about the other BSDs
> though? I hardly know any code, and what I know is C++ anyways.

I don't think it will, but the *other* BSD's are security conscious types, and 
therefore you will presume they would never run a Quake2 client/server on 
them anyway (I hope).

Add it in... this is a gotcha for FreeBSD that needs sorting.

Nick

> > This is a FreeBSD problem.
> >
> > To fix, in q_shared.c line 330:
> >
> > #if !id386 || defined __linux__
> >
> > change to this:
> >
> > #if !id386 || defined __linux__ || defined __FreeBSD__
> >
> > It all builds OK then on FreeBSD.
> >
> > Nick

--

-- 
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
(Continue reading)

Brendan Burns | 15 May 2005 19:02
Picon

Re: Need help compiling AQ2

Thanks,
I'll add this into CVS...

--brendan

On May 15, 2005, at 10:20 AM, Nick Warne wrote:

> On Sunday 15 May 2005 15:12, x0563511 wrote:
>
>> That change should be updated into CVS. It (shouldn't) hurt  
>> anything at
>> all, and only helps those running FreeBSD. What about the other BSDs
>> though? I hardly know any code, and what I know is C++ anyways.
>>
>
> I don't think it will, but the *other* BSD's are security conscious  
> types, and
> therefore you will presume they would never run a Quake2 client/ 
> server on
> them anyway (I hope).
>
> Add it in... this is a gotcha for FreeBSD that needs sorting.
>
> Nick
>
>
>>> This is a FreeBSD problem.
>>>
>>> To fix, in q_shared.c line 330:
>>>
(Continue reading)

m0gely | 15 May 2005 19:13

Re: Need help compiling AQ2

Nick Warne wrote:

> To fix, in q_shared.c line 330:
> 
> #if !id386 || defined __linux__
> 
> change to this:
> 
> #if !id386 || defined __linux__ || defined __FreeBSD__
> 
> It all builds OK then on FreeBSD.

Thanks Nick!  This list is very helpful!

--

-- 
- m0gely
http://quake2.telestream.com/
Q2 | Q3A | Counter-strike


Gmane