FAQ
Hi all,

I am a new postgresql user. I downloaded postgresql 7.2.1, and got
errors when compiling it on my RedHat Linux 7.2. The error message is:

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

Can anyone tell me what is the problem and how to solve it?
Thanks a lot!

Regards,
Hao

Search Discussions

  • Bruce Momjian at Jul 2, 2002 at 4:12 pm
    Well, considering we compile on thousands of Red Hat 7.2 systems, there
    must be something unusual about your setup. I assume it is complaining
    about sigset_t and not finding it in the compile.

    ---------------------------------------------------------------------------

    Hao Ding wrote:
    Hi all,

    I am a new postgresql user. I downloaded postgresql 7.2.1, and got
    errors when compiling it on my RedHat Linux 7.2. The error message is:

    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

    Can anyone tell me what is the problem and how to solve it?
    Thanks a lot!

    Regards,
    Hao




    ---------------------------(end of broadcast)---------------------------
    TIP 5: Have you checked our extensive FAQ?

    http://www.postgresql.org/users-lounge/docs/faq.html

    --
    Bruce Momjian | http://candle.pha.pa.us
    pgman@candle.pha.pa.us | (610) 853-3000
    + If your life is a hard drive, | 830 Blythe Avenue
    + Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-ports @
categoriespostgresql
postedJun 30, '02 at 3:07a
activeJul 2, '02 at 4:12p
posts2
users2
websitepostgresql.org
irc#postgresql

2 users in discussion

Bruce Momjian: 1 post Hao Ding: 1 post

People

Translate

site design / logo © 2022 Grokbase