Thread: psqlODBC *nix Makefile (new 7.3 open item?)
Hi, Now that the ODBC driver has moved from the main distro to http://gborg.postgresql.org/project/psqlodbc/, we can no longer use the main build system under *nix. Can someone who knows make better than I (which is probably the vast majority of you!) knock up a makefile so the driver will build standalone on *nix systems please? There should be no dependencies on any of the rest of the code - certainly there isn't for the Win32 build. There are changes to support 7.3 so this is fairly urgent... (maybe it should be added to the open items list Bruce?). Thanks, Dave
Dave Page writes: > Can someone who knows make better than I (which is probably the vast > majority of you!) knock up a makefile so the driver will build > standalone on *nix systems please? There should be no dependencies on > any of the rest of the code - certainly there isn't for the Win32 build. I'm working something out. I'll send it to you tomorrow. -- Peter Eisentraut peter_e@gmx.net
> -----Original Message----- > From: Peter Eisentraut [mailto:peter_e@gmx.net] > Sent: 30 September 2002 21:11 > To: Dave Page > Cc: pgsql-odbc@postgresql.org; pgsql-hackers@postgresql.org > Subject: Re: [HACKERS] psqlODBC *nix Makefile (new 7.3 open item?) > > > Dave Page writes: > > > Can someone who knows make better than I (which is probably > the vast > > majority of you!) knock up a makefile so the driver will build > > standalone on *nix systems please? There should be no > dependencies on > > any of the rest of the code - certainly there isn't for the Win32 > > build. > > I'm working something out. I'll send it to you tomorrow. Thanks Peter.
Dave Page writes: > > > majority of you!) knock up a makefile so the driver will build > > > standalone on *nix systems please? There should be no > > dependencies on > > > any of the rest of the code - certainly there isn't for the Win32 > > > build. > > > > I'm working something out. I'll send it to you tomorrow. Hah. I tried to put something together based on Automake and Libtool, but I must conclude that Libtool is just completely utterly broken. I also considered copying over Makefile.shlib, but that would draw in too many auxiliary files and create a different kind of mess. So what I would suggest right now as the course of action is to copy your local psqlodbc subtree to its old location under interfaces/ and try to hook things together that way. Perhaps one of these days we should convert Makefile.shlib into a shell script that we can deploy more easily to different projects. -- Peter Eisentraut peter_e@gmx.net
> -----Original Message----- > From: Peter Eisentraut [mailto:peter_e@gmx.net] > Sent: 01 October 2002 21:05 > To: Dave Page > Cc: pgsql-odbc@postgresql.org; pgsql-hackers@postgresql.org > Subject: RE: [HACKERS] psqlODBC *nix Makefile (new 7.3 open item?) > > > Dave Page writes: > > > > > majority of you!) knock up a makefile so the driver will build > > > > standalone on *nix systems please? There should be no > > > dependencies on > > > > any of the rest of the code - certainly there isn't for > the Win32 > > > > build. > > > > > > I'm working something out. I'll send it to you tomorrow. > > Hah. I tried to put something together based on Automake and > Libtool, but I must conclude that Libtool is just completely > utterly broken. I also considered copying over > Makefile.shlib, but that would draw in too many auxiliary > files and create a different kind of mess. So what I would > suggest right now as the course of action is to copy your > local psqlodbc subtree to its old location under interfaces/ > and try to hook things together that way. > > Perhaps one of these days we should convert Makefile.shlib > into a shell script that we can deploy more easily to > different projects. Thanks for trying Peter. Are we going to get the same problems for the other bits (libpq++?) that we've ripped out? Is anyone looking at them, or have they just been dumped on Gborg & forgotten? Regards, Dave.
> -----Original Message----- > From: Peter Eisentraut [mailto:peter_e@gmx.net] > Sent: 01 October 2002 21:05 > To: Dave Page > Cc: pgsql-odbc@postgresql.org; pgsql-hackers@postgresql.org > Subject: RE: [HACKERS] psqlODBC *nix Makefile (new 7.3 open item?) > > > Dave Page writes: > > > > > majority of you!) knock up a makefile so the driver will build > > > > standalone on *nix systems please? There should be no > > > dependencies on > > > > any of the rest of the code - certainly there isn't for > the Win32 > > > > build. > > > > > > I'm working something out. I'll send it to you tomorrow. > > Hah. I tried to put something together based on Automake and > Libtool, but I must conclude that Libtool is just completely > utterly broken. I also considered copying over > Makefile.shlib, but that would draw in too many auxiliary > files and create a different kind of mess. So what I would > suggest right now as the course of action is to copy your > local psqlodbc subtree to its old location under interfaces/ > and try to hook things together that way. > > Perhaps one of these days we should convert Makefile.shlib > into a shell script that we can deploy more easily to > different projects. I have added README.unix to the psqlODBC CVS containing the following text: I assume the odbc options haven't been removed from the autoconf stuff? Regards, Dave. psqlODBC README for *nix Systems ================================ Since psqlODBC has be moved from the main PostgreSQL source tree, we have yet to create a new build system for the driver. Currently, in order to build under *nix systems, it is recommended that you copy the files in this directory to src/interfaces/odbc in your PostgreSQL source tree, then re-run configure with the required options from the top of the tree. The driver can then be built using make as per normal.