Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] Re: Problem Compiling Client Under OpenVMS With DEC
Home

[Freeciv-Dev] Re: Problem Compiling Client Under OpenVMS With DEC

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: kaufman@xxxxxxxxxxxxxxxxxxxxxx, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Problem Compiling Client Under OpenVMS With DEC C.
From: Robert Alan Byer <byer@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 8 Oct 2002 13:26:50 -0500

-----BEGIN PGP SIGNED MESSAGE-----

>>
>>>alternately, a quicker method would be to put something like:
>>>
>>>#ifndef FC__ATTRIBUTE_H
>>>#error
>>>#endif
>>>
>>>at around line 33 of client/attribute.c
>>>
>>
>>
>> Well, I'll leave it up to you guys to figure out how to best handle this
>> problem, hopefully it will get resolved soon so I can test out the
>> civclient on OpenVMS and submit any changes.
>
>What happens if you put those three lines in client/attribute.c, line 33
>(or somewhere below '#include "attribute.h"')?  If Mike's suspicion is
>correct (which I think it is), the #error directive should cause a
>compile error.
>
>If this is the problem, it should be easily fixed.
>

With the above three lines inserted at line 33 in 
../freeciv/client/attribute.c I get the following....

===========================================================================

#include <string.h>
#include <assert.h>

#include "clinet.h"
#include "dataio.h"
#include "fcintl.h"
#include "game.h"
#include "hash.h"
#include "log.h"
#include "mem.h"
#include "packets.h"

#include "attribute.h"

#define ATTRIBUTE_LOG_LEVEL     LOG_DEBUG

#ifndef FC__ATTRIBUTE_H
#error
#endif

static struct hash_table *attribute_hash = NULL;


===========================================================================

$ @VMS_BUILD CIVCLIENT NODEBUG PRE_DECC_V6_2

No Debugger Information Will Be Produced During Compile.
Compiling With Compiler Optimization.
Compiling With Pre DEC C v6.2 Support.
Checking Files.
Checking Directories.
Compiling On A AXP Machine.
Checking Library Logicals.

Can't Find The SYS$DISK:[-.COMMON]COMMONLIB-AXP.OLB Library.  Since It Is
Needed To Build The GTK CIVCLIENT Executable We Will Compile It Now.

