Обсуждение: "make" in postgresql windows install fails

Поиск
Список
Период
Сортировка

"make" in postgresql windows install fails

От
venkat j
Дата:
Hello all
 
Im trying to install Postgresql 7.3.4 on WindowsNT using Cygwin/cygipc. I already have installed cygipc in a different directory. I started ipc-daemon.
After doing "configure", i started "make". Im using gcc provided by cygwin installer.
Postgresql throws an error. Its breaking in some IPC (cygipc) related files. 
 
Am i missing any setting? do i need to append anything to any variable? or cygipc should be extracted to a directory 'inside' postgresql directory structure?
Pl note that i already have stared ipc-daemon.exe (i tried to start it as an NT process and from cygwin prompt... any diff?). After that ihave given the "make" command.
 
Any help is greatly appreciated...
 
Thanks in advance.
 
 
make[3]: Entering directory `/cygdrive/g/postgresql734/src/backend/port'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include  -DBUILDING_DLL
-c -o pg_sema.o pg_sema.c
pg_sema.c: In function `InternalIpcSemaphoreCreate':
pg_sema.c:95: warning: implicit declaration of function `semget'
pg_sema.c:95: `IPC_CREAT' undeclared (first use in this function)
pg_sema.c:95: (Each undeclared identifier is reported only once
pg_sema.c:95: for each function it appears in.)
pg_sema.c:95: `IPC_EXCL' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreInitialize':
pg_sema.c:150: warning: implicit declaration of function `semctl'
pg_sema.c:150: `SETVAL' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreKill':
pg_sema.c:175: `IPC_RMID' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreGetValue':
pg_sema.c:193: `GETVAL' undeclared (first u se in this function)
pg_sema.c: In function `IpcSemaphoreGetLastPID':
pg_sema.c:204: `GETPID' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreCreate':
pg_sema.c:263: `IPC_RMID' undeclared (first use in this function)
pg_sema.c: In function `PGSemaphoreLock':
pg_sema.c:390: storage size of `sops' isn't known
pg_sema.c:434: warning: implicit declaration of function `semop'
pg_sema.c:390: warning: unused variable `sops'
pg_sema.c: In function `PGSemaphoreUnlock':
pg_sema.c:455: storage size of `sops' isn't known
pg_sema.c:455: warning: unused variable `sops'
pg_sema.c: In function `PGSemaphoreTryLock':
pg_sema.c:489: storage size of `sops' isn't known
pg_sema.c:492: `IPC_NOWAIT' undeclared (first use in this function)
pg_sema.c:489: warning: unused variable `sops'
make[3]: *** [pg_sema.o] Error 1
make[3]: Leaving directory `/cygdrive/g/postgresql734/src/backend/port'
make[2]: *** [port-recursive] Error 2
make[2]: Leaving directory `/cygdrive/g/postgresql734/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cygdrive/g/postgresql734/src'
make: *** [all] Error 2


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: "make" in postgresql windows install fails

От
Jason Tishler
Дата:
On Fri, Aug 29, 2003 at 01:48:22AM -0700, venkat j wrote:
> Im trying to install Postgresql 7.3.4 on WindowsNT using
> Cygwin/cygipc. I already have installed cygipc in a different
> directory.

Did you install cygipc in /usr/local?

> [snip]
>
>
> Any help is greatly appreciated...

If you are having troubles building PostgreSQL, why not just use the
pre-built version that is part of the standard Cygwin distribution?

    http://cygwin.com/ml/cygwin-announce/2003-08/msg00001.html

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

Re: "make" in postgresql windows install fails

От
"Chigurupati, Prasad"
Дата:
Hi Venkat,
make sure the cygipc tar file shoudl be under \\cygwin folder before gunzip.once u did the gunzip , automatically it will extract and send to related folders."//usr/local/bin" folder must contain ipc-daemon exe file.
but i doubt that result when u use "configure" . or gcc maybe not installed properly.or b'ze of environment variables.
i also facing same issue but at different stage...
am using postgresql coming with cygwin. ther no configure file under postgresql folder.
when i installed lower verison of postgresql , trying to configure, getting gcc error like cannot create executables...
 
reply..
 
Rgds,
prasad.ch
 
 
 
 
-----Original Message-----
From: venkat j [mailto:venkatech@yahoo.com]
Sent: Friday, August 29, 2003 4:48 PM
To: pgsql-cygwin@postgresql.org
Subject: [CYGWIN] "make" in postgresql windows install fails

Hello all
 
Im trying to install Postgresql 7.3.4 on WindowsNT using Cygwin/cygipc. I already have installed cygipc in a different directory. I started ipc-daemon.
After doing "configure", i started "make". Im using gcc provided by cygwin installer.
Postgresql throws an error. Its breaking in some IPC (cygipc) related files. 
 
Am i missing any setting? do i need to append anything to any variable? or cygipc should be extracted to a directory 'inside' postgresql directory structure?
Pl note that i already have stared ipc-daemon.exe (i tried to start it as an NT process and from cygwin prompt... any diff?). After that ihave given the "make" command.
 
Any help is greatly appreciated...
 
Thanks in advance.
 
 
make[3]: Entering directory `/cygdrive/g/postgresql734/src/backend/port'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include  -DBUILDING_DLL
-c -o pg_sema.o pg_sema.c
pg_sema.c: In function `InternalIpcSemaphoreCreate':
pg_sema.c:95: warning: implicit declaration of function `semget'
pg_sema.c:95: `IPC_CREAT' undeclared (first use in this function)
pg_sema.c:95: (Each undeclared identifier is reported only once
pg_sema.c:95: for each function it appears in.)
pg_sema.c:95: `IPC_EXCL' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreInitialize':
pg_sema.c:150: warning: implicit declaration of function `semctl'
pg_sema.c:150: `SETVAL' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreKill':
pg_sema.c:175: `IPC_RMID' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreGetValue':
pg_sema.c:193: `GETVAL' undeclared (first u se in this function)
pg_sema.c: In function `IpcSemaphoreGetLastPID':
pg_sema.c:204: `GETPID' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreCreate':
pg_sema.c:263: `IPC_RMID' undeclared (first use in this function)
pg_sema.c: In function `PGSemaphoreLock':
pg_sema.c:390: storage size of `sops' isn't known
pg_sema.c:434: warning: implicit declaration of function `semop'
pg_sema.c:390: warning: unused variable `sops'
pg_sema.c: In function `PGSemaphoreUnlock':
pg_sema.c:455: storage size of `sops' isn't known
pg_sema.c:455: warning: unused variable `sops'
pg_sema.c: In function `PGSemaphoreTryLock':
pg_sema.c:489: storage size of `sops' isn't known
pg_sema.c:492: `IPC_NOWAIT' undeclared (first use in this function)
pg_sema.c:489: warning: unused variable `sops'
make[3]: *** [pg_sema.o] Error 1
make[3]: Leaving directory `/cygdrive/g/postgresql734/src/backend/port'
make[2]: *** [port-recursive] Error 2
make[2]: Leaving directory `/cygdrive/g/postgresql734/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cygdrive/g/postgresql734/src'
make: *** [all] Error 2


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: "make" in postgresql windows install fails

