Compilation Problem
Compilation Problem
От:
Cédric Bouttes <bouttes@ensam.inra.fr>
Дата:
I'm trying to install DBD-Pg-1.22 on CygWin. I have postgresql and DBI up and running but i can't get DBD-Pg-1.22 working. I receive the following error executing make: $ make rm -f blib/arch/auto/DBD/Pg/Pg.dll LD_RUN_PATH="" ld2 -s -L/usr/local/lib Pg.o dbdimp.o -o blib/arch/auto/DBD/Pg/ Pg.dll /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/libperl.dll.a -L/usr/lib -l pq gcc -shared -o Pg.dll -Wl,--out-implib=libPg.dll.a -Wl,--export-all-symbols -Wl ,--enable-auto-import -Wl,--stack,8388608 \ -s -L/usr/local/lib Pg.o dbdimp.o /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/ libperl.dll.a -L/usr/lib -lpq dbdimp.o(.text+0x2fde):dbdimp.c: variable '__ctype_' can't be auto-imported. Ple ase read the documentation for ld's --enable-auto-import for details. dbdimp.o(.text+0x2fee):dbdimp.c: variable '__ctype_' can't be auto-imported. Ple ase read the documentation for ld's --enable-auto-import for details. dbdimp.o(.text+0x2ffe):dbdimp.c: variable '__ctype_' can't be auto-imported. Ple ase read the documentation for ld's --enable-auto-import for details. Creating library file: libPg.dll.a collect2: ld returned 1 exit status perlld: *** system() failed to execute gcc -shared -o Pg.dll -Wl,--out-implib=libPg.dll.a -Wl,--export-all-symbols -Wl ,--enable-auto-import -Wl,--stack,8388608 \ -s -L/usr/local/lib Pg.o dbdimp.o /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/ libperl.dll.a -L/usr/lib -lpq make: *** [blib/arch/auto/DBD/Pg/Pg.dll] Error 1 What can the problem be??? Regards, Cédric.
Re: Compilation Problem
От:
Jason Tishler <jason@tishler.net>
Дата:
Cédric, On Fri, Oct 31, 2003 at 11:52:39AM +0100, Cédric Bouttes wrote: > gcc -shared -o Pg.dll -Wl,--out-implib=libPg.dll.a > -Wl,--export-all-symbols -Wl > ,--enable-auto-import -Wl,--stack,8388608 \ > -s -L/usr/local/lib Pg.o dbdimp.o > /usr/lib/perl5/5.8.0/cygwin-multi-64int/CORE/ > libperl.dll.a -L/usr/lib -lpq > dbdimp.o(.text+0x2fde):dbdimp.c: variable '__ctype_' can't be > auto-imported. Please read the documentation for ld's > --enable-auto-import for details. > [snip] > > What can the problem be??? The above is your problem. I would take the above to the Cygwin list -- you will get better help there. 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