pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ODBC Unix distro building woes
12+ messages / 5 participants
[nested] [flat]

* ODBC Unix distro building woes
@ 2002-11-11 12:21 Dave Page <dpage@vale-housing.co.uk>
  2002-11-11 20:18 ` Re: ODBC Unix distro building woes Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 12+ messages in thread

From: Dave Page @ 2002-11-11 12:21 UTC (permalink / raw)
  To: pgsql-odbc; +Cc: Peter Eisentraut <peter_e@gmx.net>

Having recently changed my dev box from Slackware Linux to FreeBSD
4.6.2, I'm having trouble building the 07.02.0004 psqlodbc tarball.

I've got (following some upgrades):

Autoconf 2.53
Automake 1.6.3
Libtool 1.4.3
PostgreSQL 7.3b5

Everything seems to build OK, and I get a configure script which runs
nicely, however, when I run a make, all I get is:

make: don't know how to make odbc-drop.sql. Stop

The file in question is built from odbc.sql using a simple sed script in
the Makefile.

Any ideas please?

Regards, Dave.



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: ODBC Unix distro building woes
  2002-11-11 12:21 ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
@ 2002-11-11 20:18 ` Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 12+ messages in thread

From: Peter Eisentraut @ 2002-11-11 20:18 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc

Dave Page writes:

> make: don't know how to make odbc-drop.sql. Stop

Try using GNU make to build the distribution.  I'll research a fix in the
meantime.  (AFAIK, once the distribution is built, there should not be a
problem with other make programs.)

Btw., I noticed that the latest version of the ODBC driver gets me a
linker error "undefined symbol WinMain@16" on Cygwin.  This used to work a
while ago.

-- 
Peter Eisentraut   peter_e@gmx.net




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: ODBC Unix distro building woes
@ 2002-11-11 21:32 Dave Page <dpage@vale-housing.co.uk>
  2002-11-12 03:44 ` Re: ODBC Unix distro building woes Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 1 reply; 12+ messages in thread

From: Dave Page @ 2002-11-11 21:32 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-odbc



> -----Original Message-----
> From: Peter Eisentraut [mailto:peter_e@gmx.net] 
> Sent: 11 November 2002 20:18
> To: Dave Page
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: ODBC Unix distro building woes
> 
> 
> Dave Page writes:
> 
> > make: don't know how to make odbc-drop.sql. Stop
> 
> Try using GNU make to build the distribution.  I'll research 
> a fix in the meantime.  (AFAIK, once the distribution is 
> built, there should not be a problem with other make programs.)

Ack shoud have thought of that. Thanks.

> Btw., I noticed that the latest version of the ODBC driver 
> gets me a linker error "undefined symbol WinMain@16" on 
> Cygwin.  This used to work a while ago.

Hmm. I'll look into this tomorrow (unless you have any ideas Hiroshi?).

Regards, Dave.



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: ODBC Unix distro building woes
  2002-11-11 21:32 Re: ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
@ 2002-11-12 03:44 ` Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 0 replies; 12+ messages in thread

From: Hiroshi Inoue @ 2002-11-12 03:44 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-odbc

Dave Page wrote:
> 
> > -----Original Message-----
> > From: Peter Eisentraut [mailto:peter_e@gmx.net]

[snip]
 
> > Btw., I noticed that the latest version of the ODBC driver
> > gets me a linker error "undefined symbol WinMain@16" on
> > Cygwin.  This used to work a while ago.
> 
> Hmm. I'll look into this tomorrow (unless you have any ideas Hiroshi?).

It works here on cygwin.
Peter seems to be making a executable not a shared library.

regards,
Hiroshi Inoue
	http://w2422.nsk.ne.jp/~inoue/



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [ODBC] ODBC Unix distro building woes
@ 2002-11-12 08:37 Dave Page <dpage@vale-housing.co.uk>
  2002-11-12 10:47 ` Re: [ODBC] ODBC Unix distro building woes Hiroshi Inoue <Inoue@tpf.co.jp>
  2002-11-12 14:47 ` Re: [ODBC] ODBC Unix distro building woes Jess Regal <jess_regal@yahoo.com>
  0 siblings, 2 replies; 12+ messages in thread