От
"Roger Ackroyd"
Дата:
Prasad vencat
 
If you are having troubles building PostgreSQL, why not just use the
pre-built version that is part of the standard Cygwin distribution?
Then read the following carefully to install as a service under windows XP (and I think NT)
 
I do not think you should need to be using make at all.
 
If you are still having problems then search through the list archive as I know all your problems have been answered (manyt times) there.
I would advise that you follow any tips or instructions given you by Jason Tishler as he is the expert on these things.
Hope this helps.
Roger
----- Original Message -----
Sent: Friday, August 29, 2003 9:56 AM
Subject: [pgsql-cygwin] Re: [CYGWIN] "make" in postgresql windows install fails

Hi Venkat,
make sure the cygipc tar file shoudl be under \\cygwin folder before gunzip.once u did the gunzip , automatically it will extract and send to related folders."//usr/local/bin" folder must contain ipc-daemon exe file.
but i doubt that result when u use "configure" . or gcc maybe not installed properly.or b'ze of environment variables.
i also facing same issue but at different stage...
am using postgresql coming with cygwin. ther no configure file under postgresql folder.
when i installed lower verison of postgresql , trying to configure, getting gcc error like cannot create executables...
 
reply..
 
Rgds,
prasad.ch
 
 
 
 
-----Original Message-----
From: venkat j [mailto:venkatech@yahoo.com]
Sent: Friday, August 29, 2003 4:48 PM
To: pgsql-cygwin@postgresql.org
Subject: [CYGWIN] "make" in postgresql windows install fails

