Update: perl-Win32-GUI, perl-libwin32

Gerrit P. Haase gp@familiehaase.de
Mon Feb 28 21:42:00 GMT 2005


Reini Urban wrote:

> Gerrit P. Haase schrieb:
>> gcc -shared -o  ODBC.dll -Wl,--out-implib=libODBC.dll.a 
>> -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
>> -s -L/usr/local/lib CMom.o Constant.o CResults.o ODBC.o Odbc.res 
>> /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/lib/w32api -lnetapi32 
>> -lwininet -lversion -lmpr -lodbc32 -lodbccp32 -lwinmm -lstdc++ -lole32 
>> -loleaut32 -luuid -lcomctl32 -lgdi32 -lcomdlg32 -lntdll
>> Creating library file: libODBC.dll.a
>> ODBC.o(.text+0x85e6):ODBC.cpp: undefined reference to 
>> `_SQLGetPrivateProfileString'
>> ODBC.o(.text+0x8bd2):ODBC.cpp: undefined reference to 
>> `_SQLGetPrivateProfileString'
>> ODBC.o(.text+0x1100d):ODBC.cpp: undefined reference to 
>> `_SQLConfigDataSource'
>> collect2: ld gab 1 als Ende-Status zur"uck
>> perlld: *** system() failed to execute
>> gcc -shared -o  ODBC.dll -Wl,--out-implib=libODBC.dll.a 
>> -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
>> -s -L/usr/local/lib CMom.o Constant.o CResults.o ODBC.o Odbc.res 
>> /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/lib/w32api -lnetapi32 
>> -lwininet -lversion -lmpr -lodbc32 -lodbccp32 -lwinmm -lstdc++ -lole32 
>> -loleaut32 -luuid -lcomctl32 -lgdi32 -lcomdlg32 -lntdll
> 
> 
> Hmm, -lodbccp32 (=> /lib/w32api/libodbccp32.a) should import those.
> Do you miss that? This was last changed 3 years ago. The very first 
> w32api version.
>     http://cvs.sourceforge.net/viewcvs.py/mingw/w32api/lib/
> 
> Or maybe you miss ODBCCP32.dll in $WINDIR/System32?

$ nm /lib/libodbccp32.a | grep ' _SQL'
nm: '/lib/libodbccp32.a': No such file

I have the import library in the right place:
$ nm /lib/w32api/libodbccp32.a | grep ' _SQL'
00000000 T _SQLGetPrivateProfileString@24
00000000 T _SQLConfigDataSource@16


Which version of gcc are you using?


>> Do I need to update w32api:
>> $ cygcheck -c w32api
>> Cygwin Package Information
>> Package              Version        Status
>> w32api               3.1-1          OK
>>
>> ?
> 
> 
> w32api-3.2-1 has some new definitions, but I thought that I check 
> against that dynamically in win32perl.h:
>   Older commctrl.h misses some defs, the jobs functions (Win32::Process)
>   need >= 2.2-1
> 
> I'll checkin a fix against the iodbcunix clash with 
> /usr/include/iodbcunix.h sooner or later (I already reported this clash 
> some months ago).
> But since this is no official package, please fix that on your side 
> first, so that this can go out.

Sounds fair;)


Gerrit
-- 
=^..^=



More information about the Cygwin-apps mailing list