pgsql compile error

Lists: pgsql-general
From: Hao Ding <hdi12(at)it(dot)canterbury(dot)ac(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: pgsql compile error
Date: 2002-06-30 04:13:06
Message-ID: 3D1E8552.7000007@student.canterbury.ac.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hi all,

I am a new postgresql user. I downloaded postgresql 7.2.1 and wanted to
install it on the RedHat Linux 7.2. When compiling using gmake I got a
error message:

gcc -g -ansi -Wall -Wall -Wmissing-prototypes -Wmissing-declarations -I.
-I../..
/../src/include -c -o bootparse.o bootparse.c
In file included from ../../../src/include/storage/ipc.h:23,
from ../../../src/include/miscadmin.h:26,
from bootparse.y:36:
/usr/include/sys/ipc.h:25: warning: #warning "Files using this header
must be co
mpiled with _SVID_SOURCE or _XOPEN_SOURCE"
gcc -g -ansi -Wall -Wall -Wmissing-prototypes -Wmissing-declarations -I.
-I../..
/../src/include -c -o bootscanner.o bootscanner.c
lex.Int_yy.c: In function `Int_yy_init_buffer':
lex.Int_yy.c:1557: warning: implicit declaration of function `fileno'
gcc -g -ansi -Wall -Wall -Wmissing-prototypes -Wmissing-declarations -I.
-I../..
/../src/include -c -o bootstrap.o bootstrap.c
In file included from ../../../src/include/storage/ipc.h:23,
from ../../../src/include/miscadmin.h:26,
from bootstrap.c:35:
/usr/include/sys/ipc.h:25: warning: #warning "Files using this header
must be co
mpiled with _SVID_SOURCE or _XOPEN_SOURCE"
In file included from bootstrap.c:34:
../../../src/include/libpq/pqsignal.h:24: parse error before `UnBlockSig'
../../../src/include/libpq/pqsignal.h:24: warning: type defaults to
`int' in dec
laration of `UnBlockSig'
../../../src/include/libpq/pqsignal.h:25: warning: type defaults to
`int' in dec
laration of `BlockSig'
../../../src/include/libpq/pqsignal.h:26: warning: type defaults to
`int' in dec
laration of `AuthBlockSig'
../../../src/include/libpq/pqsignal.h:26: warning: data definition has
no type o
r storage class
bootstrap.c: In function `BootstrapMain':
bootstrap.c:338: warning: implicit declaration of function `sigprocmask'
bootstrap.c:338: `SIG_SETMASK' undeclared (first use in this function)
bootstrap.c:338: (Each undeclared identifier is reported only once
bootstrap.c:338: for each function it appears in.)
gmake[3]: *** [bootstrap.o] Error 1
gmake[3]: Leaving directory
`/home/cosc/studPG/hdi12/postgresql-7.2.1/src/backen
d/bootstrap'
gmake[2]: *** [bootstrap-recursive] Error 2
gmake[2]: Leaving directory
`/home/cosc/studPG/hdi12/postgresql-7.2.1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/cosc/studPG/hdi12/postgresql-7.2.1/src'
gmake: *** [all] Error 2

I am not sure if it is my system's problem or others. Can anyone help
me fix it? Thanks a lot!

Regards,
Hao


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hdi12(at)it(dot)canterbury(dot)ac(dot)nz
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pgsql compile error
Date: 2002-07-02 14:40:10
Message-ID: 12932.1025620810@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hao Ding <hdi12(at)it(dot)canterbury(dot)ac(dot)nz> writes:
> I am a new postgresql user. I downloaded postgresql 7.2.1 and wanted to
> install it on the RedHat Linux 7.2. When compiling using gmake I got a
> error message:

> gcc -g -ansi -Wall -Wall -Wmissing-prototypes -Wmissing-declarations -I.
> -I../..
> /../src/include -c -o bootparse.o bootparse.c

Where did the "-ansi" come from? I do not believe we select that switch
by default.

regards, tom lane