Hello all
 
Im trying to install Postgresql 7.3.4 on WindowsNT using Cygwin/cygipc. I already have installed cygipc in a different directory. I started ipc-daemon.
After doing "configure", i started "make". Im using gcc provided by cygwin installer.
Postgresql throws an error. Its breaking in some IPC (cygipc) related files. 
 
Am i missing any setting? do i need to append anything to any variable? or cygipc should be extracted to a directory 'inside' postgresql directory structure?
Pl note that i already have stared ipc-daemon.exe (i tried to start it as an NT process and from cygwin prompt... any diff?). After that ihave given the "make" command.
 
Any help is greatly appreciated...
 
Thanks in advance.
 
 
make[3]: Entering directory `/cygdrive/g/postgresql734/src/backend/port'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include  -DBUILDING_DLL
-c -o pg_sema.o pg_sema.c
pg_sema.c: In function `InternalIpcSemaphoreCreate':
pg_sema.c:95: warning: implicit declaration of function `semget'
pg_sema.c:95: `IPC_CREAT' undeclared (first use in this function)
pg_sema.c:95: (Each undeclared identifier is reported only once
pg_sema.c:95: for each function it appears in.)
pg_sema.c:95: `IPC_EXCL' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreInitialize':
pg_sema.c:150: warning: implicit declaration of function `semctl'
pg_sema.c:150: `SETVAL' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreKill':
pg_sema.c:175: `IPC_RMID' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreGetValue':
pg_sema.c:193: `GETVAL' undeclared (first u se in this function)
pg_sema.c: In function `IpcSemaphoreGetLastPID':
pg_sema.c:204: `GETPID' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreCreate':
pg_sema.c:263: `IPC_RMID' undeclared (first use in this function)
pg_sema.c: In function `PGSemaphoreLock':
pg_sema.c:390: storage size of `sops' isn't known
pg_sema.c:434: warning: implicit declaration of function `semop'
pg_sema.c:390: warning: unused variable `sops'
pg_sema.c: In function `PGSemaphoreUnlock':
pg_sema.c:455: storage size of `sops' isn't known
pg_sema.c:455: warning: unused variable `sops'
pg_sema.c: In function `PGSemaphoreTryLock':
pg_sema.c:489: storage size of `sops' isn't known
pg_sema.c:492: `IPC_NOWAIT' undeclared (first use in this function)
pg_sema.c:489: warning: unused variable `sops'
make[3]: *** [pg_sema.o] Error 1
make[3]: Leaving directory `/cygdrive/g/postgresql734/src/backend/port'
make[2]: *** [port-recursive] Error 2
make[2]: Leaving directory `/cygdrive/g/postgresql734/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cygdrive/g/postgresql734/src'
make: *** [all] Error 2


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: "make" in postgresql windows install fails

От
Jason Tishler
Дата:
On Fri, Aug 29, 2003 at 04:56:52PM +0800, Chigurupati, Prasad wrote:
> make sure the cygipc tar file shoudl be under \\cygwin folder before
> gunzip.once u did the gunzip , automatically it will extract and send
> to related folders."//usr/local/bin" folder must contain ipc-daemon
> exe file.

I recommend the following to download and extract cygipc:

    $ wget -nd -P /tmp http://www.neuro.gatech.edu/users/cwilson/cygutils/cygipc/cygipc-1.14-1.tar.bz2
    $ tar -C / -xjf /tmp/cygipc-1.14-1.tar.bz2

Note the cygipc site seems to be down right now...

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

Re: "make" in postgresql windows install fails

От
venkat j
Дата:
Hi Jason,
thx for ur suggestion.
But is there a "working" version that i can use without all these "make" and "make install" and stuff like that?
if there is one version, where can i download that? Im unable to access the ftp link thats given in the message..
Thanks in advance.
 
cheers

Jason Tishler <jason@tishler.net> wrote:
On Fri, Aug 29, 2003 at 01:48:22AM -0700, venkat j wrote:
> Im trying to install Postgresql 7.3.4 on WindowsNT using
> Cygwin/cygipc. I already have installed cygipc in a different
> directory.

Did you install cygipc in /usr/local?

> [snip]
>
>
> Any help is greatly appreciated...

If you are having troubles building PostgreSQL, why not just use the
pre-built version that is part of the standard Cygwin distribution?

http://cygwin.com/ml/cygwin-announce/2003-08/msg00001.html

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

"make" in postgresql windows install fails: bfd_open failed open stub file: ds02014.o

От
venkat j
Дата:
Thank you all for ur suggestions... i got rid of that problem. It seems that it was unable to find some header files.
Im still at the same step. Im trying to "make". Now i get a different error... This sounds strange to me.... Can somebody help? Here is end of the trace....
 
 
make[4]: Entering directory `/cygdrive/g/postgresql734/src/backend/utils/mb'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include  -DBUILDING_DL
L  -c -o encnames.o encnames.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include  -DBUILDING_DL
L  -c -o conv.o conv.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include  -DBUILDING_DL
L  -c -o mbutils.o mbutils.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include  -DBUILDING_DL
L  -c -o wchar.o wchar.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include  -DBUILDING_DL
L  -c -o wstrcmp.o wstrcmp.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include  -DBUILDING_DL
L  -c -o wstrncmp.o wstrncmp.c
/usr/i686-pc-cygwin/bin/ld.exe -r -o SUBSYS.o encnames.o conv.o mbutils.o wchar.o wstrcmp.o wstrnc
mp.o
make[4]: Leaving directory `/cygdrive/g/postgresql734/src/backend/utils/mb'
/usr/i686-pc-cygwin/bin/ld.exe -r -o SUBSYS.o fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o error/SUBSYS.o
 fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o misc/SUBSYS.o mmgr/SUBSYS.o sort/SUBSYS.o time/SUBSYS.o
 mb/SUBSYS.o
make[3]: Leaving directory `/cygdrive/g/postgresql734/src/backend/utils'
make -C ../../src/utils dllinit.o
make[3]: Entering directory `/cygdrive/g/postgresql734/src/utils'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../src/include   -c -o dllinit.o dl
linit.c
make[3]: Leaving directory `/cygdrive/g/postgresql734/src/utils'
dlltool --export-all --output-def postgres.def access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o
 parser/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nod