From: Dave Page @ 2002-11-12 08:37 UTC (permalink / raw)
  To: Hiroshi Inoue <Inoue@tpf.co.jp>; Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-odbc; pgsql-cygwin@postgresql.org



> -----Original Message-----
> From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp] 
> Sent: 12 November 2002 03:44
> To: Dave Page; Peter Eisentraut
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] ODBC Unix distro building woes
> 
> 
> Dave Page wrote:
> > 
> > > -----Original Message-----
> > > From: Peter Eisentraut [mailto:peter_e@gmx.net]
> 
> [snip]
>  
> > > Btw., I noticed that the latest version of the ODBC 
> driver gets me a 
> > > linker error "undefined symbol WinMain@16" on Cygwin.  
> This used to 
> > > work a while ago.
> > 
> > Hmm. I'll look into this tomorrow (unless you have any ideas 
> > Hiroshi?).
> 
> It works here on cygwin.
> Peter seems to be making a executable not a shared library.

I just tried it here with the 7.2.4 distro, and I get the same error as
Peter:

...
...
(cd . && ln -s gpps.lo gpps.o)
generating symbol list for `psqlodbc.la'
 dlltool --export-all --exclude-symbols
DllMain@12,_cygwin_dll_entry@12,_cygwin_
noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
--output-def .libs/
psqlodbc.dll-def  info.lo bind.lo columninfo.lo connection.lo convert.lo
drvconn
.lo environ.lo execute.lo lobj.lo win_md5.lo misc.lo options.lo
pgtypes.lo psqlo
dbc.lo qresult.lo results.lo socket.lo parse.lo statement.lo tuple.lo
tuplelist.
lo dlg_specific.lo odbcapi.lo multibyte.lo gpps.lo
 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" <
.libs/psqlodbc.dll-d
ef > .libs/psqlodbc.exp
if test "x`sed 1q .libs/psqlodbc.exp`" = xEXPORTS; then cp
.libs/psqlodbc.exp .l
ibs/psqlodbc.dll-def; else echo EXPORTS > .libs/psqlodbc.dll-def;
_lt_hint=1; ca
t .libs/psqlodbc.exp | while read symbol; do set dummy $symbol; case $#
in 2) ec
ho " $2 @ $_lt_hint ; " >> .libs/psqlodbc.dll-def;; 4) echo " $2 $3 $4 ;
" >> .l
ibs/psqlodbc.dll-def; _lt_hint=`expr $_lt_hint - 1`;; *) echo " $2 @
$_lt_hint $
3 ; " >> .libs/psqlodbc.dll-def;; esac; _lt_hint=`expr 1 + $_lt_hint`;
done; fi
 gcc -Wl,--base-file,.libs/psqlodbc.dll-base
-Wl,-e,__cygwin_dll_entry@12 -o .li
bs/psqlodbc.dll  info.lo bind.lo columninfo.lo connection.lo convert.lo
drvconn.
lo environ.lo execute.lo lobj.lo win_md5.lo misc.lo options.lo
pgtypes.lo psqlod
bc.lo qresult.lo results.lo socket.lo parse.lo statement.lo tuple.lo
tuplelist.l
o dlg_specific.lo odbcapi.lo multibyte.lo gpps.lo
/usr/lib/libcygwin.a(libcmain.o)(.text+0x7c): undefined reference to
`WinMain@16
'
collect2: ld returned 1 exit status
make[1]: *** [psqlodbc.la] Error 1
make[1]: Leaving directory `/usr/local/src/psqlodbc-7.2.4'
make: *** [all] Error 2
PC9 $

I'm not sure what's causing it to be honest, but as Hiroshi says, it
does look like it's trying to build an exe (hence the WinMain). I've
CC'd this to the Cygwin list - maybe Jason has an idea.

Regards, Dave.



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [ODBC] ODBC Unix distro building woes
  2002-11-12 08:37 Re: [ODBC] ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
@ 2002-11-12 10:47 ` Hiroshi Inoue <Inoue@tpf.co.jp>
  2002-11-12 12:15   ` Re: [ODBC] ODBC Unix distro building woes Jason Tishler <jason@tishler.net>
  1 sibling, 1 reply; 12+ messages in thread

From: Hiroshi Inoue @ 2002-11-12 10:47 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: Peter Eisentraut <peter_e@gmx.net>; pgsql-odbc; pgsql-cygwin@postgresql.org

Dave Page wrote:
> 
> > -----Original Message-----
> > From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp]
> >
> > Dave Page wrote:
> > >
> > > > -----Original Message-----
> > > > From: Peter Eisentraut [mailto:peter_e@gmx.net]
> >
> > [snip]
> >
> > > > Btw., I noticed that the latest version of the ODBC
> > driver gets me a
> > > > linker error "undefined symbol WinMain@16" on Cygwin.
> > This used to
> > > > work a while ago.
> > >
> > > Hmm. I'll look into this tomorrow (unless you have any ideas
> > > Hiroshi?).
> >
> > It works here on cygwin.
> > Peter seems to be making a executable not a shared library.
> 
> I just tried it here with the 7.2.4 distro, and I get the same error as
> Peter:

Hmm I'm using /usr/autotool/devel/share/libtool/libtool.m4
on cygwin. Maybe it isn't the right one but seems to work
at least on cygwin. 

Hiroshi Inoue
	http://w2422.nsk.ne.jp/~inoue/



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [ODBC] ODBC Unix distro building woes
  2002-11-12 08:37 Re: [ODBC] ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
  2002-11-12 10:47 ` Re: [ODBC] ODBC Unix distro building woes Hiroshi Inoue <Inoue@tpf.co.jp>