Compling The SYS$DISK:[-.COMMON]COMMONLIB-AXP.OLB Library.
Using Compile Command: CC/PREFIX=ALL/OPTIMIZE=(LEVEL=5,TUNE=HOST)/ARCH=HOST
/NODE
BUG/REENTRANCY=MULTITHREAD/FLOAT=IEEE_FLOAT/IEEE_MODE=DENORM_RESULTS/NEST=
PRIMAR
Y/NAME=(AS_IS,SHORTENED)/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.COMMON])/DEFINE=
("HAV
E_CONFIG_H=TRUE","DEBUG=TRUE","_AXP_=TRUE")

        SYS$DISK:[-.COMMON]ASTRING.C
        SYS$DISK:[-.COMMON]CAPABILITY.C
        SYS$DISK:[-.COMMON]CAPSTR.C
        SYS$DISK:[-.COMMON]CITY.C
        SYS$DISK:[-.COMMON]COMBAT.C
        SYS$DISK:[-.COMMON]CONNECTION.C
        SYS$DISK:[-.COMMON]DATAIO.C
        SYS$DISK:[-.COMMON]DIPTREATY.C
        SYS$DISK:[-.COMMON]FCINTL.C
        SYS$DISK:[-.COMMON]GAME.C
        SYS$DISK:[-.COMMON]GENLIST.C
        SYS$DISK:[-.COMMON]GOVERNMENT.C
        SYS$DISK:[-.COMMON]HASH.C
        SYS$DISK:[-.COMMON]IDEX.C
        SYS$DISK:[-.COMMON]IMPROVEMENT.C
        SYS$DISK:[-.COMMON]INPUTFILE.C
        SYS$DISK:[-.COMMON]IOZ.C
        SYS$DISK:[-.COMMON]LOG.C
        SYS$DISK:[-.COMMON]MAP.C
        SYS$DISK:[-.COMMON]MEM.C
        SYS$DISK:[-.COMMON]NATION.C
        SYS$DISK:[-.COMMON]NETINTF.C
        SYS$DISK:[-.COMMON]PACKETS.C
        SYS$DISK:[-.COMMON]PACKETS_LSEND.C
        SYS$DISK:[-.COMMON]PLAYER.C
        SYS$DISK:[-.COMMON]RAND.C
        SYS$DISK:[-.COMMON]REGISTRY.C
        SYS$DISK:[-.COMMON]SBUFFER.C
        SYS$DISK:[-.COMMON]SHARED.C
        SYS$DISK:[-.COMMON]SPACESHIP.C
        SYS$DISK:[-.COMMON]SUPPORT.C
        SYS$DISK:[-.COMMON]TECH.C
        SYS$DISK:[-.COMMON]TIMING.C
        SYS$DISK:[-.COMMON]UNIT.C
        SYS$DISK:[-.COMMON]UNITTYPE.C
        SYS$DISK:[-.COMMON]VERSION.C
        SYS$DISK:[-.COMMON]WORKLIST.C

Can't Find The SYS$DISK:[-.CLIENT]CLIENTLIB-AXP.OLB Library.  Since It Is
Needed To Build The GTK CIVCLIENT Executable We Will Compile It Now.

Compilng The SYS$DISK:[-.CLIENT]CLIENTLIB-AXP.OLB Library.
Using Compile Command: CC/PREFIX=ALL/OPTIMIZE=(LEVEL=5,TUNE=HOST)/ARCH=HOST
/NODE
BUG/REENTRANCY=MULTITHREAD/FLOAT=IEEE_FLOAT/IEEE_MODE=DENORM_RESULTS/NEST=
PRIMAR
Y/NAME=(AS_IS,SHORTENED)/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CLIENT],SYS$DISK
:[-.C
LIENT.INCLUDE],SYS$DISK:[-.COMMON],SYS$DISK:[-.-.GTK128.GLIB],SYS$DISK:[-.-
.IMLI
B-1_9_8_1.GDK_IMLIB],PORTING_LIB:[INCLUDE])
/DEFINE=("HAVE_CONFIG_H=TRUE","DEBUG=TRUE","_AXP_=TRUE","PRE_DECC_V6_2=
TRUE")

        SYS$DISK:[-.CLIENT]ATTRIBUTE.C

     fc__attribute((format (printf, 3, 4)));
.....^
%CC-E-NOSEMI, Missing ";".
at line number 128 in file DISK$WORK:[TEST.FREECIV.COMMON]SHARED.H;1

                  fc__attribute((format (printf, 2, 3)));
..................^
%CC-E-NOSEMI, Missing ";".
at line number 62 in file DISK$WORK:[TEST.FREECIV.COMMON]LOG.H;1

#error
.^
%CC-E-ERRORMESSAGE, #error
at line number 35 in file DISK$WORK:[TEST.FREECIV.CLIENT]ATTRIBUTE.C;2
$ 

===========================================================================


 +------------------+--------------------------+---------------+
 | Robert Alan Byer | byer@xxxxxxxxxxxxxxxxxxx | ICQ #65926579 |
 +------------------+--------------------------+---------------+
 | Send an E-mail request to obtain a copy of my PGP key.      |
 +-------------------------------------------------------------+
 | "It is by caffeine alone I set my mind in motion.  It is by |
 |  cans of cola the thoughts aquire speed, the hands acquire  |
 |  shakes, the shakes become a warning.  It is by caffeine    |
 |  alone I set my mind in motion."                            |
 +-------------------------------------------------------------+


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQEVAwUBPaMjZ6VSqzlBVJbBAQFsJQgAp5D6M/F/sDOiwlxGov/XpPx0FdG9H0lS
P6meAIZNgvcF8BoDbfkIn9AiAj+rRk4YTe4V1XkHVy3kRyjohsEKOcSL0CjL9iNX
4u41nag7R7NoQyOCcS1X5jHaVdVrAaZ1D/9eVDRidJPRgzxuCEH++VDQqEW8WZsQ
9PNXjYL0yvyO+tYwXHQJk1hDxDPgMVjPc0QlKDq7gXyrh9nT0TrOspxMXp0jx7io
wi7NTlABU+M1S70xrRa1ENlsA67xAL0vKDDB7N2+3FhzQuOa1kX0QmICO/YrZBgF
SDIy0cr1en8MyW7bdVCHQPIjqmJEpy8M3cmeLsOaSFSp6N9D9JYx+g==
=Fuxy
-----END PGP SIGNATURE-----


[Prev in Thread] Current Thread [Next in Thread]