Thread: postgresql-7.0.3 + cygwin won't compile

postgresql-7.0.3 + cygwin won't compile

From
Jani Averbach
Date:
Hi!

I try compile postgresql 7.0.3 with cygwin under NT4.0, but there is
following compile time error.


My cygwin environment is up to date, and I will include my setup.ini with
this message, if you want check the actual configuration.
And also there is configures.tgz witch one will include all configures and
Makefiles. I'm  not sure witch one are really nessessary and watch out
when untar that one, because there is no directory for these conf file.

If there is any kind solution for that problem (make postgresql running
any how under windows), it would be very good.

If you need help for port testing, I will help you. At the moment I
don't have direct net connection, but after few day I will be in the place
where is 10Mb internet connection and my profession is software
engineering, so I will help, if there is something that I can do.

Best Regards,
Jani

---
[15:53:48] $ ./configure --with-odbc --disable-syslog --enable-locale

result:

make[3]: Leaving directory
`/usr/local/src/postgresql-7.0.3/src/backend/utils/time'
gcc -I../../include -I../../backend   -I/usr/local/include -O2
-I/usr/local/include -DBUILDING_DLL=1 -Wall -Wmissing-prototypes
-Wmissing-declarations -I..    -c -o fmgrtab.o fmgrtab.c
make[2]: *** No rule to make target `adt/SUBSYS.o', needed by
`SUBSYS.o'.  Stop.
make[2]: Leaving directory
`/usr/local/src/postgresql-7.0.3/src/backend/utils'
make[1]: *** [utils.dir] Error 2
make[1]: Leaving directory `/usr/local/src/postgresql-7.0.3/src/backend'
make: *** [all] Error 2

---
Jani Averbach                 jaa@iki.fi              +358 40 759 0984

Attachment

RE: postgresql-7.0.3 + cygwin won't compile

From
"JJAR"
Date:
Hi Jani,

    It seems to be the same problem I had.
    What is wrong, at least it was for me, was the gcc version I installed
2.95.2-6 ( don't know about 2.95.2-7 ) wich seems to be broken I reinstalled
with 2.95.2-5 from scratch ( it doesn't work if you install with a newer one
on top of the older ). You have to remove the newer version from the
directory if you have downloaded everything to your drive because the setup
program seems to take the newest by default.

    There is a how-to:

        http://people.freebsd.org/~kevlo/postgres/portNT.html

    and there is a patch you have to apply because of a harmless error, look at
previous messages in the mailing lists for IpcMemoryDetach.

    Good luck.

//Juan

-----Mensaje original-----
De: pgsql-ports-owner@postgresql.org
[mailto:pgsql-ports-owner@postgresql.org]En nombre de Jani Averbach
Enviado el: jueves, 01 de febrero de 2001 15:17
Para: pgsql-ports@postgresql.org
Asunto: postgresql-7.0.3 + cygwin won't compile



Hi!

I try compile postgresql 7.0.3 with cygwin under NT4.0, but there is
following compile time error.


My cygwin environment is up to date, and I will include my setup.ini with
this message, if you want check the actual configuration.
And also there is configures.tgz witch one will include all configures and
Makefiles. I'm  not sure witch one are really nessessary and watch out
when untar that one, because there is no directory for these conf file.

If there is any kind solution for that problem (make postgresql running
any how under windows), it would be very good.

If you need help for port testing, I will help you. At the moment I
don't have direct net connection, but after few day I will be in the place
where is 10Mb internet connection and my profession is software
engineering, so I will help, if there is something that I can do.

Best Regards,
Jani

---
[15:53:48] $ ./configure --with-odbc --disable-syslog --enable-locale

result:

make[3]: Leaving directory
`/usr/local/src/postgresql-7.0.3/src/backend/utils/time'
gcc -I../../include -I../../backend   -I/usr/local/include -O2
-I/usr/local/include -DBUILDING_DLL=1 -Wall -Wmissing-prototypes
-Wmissing-declarations -I..    -c -o fmgrtab.o fmgrtab.c
make[2]: *** No rule to make target `adt/SUBSYS.o', needed by
`SUBSYS.o'.  Stop.
make[2]: Leaving directory
`/usr/local/src/postgresql-7.0.3/src/backend/utils'
make[1]: *** [utils.dir] Error 2
make[1]: Leaving directory `/usr/local/src/postgresql-7.0.3/src/backend'
make: *** [all] Error 2

---
Jani Averbach                 jaa@iki.fi              +358 40 759 0984


Re: RE: postgresql-7.0.3 + cygwin won't compile

From
Jason Tishler
Date:
Juan,

On Mon, Feb 05, 2001 at 07:49:41PM +0100, JJAR wrote:
>     It seems to be the same problem I had.
>     What is wrong, at least it was for me, was the gcc version I installed
> 2.95.2-6 ( don't know about 2.95.2-7 ) wich seems to be broken I reinstalled
> with 2.95.2-5 from scratch ( it doesn't work if you install with a newer one
> on top of the older ).

I don't believe that these build problems were caused by a bad version
of gcc.  I have been building many versions of PostgreSQL with Cygwin
gcc 2.95.2-6 for about a month and I have not had any build problems
whatsoever.

> You have to remove the newer version from the
> directory if you have downloaded everything to your drive because the setup
> program seems to take the newest by default.

The above is not necessary because Cygwin's setup.exe will uninstall the
previous version of a package before installing the new one.  You just
need to click on the package version until the right one is displayed,
then continue as normal.

Jason

--
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com