@ 2002-11-12 12:15   ` Jason Tishler <jason@tishler.net>
  0 siblings, 0 replies; 12+ messages in thread

From: Jason Tishler @ 2002-11-12 12:15 UTC (permalink / raw)
  To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: Dave Page <dpage@vale-housing.co.uk>; Peter Eisentraut <peter_e@gmx.net>; pgsql-odbc; pgsql-cygwin@postgresql.org

Hiroshi,
Dave,
Peter,

On Tue, Nov 12, 2002 at 07:47:29PM +0900, Hiroshi Inoue wrote:
> Dave Page wrote:
> > > -----Original Message-----
> > > From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp]
> > > Dave Page wrote:
> > > > > -----Original Message-----
> > > > > From: Peter Eisentraut [mailto:peter_e@gmx.net]
> > > [snip]
> > > > > Btw., I noticed that the latest version of the ODBC driver
> > > > > gets me a linker error "undefined symbol WinMain@16" on
> > > > > Cygwin.  This used to work a while ago.
> > > >
> > > > Hmm. I'll look into this tomorrow (unless you have any ideas
> > > > Hiroshi?).
> > >
> > > It works here on cygwin.  Peter seems to be making a executable
> > > not a shared library.
> > 
> > I just tried it here with the 7.2.4 distro, and I get the same error
> > as Peter:
> 
> Hmm I'm using /usr/autotool/devel/share/libtool/libtool.m4 on cygwin.
> Maybe it isn't the right one but seems to work at least on cygwin. 

A comparison of Hiroshi's output of the following:

    $ cygcheck -c | egrep auto\|libtool

to Dave's and Peter's should help to determine which versions work and
which don't

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [ODBC] ODBC Unix distro building woes
  2002-11-12 08:37 Re: [ODBC] ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
@ 2002-11-12 14:47 ` Jess Regal <jess_regal@yahoo.com>
  2002-11-12 15:04   ` Re: [ODBC] ODBC Unix distro building woes Jason Tishler <jason@tishler.net>
  1 sibling, 1 reply; 12+ messages in thread

From: Jess Regal @ 2002-11-12 14:47 UTC (permalink / raw)
  To: pgsql-cygwin@postgresql.org

Yesterday, I was having trouble building anything
short of a hello.c, and I was getting similar
"undefined symbol WinMain@16" errors.  After hours of
fiddling, I finally ran the cygwin setup and figured
out that, at some point, I had unwittingly upgraded to
binutils-20021107-1.  There was a second release
available, binutils-20021107-2, which I promptly
updated, along with some other packages.  My problems
magically disappeared.  I wish I could be more
specific, but I don't think it's going to happen. 
Based on file dates, I believe I updated the following
packages:
binutils
gcc
login

I don't know how helpful this information will be, but
I figured I would try.

-Jess

--- Dave Page <dpage@vale-housing.co.uk> wrote:
> 
> 
> > -----Original Message-----
> > From: Hiroshi Inoue [mailto:Inoue@tpf.co.jp] 
> > Sent: 12 November 2002 03:44
> > To: Dave Page; Peter Eisentraut
> > Cc: pgsql-odbc@postgresql.org
> > Subject: Re: [ODBC] ODBC Unix distro building woes
> > 
> > 
> > Dave Page wrote:
> > > 
> > > > -----Original Message-----
> > > > From: Peter Eisentraut
> [mailto:peter_e@gmx.net]
> > 
> > [snip]
> >  
> > > > Btw., I noticed that the latest version of the
> ODBC 
> > driver gets me a 
> > > > linker error "undefined symbol WinMain@16" on
> Cygwin.  
> > This used to 
> > > > work a while ago.
> > > 
> > > Hmm. I'll look into this tomorrow (unless you
> have any ideas 
> > > Hiroshi?).
> > 
> > It works here on cygwin.
> > Peter seems to be making a executable not a shared
> library.
> 
[snip]

__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [ODBC] ODBC Unix distro building woes
  2002-11-12 08:37 Re: [ODBC] ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
  2002-11-12 14:47 ` Re: [ODBC] ODBC Unix distro building woes Jess Regal <jess_regal@yahoo.com>
