Skip site navigation (1) Skip section navigation (2)

BUG #5707: Cross compilation for windows is broken

From: "Richard Evans" <richard(dot)evans(at)datanomic(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5707: Cross compilation for windows is broken
Date: 2010-10-12 15:48:45
Message-ID: 201010121548.o9CFmjPa038535@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      5707
Logged by:          Richard Evans
Email address:      richard(dot)evans(at)datanomic(dot)com
PostgreSQL version: 9.0.1
Operating system:   Linux (Fedora 12)
Description:        Cross compilation for windows is broken
Details: 

When cross compiling for Windows using a separate build area, libpq.dll does
not build because the .def file cannot be found.

This appears to be caused by these lines in Makefile.shlib:

# If SHLIB_EXPORTS is set, the rules below will build a .def file from
# that.  Else we build a temporary one here.
ifeq (,$(SHLIB_EXPORTS))
DLL_DEFFILE = lib$(NAME)dll.def
exports_file = $(DLL_DEFFILE)

$(exports_file): $(OBJS)
	$(DLLTOOL) --export-all $(DLLTOOL_DEFFLAGS) --output-def $@ $^
else
DLL_DEFFILE = lib$(NAME)dll.def
endif

In Makefile.shlib from 8.4.5, the lines read:

# If SHLIB_EXPORTS is set, the rules below will build a .def file from
# that.  Else we build a temporary one here.
ifeq (,$(SHLIB_EXPORTS))
DLL_DEFFILE = lib$(NAME)dll.def
exports_file = $(DLL_DEFFILE)

$(exports_file): $(OBJS)
	$(DLLTOOL) --export-all $(DLLTOOL_DEFFLAGS) --output-def $@ $^
else
DLL_DEFFILE = $(srcdir)/lib$(NAME)dll.def
endif

Note the reference fo ${srcdir).  If Makefile.shlib in 9.0.1 is updated to
match this, the build succeeds.

The configure command was somethinglike:

~/misc/postgresql-9.0.1/configure --host=mingw32 --prefix=/tmp/pg9
--without-zlib

Responses

pgsql-bugs by date

Next:From: paulo pillonDate: 2010-10-12 17:21:38
Subject: BUG #5708: configuration php.ini
Previous:From: VictorDate: 2010-10-12 15:26:10
Subject: Could not open file pg_xlog/000000010....

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group