Fw: Compiling Win32

From: "Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr>
To: <pgsql-hackers(at)postgresql(dot)org>, "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Fw: Compiling Win32
Date: 2003-06-13 22:59:31
Message-ID: 006901c331ff$9db40cb0$1b8abfd5@darko
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


----- Original Message -----
From: "Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr>
To: <pgsql-hackers(at)postgresql(dot)org>
Sent: Friday, June 13, 2003 5:43 PM
Subject: Fw: [HACKERS] Compiling Win32

>
> ----- Original Message -----
> From: "Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr>
> To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>; "Paul Ramsey"
> <pramsey(at)refractions(dot)net>
> Cc: <pgsql-hackers(at)postgresql(dot)org>
> Sent: Friday, June 13, 2003 5:12 PM
> Subject: Re: [HACKERS] Compiling Win32
>
>
> >
> > ----- Original Message -----
> > From: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
> > To: "Paul Ramsey" <pramsey(at)refractions(dot)net>
> > Cc: <pgsql-hackers(at)postgresql(dot)org>
> > Sent: Saturday, June 14, 2003 1:02 AM
> > Subject: Re: [HACKERS] Compiling Win32
> >
> >
> > >
> > > You should be able to compile, but not link the backend.
> > >
> >
> > But it does not ! At least not with current snapshot.
> >
> > src/Makefile.global:276: src/Makefile.port: No such file or directory
> > make: *** No rule to make target `src/Makefile.port'. Stop.
> >
> > I can see the line:
> >
> > config.status: linking ./src/makefiles/Makefile.win32 to
> > src/Makefile.port
> >
> > when running configure, but Makefile.port is not created !
> > I'll try to figure out what hapened (Maybe I am doing something wrong).
> > Also I would like to know does it have any sense to try it to compile it
> > now, or we are waiting some big patch from someone. Maybe I can help in
> some
> > part ? (have Win2000)
> >
> > Regards !
> >
>
> Ok, here is what hapened : I have cygwin in the path !!! In the config log
I
> found whole bunch of links to cygwin including gcc.
> I'll try to remove it and do the whole thing again.
>
> Regards !
>

I removed the cygwin from path, but it does not help !
It looks like "ac_config_links" does not work with win2000 (MinGW-2.0.0.3),
because none of the :
src/backend/port/dynloader.c
src/backend/port/pg_sema.c
src/backend/port/pg_shmem.c
src/include/dynloader.h
src/include/pg_config_os.h
src/Makefile.port
are not created(linked)
Acording to autoconf manual ac_config_links: "Makes a symbolic link if
possible, otherwise a hard link."

After manualy linking files with :
ln src/makefiles/Makefile.win32 src/Makefile.port
ln src/backend/port/dynloader/win32.c src/backend/port/dynloader.c
ln src/backend/port/dynloader/win32.h src/include/dynloader.h
ln src/include/port/win32.h src/include/pg_config_os.h
ln src/backend/port/sysv_sema.c src/backend/port/pg_sema.c
ln src/backend/port/sysv_shmem.c src/backend/port/pg_shmem.c

it compiles !

I asume that this is not error in postgresql makefiles, but some problem
with minGW.
I'll try to figure it out, maybe question to minGW list would help.

Regards !

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-06-13 23:02:59 Re: Compiling Win32
Previous Message Bruce Momjian 2003-06-13 22:57:52 Re: Compiling Win32