Re: [HACKERS] Problems using pgxs on Win32

2004-11-27 Thread Bruce Momjian
I assume all the pgxs changes have been applied by Tom. --- Fabien COELHO wrote: Dear Thomas, I'm trying to change the Makefile system for PL/Java so that it uses PGXS instead of compiling using a complete

Re: [HACKERS] Problems using pgxs on Win32

2004-11-01 Thread Fabien COELHO
Dear Thomas, I'm trying to change the Makefile system for PL/Java so that it uses PGXS instead of compiling using a complete PostgreSQL source tree. As it turns out, the directory include/port/win32 is not present in the PostgreSQL binary installation. Without it, it's not possible to

Re: [HACKERS] Problems using pgxs on Win32

2004-11-01 Thread Thomas Hallgren
Fabien, There's quite a few issues. Here's what I had to do in order to get my stuff working. I don't think it's any use for me to submit changes in form of a patch at this point since pgxs seems to be a bit on the drawing table still. I started another thread that was not win32 related also

Re: [HACKERS] Problems using pgxs on Win32

2004-11-01 Thread Fabien COELHO
Dear Thomas, There's quite a few issues. Here's what I had to do in order to get my stuff working. I don't think it's any use for me to submit changes in form of a patch at this point since pgxs seems to be a bit on the drawing table still. Well, it is supposed to work;-) pgxs is just a

Re: [HACKERS] Problems using pgxs on Win32

2004-11-01 Thread Thomas Hallgren
Fabien, ifdef PGXS override CPPFLAGS := -I$(includedir_server) -I$(includedir_server)/port/win32 -I$(includedir_internal) $(CPPFLAGS) else # not PGXS ... Why can't you #include port/win32/some_file.h which would (I think) avoid the issue without adding a win32 specific -I to all

Re: [HACKERS] Problems using pgxs on Win32

2004-11-01 Thread Fabien COELHO
Dear Thomas, ifdef PGXS override CPPFLAGS := -I$(includedir_server) -I$(includedir_server)/port/win32 -I$(includedir_internal) $(CPPFLAGS) else # not PGXS Why can't you #include port/win32/some_file.h which would (I think) avoid the issue without adding a win32 specific -I to all

[HACKERS] Problems with pgxs

2004-10-31 Thread Thomas Hallgren
I have some problems when adjusting PL/Java to use PGXS in its makefiles. Aside from the Win32 problem I asked about earlier, I also have problems using the MODULE_big. When used, it brings in the Makefile.shlib and attempts to use the target all-lib. That target is defined as: all-lib:

Re: [HACKERS] Problems with pgxs

2004-10-31 Thread Tom Lane
Thomas Hallgren [EMAIL PROTECTED] writes: [ Makefile.shlib contains ] all-lib: all-static-lib all-shared-lib all-static-lib: $(PTHREAD_H_WIN32) $(top_builddir)/src/port/pg_config_paths.h lib$(NAME).a all-shared-lib: $(PTHREAD_H_WIN32)

Re: [HACKERS] Problems with pgxs

2004-10-31 Thread Bruce Momjian
Tom Lane wrote: Thomas Hallgren [EMAIL PROTECTED] writes: [ Makefile.shlib contains ] all-lib: all-static-lib all-shared-lib all-static-lib: $(PTHREAD_H_WIN32) $(top_builddir)/src/port/pg_config_paths.h lib$(NAME).a all-shared-lib: $(PTHREAD_H_WIN32)

Re: [HACKERS] Problems with pgxs

2004-10-31 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: $(PTHREAD_H_WIN32) is a dependency of libpq and therefore we had to copy it into Makefile.shlib when we are compiling from that file rather than libpq/Makefile. libpq/Makefile has: all: $(PTHREAD_H_WIN32) $(top_builddir)/src/port/pg_config_paths.h

Re: [HACKERS] Problems with pgxs

2004-10-31 Thread Bruce Momjian
Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: $(PTHREAD_H_WIN32) is a dependency of libpq and therefore we had to copy it into Makefile.shlib when we are compiling from that file rather than libpq/Makefile. libpq/Makefile has: all: $(PTHREAD_H_WIN32)

[HACKERS] Problems using pgxs on Win32

2004-10-30 Thread Thomas Hallgren
I'm trying to change the Makefile system for PL/Java so that it uses PGXS instead of compiling using a complete PostgreSQL source tree. As it turns out, the directory include/port/win32 is not present in the PostgreSQL binary installation. Without it, it's not possible to compile on win32. Do