@ 2002-11-12 15:04   ` Jason Tishler <jason@tishler.net>
  2002-11-13 21:38     ` Re: [ODBC] ODBC Unix distro building woes Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 12+ messages in thread

From: Jason Tishler @ 2002-11-12 15:04 UTC (permalink / raw)
  To: Jess Regal <jess_regal@yahoo.com>; +Cc: pgsql-cygwin@postgresql.org

Jess,

On Tue, Nov 12, 2002 at 06:47:53AM -0800, Jess Regal wrote:
> Yesterday, I was having trouble building anything short of a hello.c,
> and I was getting similar "undefined symbol WinMain@16" errors.  After
> hours of fiddling, I finally ran the cygwin setup and figured out
> that, at some point, I had unwittingly upgraded to
> binutils-20021107-1.  There was a second release available,
> binutils-20021107-2, which I promptly updated, along with some other
> packages.  My problems magically disappeared.

I think that you hit it on the head!

    http://cygwin.com/ml/cygwin-announce/2002-11/msg00007.html

Dave, Peter, if you have binutils 20021107-1, then please upgrade.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [ODBC] ODBC Unix distro building woes
  2002-11-12 08:37 Re: [ODBC] ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
  2002-11-12 14:47 ` Re: [ODBC] ODBC Unix distro building woes Jess Regal <jess_regal@yahoo.com>
  2002-11-12 15:04   ` Re: [ODBC] ODBC Unix distro building woes Jason Tishler <jason@tishler.net>
@ 2002-11-13 21:38     ` Peter Eisentraut <peter_e@gmx.net>
  2002-11-15 19:57       ` Re: [ODBC] ODBC Unix distro building woes Jason Tishler <jason@tishler.net>
  0 siblings, 1 reply; 12+ messages in thread

From: Peter Eisentraut @ 2002-11-13 21:38 UTC (permalink / raw)
  To: Jason Tishler <jason@tishler.net>; +Cc: Jess Regal <jess_regal@yahoo.com>; pgsql-cygwin@postgresql.org

Jason Tishler writes:

> Dave, Peter, if you have binutils 20021107-1, then please upgrade.

I was already using the -2 release.

