Thread: Build error in src/interfaces
Hi. I' got followin' error in building libpsql src/interfaces. make[1]: Entering directory `/home/Administrator/postgresql-7.4-1/src/interfaces/libpq' gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio ns -I. -I../../../src/include -I./src/include/port/win32 "-I../../../src/include/port/win32" -DFRONTEND -DSYSCONFDIR='"/usr/local/pg sql/etc"' -c -o win32.o win32.c In file included from c:/mingw/include/windows.h:55, from win32.c:28: c:/mingw/include/winuser.h:3411: parse error before "BLENDFUNCTION" win32.c: In function `winsock_strerror': win32.c:310: warning: long unsigned int format, int arg (arg 4) win32.c:317: warning: long unsigned int format, int arg (arg 4) make[1]: *** [win32.o] Error 1 make[1]: Leaving directory `/home/Administrator/postgresql-7.4-1/src/interfaces/libpq' make: *** [all] Error 2 Could you give me any hint about this? Regards.
Thank you very much. >Look at src/interfaces/libpq/win32.c >Comment out line 25 >< >#define NOGDI >> >/* #define NOGDI */ By this patch, I could build libpq, however libpq.dll wasn't created in libpq directory, in this directory only dll file is pq.dll. Both pq.dll and libpq.dll is same one? Regards.
> -----Original Message----- > From: Hisaji Ono [mailto:hi_ono2001@ybb.ne.jp] > Sent: 05 December 2003 05:40 > To: Tony Butt > Cc: pgsql-hackers-win32@postgresql.org > Subject: Re: [pgsql-hackers-win32] Build error in src/interfaces > > Thank you very much. > > >Look at src/interfaces/libpq/win32.c > > >Comment out line 25 > >< > >#define NOGDI > >> > >/* #define NOGDI */ > > By this patch, I could build libpq, however libpq.dll > wasn't created in libpq directory, in this directory only dll > file is pq.dll. > > Both pq.dll and libpq.dll is same one? Yes. Regards, Dave.
Dave, is this something we should adjust in our code? --------------------------------------------------------------------------- Dave Page wrote: > > > > -----Original Message----- > > From: Hisaji Ono [mailto:hi_ono2001@ybb.ne.jp] > > Sent: 05 December 2003 05:40 > > To: Tony Butt > > Cc: pgsql-hackers-win32@postgresql.org > > Subject: Re: [pgsql-hackers-win32] Build error in src/interfaces > > > > Thank you very much. > > > > >Look at src/interfaces/libpq/win32.c > > > > >Comment out line 25 > > >< > > >#define NOGDI > > >> > > >/* #define NOGDI */ > > > > By this patch, I could build libpq, however libpq.dll > > wasn't created in libpq directory, in this directory only dll > > file is pq.dll. > > > > Both pq.dll and libpq.dll is same one? > > Yes. > > Regards, Dave. > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Here is the actual bug report requiring the commenting of: #define NOGDI --------------------------------------------------------------------------- Hisaji Ono wrote: > Hi. > > I' got followin' error in building libpsql src/interfaces. > > make[1]: Entering directory > `/home/Administrator/postgresql-7.4-1/src/interfaces/libpq' > gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declaratio > ns -I. -I../../../src/include -I./src/include/port/win32 > "-I../../../src/include/port/win32" -DFRONTEND -DSYSCONFDIR='"/usr/local/pg > sql/etc"' -c -o win32.o win32.c > In file included from c:/mingw/include/windows.h:55, > from win32.c:28: > c:/mingw/include/winuser.h:3411: parse error before "BLENDFUNCTION" > win32.c: In function `winsock_strerror': > win32.c:310: warning: long unsigned int format, int arg (arg 4) > win32.c:317: warning: long unsigned int format, int arg (arg 4) > make[1]: *** [win32.o] Error 1 > make[1]: Leaving directory > `/home/Administrator/postgresql-7.4-1/src/interfaces/libpq' > make: *** [all] Error 2 > > Could you give me any hint about this? > > Regards. > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
> -----Original Message----- > From: Bruce Momjian [mailto:pgman@candle.pha.pa.us] > Sent: 16 December 2003 01:10 > To: Dave Page > Cc: Hisaji Ono; Tony Butt; pgsql-hackers-win32@postgresql.org > Subject: Re: [pgsql-hackers-win32] Build error in src/interfaces > > > Dave, is this something we should adjust in our code? > > > > > > > Both pq.dll and libpq.dll is same one? > > > > Yes. > > > > Regards, Dave. > > It's a little confusing to the newcomer I grant you, but I'm not convinced that's a good argument to change it and break lots of apps that might be expecting pq.dll. Regards, Dave.