Обсуждение: Re: Fwd: building the client libraries with gcc?

Поиск
Список
Период
Сортировка

Re: Fwd: building the client libraries with gcc?

От
Jason Tishler
Дата:
Jerry,

Please post to pgsql-cygwin@postgresql.org instead of sending private
email so others can benefit too.

On Tue, Jun 05, 2001 at 09:34:31AM -0700, Jerry Asher wrote:
> > > Have you tried to build the client libraries using just gcc and cygwin
> > > tools?  Can you offer any hints or advice?
> >
> >You can try Mingw or Cygwin's gcc -mno-cygwin, but I have never tried to
> >do this myself.  Otherwise, you can download a pre-built (using MSVC++),
> >*BUT UNTESTED* libpq.dll and libpqdll.lib from:
> >
> >http://members.home.net/jtishler/software/postgresql/postgresql-7.1.2-1-win32.tar.gz

On Thu, May 31, 2001 at 09:50:05AM -0700, Jerry Asher wrote:
> I need to build the postgres driver used by the opensource aolserver
> webserver.  As the phrase driver implies, this little piece of glue enables
> aolserver applications to interact with postgres.
>
> I have successfully built pg 7.1.2 on cygwin, but find that my driver needs
> a piece of pg that isn't built with the standard 7.1.2 cygwin
> configuration, namely: I need pglib.dll and pglibdll.lib, the dll and the
> library interace.  (I gather these are referred to as the client libraries.)

I thought that I was providing you for what you were looking in
postgresql-7.1.2-1-win32.tar.gz.

>
> I think what I need is neither mingw nor mno-cygwin (but thank you for
> pointing those out, I learn more everyday).  I think what I need is more
> like a gcc and make front-end that implements a cygwin solution, but uses
> the Microsoft syntaxes for say vc++ arguments and make
> arguments.  Right?  The problems I am having with the pg client libs are
> probably two: one is that the pg client libs are built using microsoft
> tools, and two is that they may not be using gcc compatible (ansi?)
> C.  Assuming they are ansi c, then to build them easily I would just need
> some sort of microsoft nmake emulator....

The above is very confusing and difficult to understand.  Are you trying
to build a Win32 version of the pg client libs?  Are you trying to use
(i.e., link with) a Win32 version of the pg client libs?  What are the
tools used to build your AOLserver stuff?  Please try to post a lucid
account of what you are trying to accomplish.

BTW, you can link MSVC++ libraries into Mingw and Cygwin gcc -mno-cygwin
executables and vice versa.

> I've downloaded the client libs you've put together.  It looks as though I
> will most likely have to dig out my VCC+ disks somewhere.
>
> Let's say that in the very long run, I convert the pg client libs back to a
> cygwin/gcc/make compatible format.  Where should I go to contribute that back?

Why are you asking me the above?  This kind of question is much more
appropriate for one of the PostgreSQL mailing lists.  BTW, the pg
client libs already exist in cygwin/gcc/make compatible format.

Jason

--
Jason Tishler
Director, Software Engineering       Phone: 732.264.8770 x235
Dot Hill Systems Corp.               Fax:   732.264.8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

Re: Fwd: building the client libraries with gcc?

От
Jerry Asher
Дата:
  . . .

>I thought that I was providing you for what you were looking in
>postgresql-7.1.2-1-win32.tar.gz.

Oh absolutely, and thank you, but as you've pointed out it's untested,
right?  And I assume that in the medium to long term you'd rather not have
me come pester you for this update or that debuggable version, etc.

 > Let's say that in the very long run, I convert the pg client libs back to a
> > cygwin/gcc/make compatible format.  Where should I go to contribute
> that back?
>
>Why are you asking me the above?  This kind of question is much more
>appropriate for one of the PostgreSQL mailing lists.

Um, but I thought this was a postgres mailing list....

Anyway, I think this next line of yours is the key to my answers.....

>BTW, the pg
>client libs already exist in cygwin/gcc/make compatible format.

Okay, so I'm wearing my moron hat for the next three hours.  I read the
client lib instructions (in doc/src/sgml/install-win32.sgml) that basically
say that client libs require VC++ to build, and I left it at that, and
didn't check the directory to find the obvious Makefile.

Thank you,

Jerry

=====================================================
Jerry Asher                       jerry@hollyjerry.org
1678 Shattuck Avenue Suite 161    Tel: (510) 549-2980
Berkeley, CA 94709                Fax: (877) 311-8688


Re: Fwd: building the client libraries with gcc?

От
Jason Tishler
Дата:
Jerry,

On Tue, Jun 05, 2001 at 02:28:20PM -0700, Jerry Asher wrote:
> > > Let's say that in the very long run, I convert the pg client libs back
> > > to a cygwin/gcc/make compatible format.  Where should I go to contribute
> > > that back?
> >
> >Why are you asking me the above?  This kind of question is much more
> >appropriate for one of the PostgreSQL mailing lists.
>
> Um, but I thought this was a postgres mailing list....

The above was originally sent to me via private email -- it was not
posted to the list.

> Okay, so I'm wearing my moron hat for the next three hours.  I read the
> client lib instructions (in doc/src/sgml/install-win32.sgml) that basically
> say that client libs require VC++ to build, and I left it at that, and
> didn't check the directory to find the obvious Makefile.

I'm glad that you finally found for what you were looking.  And, it was
right there on your disk all along. :,)

Jason

--
Jason Tishler
Director, Software Engineering       Phone: 732.264.8770 x235
Dot Hill Systems Corp.               Fax:   732.264.8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com