-- 
Peter Eisentraut   peter_e@gmx.net




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [ODBC] ODBC Unix distro building woes
  2002-11-12 08:37 Re: [ODBC] ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
  2002-11-12 14:47 ` Re: [ODBC] ODBC Unix distro building woes Jess Regal <jess_regal@yahoo.com>
  2002-11-12 15:04   ` Re: [ODBC] ODBC Unix distro building woes Jason Tishler <jason@tishler.net>
  2002-11-13 21:38     ` Re: [ODBC] ODBC Unix distro building woes Peter Eisentraut <peter_e@gmx.net>
@ 2002-11-15 19:57       ` Jason Tishler <jason@tishler.net>
  0 siblings, 0 replies; 12+ messages in thread

From: Jason Tishler @ 2002-11-15 19:57 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Jess Regal <jess_regal@yahoo.com>; pgsql-cygwin@postgresql.org

Peter,

On Wed, Nov 13, 2002 at 10:38:21PM +0100, Peter Eisentraut wrote:
> Jason Tishler writes:
> > Dave, Peter, if you have binutils 20021107-1, then please upgrade.
> 
> I was already using the -2 release.

I was able to build psqlodbc-7.2.4 using the following Cygwin
development tool versions:

    $ cygcheck -c | egrep 'auto|libtool|gcc|binutils'
    autoconf            2.53-1              
    autoconf-devel      2.53-1              
    autoconf-stable     2.13-4              
    automake            1.6.2-1             
    automake-devel      1.6.2-1             
    automake-stable     1.4p5-5             
    binutils            20011002-1          
    gcc                 2.95.3-5            
    libtool             20020705-1          
    libtool-devel       20020705-2          
    libtool-stable      1.4.2-2

As you can see, I have not upgraded to the latest versions (for various
reasons -- some good, some bad).  Sorry, that I can't be more helpful.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: [ODBC] ODBC Unix distro building woes
@ 2002-11-12 14:13 Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 12+ messages in thread

From: Dave Page @ 2002-11-12 14:13 UTC (permalink / raw)
  To: Jason Tishler <jason@tishler.net>; Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: Peter Eisentraut <peter_e@gmx.net>; pgsql-odbc; pgsql-cygwin@postgresql.org



> -----Original Message-----
> From: Jason Tishler [mailto:jason@tishler.net] 
> Sent: 12 November 2002 12:15
> To: Hiroshi Inoue
> Cc: Dave Page; Peter Eisentraut; pgsql-odbc@postgresql.org; 
> pgsql-cygwin@postgresql.org
> Subject: Re: [CYGWIN] [ODBC] ODBC Unix distro building woes
> 
> 
> A comparison of Hiroshi's output of the following:
> 
>     $ cygcheck -c | egrep auto\|libtool
> 
> to Dave's and Peter's should help to determine which versions 
> work and which don't
> 

I'm beginning to suspect that due to the lack of libtool on my system
(how the heck did that happen!?), configure is trying to create an exe
for me :-)

A quick (well, alright, slow) upgrade later and I have:

PC9 $ cygcheck -c | egrep auto\|libtool
autoconf            2.53b-1
autoconf-devel      2.53a-1
autoconf-stable     2.13-4
automake            1.6.2-1
automake-devel      1.6.2-1
automake-stable     1.4p5-5
libtool             20020705-1
libtool-devel       20020705-2
libtool-stable      1.4.2-2

And yet still it fails :-(

Regards, Dave.




^ permalink  raw  reply  [nested|flat] 12+ messages in thread


end of thread, other threads:[~2002-11-15 19:57 UTC | newest]

Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-11 12:21 ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
2002-11-11 20:18 ` Peter Eisentraut <peter_e@gmx.net>
2002-11-11 21:32 Re: ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
2002-11-12 03:44 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2002-11-12 08:37 Re: [ODBC] ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>
2002-11-12 10:47 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2002-11-12 12:15   ` Jason Tishler <jason@tishler.net>
2002-11-12 14:47 ` Jess Regal <jess_regal@yahoo.com>
2002-11-12 15:04   ` Jason Tishler <jason@tishler.net>
2002-11-13 21:38     ` Peter Eisentraut <peter_e@gmx.net>
2002-11-15 19:57       ` Jason Tishler <jason@tishler.net>
2002-11-12 14:13 Re: [ODBC] ODBC Unix distro building woes Dave Page <dpage@vale-housing.co.uk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox