[GRASS5] Re: [GRASSLIST:1116] compiling postgres modules

Justin Hickey jhickey at hpcc.nectec.or.th
Mon Nov 13 22:19:45 EST 2000


Hi Moritz

mlennert at club.worldonline.be wrote:
> #################################################################
> /usr/local/grass/src.garden/grass.postgresql/d.rast.pg
>   make -f OBJ.i686-linux-elf/make.rules
> 
> make[1]: Entering directory >`/usr/local/grass/src.garden/grass.postgresql/d.ras
> t.pg'
> gcc -g -O2 @PQINCPATH@ -I/usr/local/grass/src/include  -c main.c -o
> OBJ.i686-linux-elf/main.o
> gcc: cannot specify -o with -c or -S and multiple compilations
> make[1]: *** [OBJ.i686-linux-elf/main.o] Error 1
> make[1]: Leaving directory >`/usr/local/grass/src.garden/grass.postgresql/d.rast
> .pg'
> make: *** [all] Error 2

The problem is that the @PQINCPATH@ is not supposed to be there. gcc is
interpreting it as a source file thus the error concerning multiple
compilations. This @PQINCPATH@ thing is from src/CMD/head/head.in and is
supposed to be converted by the configure script to point to the
postgres include directory. For some reason it wasn't and I have no idea
why. Does anyone know how this could happen?

My only suggestion is to do

make veryclean
./configure

and then check the head.i686-linux-elf file for your system to see if
everything was converted to something (even blanks).

Sorry I wasn't much help.

-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list