Re: [ODBC] ODBC Unix distro building woes

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: <pgsql-odbc(at)postgresql(dot)org>, <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: [ODBC] ODBC Unix distro building woes
Date: 2002-11-12 08:37:37
Message-ID: 03AF4E498C591348A42FC93DEA9661B884C6@mail.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin pgsql-odbc

> -----Original Message-----
> From: Hiroshi Inoue [mailto:Inoue(at)tpf(dot)co(dot)jp]
> Sent: 12 November 2002 03:44
> To: Dave Page; Peter Eisentraut
> Cc: pgsql-odbc(at)postgresql(dot)org
> Subject: Re: [ODBC] ODBC Unix distro building woes
>
>
> Dave Page wrote:
> >
> > > -----Original Message-----
> > > From: Peter Eisentraut [mailto:peter_e(at)gmx(dot)net]
>
> [snip]
>
> > > Btw., I noticed that the latest version of the ODBC
> driver gets me a
> > > linker error "undefined symbol WinMain(at)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(at)12,_cygwin_dll_entry(at)12,_cygwin_
noncygwin_dll_entry(at)12,DllMainCRTStartup(at)12,DllEntryPoint(at)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(at)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(at)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.

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Hiroshi Inoue 2002-11-12 10:47:29 Re: [ODBC] ODBC Unix distro building woes
Previous Message Kevin Wong 2002-11-12 02:40:05 Re: Postgres Cygwin Install-as-Service on XP Pro/Home Mini

Browse pgsql-odbc by date

  From Date Subject
Next Message Tambet Matiisen 2002-11-12 08:38:24 Re: Referencial Link with ODBC
Previous Message Hiroshi Inoue 2002-11-12 06:07:52 Re: Referencial Link with ODBC