es/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o s
torage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o
dlltool --dllname postgres.exe --def postgres.def --output-lib libpostgres.a
dlltool: bfd_open failed open stub file: ds02014.o
make[2]: *** [libpostgres.a] Error 1
make[2]: *** Deleting file `libpostgres.a'
make[2]: Leaving directory `/cygdrive/g/postgresql734/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cygdrive/g/postgresql734/src'
make: *** [all] Error 2
 
Thank you very much...
 


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: "make" in postgresql windows install fails: bfd_open failed open stub file: ds02014.o

От
Jason Tishler
Дата:
On Sat, Aug 30, 2003 at 03:16:19AM -0700, venkat j wrote:
> dlltool --dllname postgres.exe --def postgres.def --output-lib libpostgres.a
> dlltool: bfd_open failed open stub file: ds02014.o

I'm sorry, but I have never seen the above error before.  Are you
running the latest binutils package?

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

Re: "make" in postgresql windows install fails

От
Jason Tishler
Дата:
On Sat, Aug 30, 2003 at 03:23:55AM -0700, venkat j wrote:
> But is there a "working" version that i can use without all these
> "make" and "make install" and stuff like that?

Yes.

> if there is one version, where can i download that?

A pre-built PostgreSQL is available on any of the Cygwin mirrors.  Just
point Cygwin's setup.exe at your closest mirrors and select postgresql
from the Database category.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

Re: "make" in postgresql windows install fails

От
Jason Tishler
Дата:
Prasad,

On Mon, Sep 01, 2003 at 09:57:42AM +0800, Chigurupati, Prasad wrote:
> Thanks for suggestion.

You are welcome.

> but i already installed cygipc package. and in \\cygwin only.

OK.

> the issue is i cannot use ./configure command, since there is no
> configure file under prebuilt binaries of postgresql comes with
> cygwin.

configure is part of the source package -- not the binary one.  Hence,
you must download the PostgreSQL source package.

> i need to do this for the purpose of postgis.

Understood.

> as u r previous suggestions, if i want to go for postgis, i need to
> compilt postgresql7.3.4 source. but when i try to compile that one,
> gcc giivng msg as "cannot create executables". it means gcc is not
> installed properly.

Not necessarily.  When configuring PostgreSQL, it usually means that
cygipc is not installed properly.  You can determine the exact problem
by examining the end of the config.log file which is created during the
configure step.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

Re: "make" in postgresql windows install fails

От
"Chigurupati, Prasad"
Дата:
Hi Roger,
Thanks for u r suggestion. but if i want to use Postgis later on top of Postgresql, i am not able to handle through.. be'ze
after postgresql installation i need to configure postgresql for the purpose of making postgis.. not able to fine "configure" files under prebuilt verion of postgresql. that's why needs to install other version. if we use other version , not able to create executables using gcc. giving error as "cannot create executables". but gcc is comes with cygwin.
 
any help please...
 
Rgds,
Prasad.Ch
 
-----Original Message-----
From: Roger Ackroyd [mailto:postgresql@ackroyd.freeserve.co.uk]
Sent: Saturday, August 30, 2003 4:52 AM
To: pgsql-cygwin@postgresql.org
Subject: Re: [CYGWIN] "make" in postgresql windows install fails

Prasad vencat
 
If you are having troubles building PostgreSQL, why not just use the
pre-built version that is part of the standard Cygwin distribution?
Then read the following carefully to install as a service under windows XP (and I think NT)
 
I do not think you should need to be using make at all.
 
If you are still having problems then search through the list archive as I know all your problems have been answered (manyt times) there.
I would advise that you follow any tips or instructions given you by Jason Tishler as he is the expert on these things.
Hope this helps.
Roger
----- Original Message -----
Sent: Friday, August 29, 2003 9:56 AM
Subject: [pgsql-cygwin] Re: [CYGWIN] "make" in postgresql windows install fails

Hi Venkat,
make sure the cygipc tar file shoudl be under \\cygwin folder before gunzip.once u did the gunzip , automatically it will extract and send to related folders."//usr/local/bin" folder must contain ipc-daemon exe file.
but i doubt that result when u use "configure" . or gcc maybe not installed properly.or b'ze of environment variables.
i also facing same issue but at different stage...
am using postgresql coming with cygwin. ther no configure file under postgresql folder.
when i installed lower verison of postgresql , trying to configure, getting gcc error like cannot create executables...
 
reply..
 
Rgds,
prasad.ch
 
 
 
 
-----Original Message-----
From: venkat j [mailto:venkatech@yahoo.com]
Sent: Friday, August 29, 2003 4:48 PM
To: pgsql-cygwin@postgresql.org
Subject: [CYGWIN] "make" in postgresql windows install fails

Hello all
 
Im trying to install Postgresql 7.3.4 on WindowsNT using Cygwin/cygipc. I already have installed cygipc in a different directory. I started ipc-daemon.
After doing "configure", i started "make". Im using gcc provided by cygwin installer.
Postgresql throws an error. Its breaking in some IPC (cygipc) related files. 
 
Am i missing any setting? do i need to append anything to any variable? or cygipc should be extracted to a directory 'inside' postgresql directory structure?
Pl note that i already have stared ipc-daemon.exe (i tried to start it as an NT process and from cygwin prompt... any diff?). After that ihave given the "make" command.
 
Any help is greatly appreciated...
 
Thanks in advance.
 
 
make[3]: Entering directory `/cygdrive/g/postgresql734/src/backend/port'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include  -DBUILDING_DLL
-c -o pg_sema.o pg_sema.c
pg_sema.c: In function `InternalIpcSemaphoreCreate':
pg_sema.c:95: warning: implicit declaration of function `semget'
pg_sema.c:95: `IPC_CREAT' undeclared (first use in this function)
pg_sema.c:95: (Each undeclared identifier is reported only once
pg_sema.c:95: for each function it appears in.)
pg_sema.c:95: `IPC_EXCL' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreInitialize':
pg_sema.c:150: warning: implicit declaration of function `semctl'
pg_sema.c:150: `SETVAL' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreKill':
pg_sema.c:175: `IPC_RMID' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreGetValue':
pg_sema.c:193: `GETVAL' undeclared (first u se in this function)
pg_sema.c: In function `IpcSemaphoreGetLastPID':
pg_sema.c:204: `GETPID' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreCreate':
pg_sema.c:263: `IPC_RMID' undeclared (first use in this function)
pg_sema.c: In function `PGSemaphoreLock':
pg_sema.c:390: storage size of `sops' isn't known
pg_sema.c:434: warning: implicit declaration of function `semop'
pg_sema.c:390: warning: unused variable `sops'
pg_sema.c: In function `PGSemaphoreUnlock':
pg_sema.c:455: storage size of `sops' isn't known
pg_sema.c:455: warning: unused variable `sops'
pg_sema.c: In function `PGSemaphoreTryLock':
pg_sema.c:489: storage size of `sops' isn't known
pg_sema.c:492: `IPC_NOWAIT' undeclared (first use in this function)
pg_sema.c:489: warning: unused variable `sops'
make[3]: *** [pg_sema.o] Error 1
make[3]: Leaving directory `/cygdrive/g/postgresql734/src/backend/port'
make[2]: *** [port-recursive] Error 2
make[2]: Leaving directory `/cygdrive/g/postgresql734/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cygdrive/g/postgresql734/src'
make: *** [all] Error 2


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: "make" in postgresql windows install fails

От
"Chigurupati, Prasad"
Дата:
Hi All.,
when i follow the readme file givng by jason, at some point amgetting the following error msg. may be my previous setting problems...
"cygrunsrv: Given path doesn't point to a valid executable"
 
any clue..help me..
 
Tanks in advance..
 
Rgds,
prasad.Ch
 
-----Original Message-----
From: Roger Ackroyd [mailto:postgresql@ackroyd.freeserve.co.uk]
Sent: Saturday, August 30, 2003 4:52 AM
To: pgsql-cygwin@postgresql.org
Subject: Re: [CYGWIN] "make" in postgresql windows install fails

Prasad vencat
 
If you are having troubles building PostgreSQL, why not just use the
pre-built version that is part of the standard Cygwin distribution?
Then read the following carefully to install as a service under windows XP (and I think NT)
 
I do not think you should need to be using make at all.
 
If you are still having problems then search through the list archive as I know all your problems have been answered (manyt times) there.
I would advise that you follow any tips or instructions given you by Jason Tishler as he is the expert on these things.
Hope this helps.
Roger
----- Original Message -----
Sent: Friday, August 29, 2003 9:56 AM
Subject: [pgsql-cygwin] Re: [CYGWIN] "make" in postgresql windows install fails

Hi Venkat,
make sure the cygipc tar file shoudl be under \\cygwin folder before gunzip.once u did the gunzip , automatically it will extract and send to related folders."//usr/local/bin" folder must contain ipc-daemon exe file.
but i doubt that result when u use "configure" . or gcc maybe not installed properly.or b'ze of environment variables.
i also facing same issue but at different stage...
am using postgresql coming with cygwin. ther no configure file under postgresql folder.
when i installed lower verison of postgresql , trying to configure, getting gcc error like cannot create executables...
 
reply..
 
Rgds,
prasad.ch
 
 
 
 
-----Original Message-----
From: venkat j [mailto:venkatech@yahoo.com]
Sent: Friday, August 29, 2003 4:48 PM
To: pgsql-cygwin@postgresql.org
Subject: [CYGWIN] "make" in postgresql windows install fails

Hello all
 
Im trying to install Postgresql 7.3.4 on WindowsNT using Cygwin/cygipc. I already have installed cygipc in a different directory. I started ipc-daemon.
After doing "configure", i started "make". Im using gcc provided by cygwin installer.
Postgresql throws an error. Its breaking in some IPC (cygipc) related files. 
 
Am i missing any setting? do i need to append anything to any variable? or cygipc should be extracted to a directory 'inside' postgresql directory structure?
Pl note that i already have stared ipc-daemon.exe (i tried to start it as an NT process and from cygwin prompt... any diff?). After that ihave given the "make" command.
 
Any help is greatly appreciated...
 
Thanks in advance.
 
 
make[3]: Entering directory `/cygdrive/g/postgresql734/src/backend/port'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/include  -DBUILDING_DLL
-c -o pg_sema.o pg_sema.c
pg_sema.c: In function `InternalIpcSemaphoreCreate':
pg_sema.c:95: warning: implicit declaration of function `semget'
pg_sema.c:95: `IPC_CREAT' undeclared (first use in this function)
pg_sema.c:95: (Each undeclared identifier is reported only once
pg_sema.c:95: for each function it appears in.)
pg_sema.c:95: `IPC_EXCL' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreInitialize':
pg_sema.c:150: warning: implicit declaration of function `semctl'
pg_sema.c:150: `SETVAL' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreKill':
pg_sema.c:175: `IPC_RMID' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreGetValue':
pg_sema.c:193: `GETVAL' undeclared (first u se in this function)
pg_sema.c: In function `IpcSemaphoreGetLastPID':
pg_sema.c:204: `GETPID' undeclared (first use in this function)
pg_sema.c: In function `IpcSemaphoreCreate':
pg_sema.c:263: `IPC_RMID' undeclared (first use in this function)
pg_sema.c: In function `PGSemaphoreLock':
pg_sema.c:390: storage size of `sops' isn't known
pg_sema.c:434: warning: implicit declaration of function `semop'
pg_sema.c:390: warning: unused variable `sops'
pg_sema.c: In function `PGSemaphoreUnlock':
pg_sema.c:455: storage size of `sops' isn't known
pg_sema.c:455: warning: unused variable `sops'
pg_sema.c: In function `PGSemaphoreTryLock':
pg_sema.c:489: storage size of `sops' isn't known
pg_sema.c:492: `IPC_NOWAIT' undeclared (first use in this function)
pg_sema.c:489: warning: unused variable `sops'
make[3]: *** [pg_sema.o] Error 1
make[3]: Leaving directory `/cygdrive/g/postgresql734/src/backend/port'
make[2]: *** [port-recursive] Error 2
make[2]: Leaving directory `/cygdrive/g/postgresql734/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/cygdrive/g/postgresql734/src'
make: *** [all] Error 2


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: "make" in postgresql windows install fails

От
"Chigurupati, Prasad"
Дата:
hi jason,
Thanks for suggestion. but i already installed cygipc package. and in
\\cygwin only.
the issue is i cannot use ./configure command, since there is no configure
file under prebuilt binaries of postgresql comes with cygwin. i need to do
this for the purpose of postgis.
as u r previous suggestions, if i want to go for postgis, i need to compilt
postgresql7.3.4 source. but when i try to compile that one, gcc giivng msg
as "cannot create executables". it means gcc is not installed properly. i
did the installation of cygwin lot of times for correct gcc.but cannot solve
the isse.is there any other way yo make gcc works.(gcc comes with cygwin
installation).

any help please...

Rgds,
Prasad.Ch



-----Original Message-----
From: Jason Tishler [mailto:jason@tishler.net]
Sent: Saturday, August 30, 2003 8:24 AM
To: Chigurupati, Prasad
Cc: 'venkat j'; pgsql-cygwin@postgresql.org
Subject: Re: [CYGWIN] "make" in postgresql windows install fails


On Fri, Aug 29, 2003 at 04:56:52PM +0800, Chigurupati, Prasad wrote:
> make sure the cygipc tar file shoudl be under \\cygwin folder before
> gunzip.once u did the gunzip , automatically it will extract and send
> to related folders."//usr/local/bin" folder must contain ipc-daemon
> exe file.

I recommend the following to download and extract cygipc:

    $ wget -nd -P /tmp
http://www.neuro.gatech.edu/users/cwilson/cygutils/cygipc/cygipc-1.14-1.tar.
bz2
    $ tar -C / -xjf /tmp/cygipc-1.14-1.tar.bz2

Note the cygipc site seems to be down right now...

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

Re: "make" in postgresql windows install fails

От
Jason Tishler
Дата:
Prasad,

On Mon, Sep 01, 2003 at 11:11:28AM +0800, Chigurupati, Prasad wrote:
> when i follow the readme file givng by jason, at some point amgetting
> the following error msg. may be my previous setting problems...
> "cygrunsrv: Given path doesn't point to a valid executable"

Did you install the cygrunsrv package?

    $ cygcheck -c cygrunsrv
    Cygwin Package Information
    Package              Version        Status
    cygrunsrv            0.96-1         OK

What does the following indicate?

    $ ls -l /usr/bin/cygrunsrv.exe
    -rwxrwxrwx    1 Administ Domain U    81920 Apr 24 04:38 /usr/bin/cygrunsrv.exe

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6