This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Prob installing Perl DBI - can't find cygperl5_10.dll on 1.7.3


After being away from cygwin for a number of years, I'm running a brand spanking new install of cygwin 1.7.3 on a new Dell Studio laptop running Win7 Pro.

cygcheck output is attached.

The first thing I have done on this new cygwin install is to download Perl's DBI package from CPAN. I logged into a Win7 admin account, brought up a cygwin window, unpacked the tarball, and followed the usual install procedure.

"perl Makefile.PL" seemed to go fine.

"make" began well but then ended with the following (more comments follow):
-------------8<----------------------------------------------
...
...
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
/usr/bin/perl.exe -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/bin/perl.exe /usr/lib/perl5/5.10/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.10/ExtUtils
/typemap -typemap typemap Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protect
or -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"1.609\" -DXS_VERSION=\"1.609\" "-I
/usr/lib/perl5/5.10/i686-cygwin/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-com
ment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter Perl.c
/usr/bin/perl.exe /usr/lib/perl5/5.10/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.10/ExtUtils
/typemap -typemap typemap DBI.xs > DBI.xsc && mv DBI.xsc DBI.c
gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protect
or -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"1.609\" -DXS_VERSION=\"1.609\" "-I
/usr/lib/perl5/5.10/i686-cygwin/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-com
ment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter DBI.c
DBI.xs: In function `set_err_sv':
DBI.xs:623: warning: value computed is not used
DBI.xs: In function `dbih_setup_handle':
DBI.xs:1289: warning: value computed is not used
DBI.xs:1290: warning: value computed is not used
DBI.xs:1295: warning: value computed is not used
DBI.xs:1298: warning: value computed is not used
DBI.xs: In function `dbih_set_attr_k':
DBI.xs:1926: warning: value computed is not used
DBI.xs: In function `dbih_get_attr_k':
DBI.xs:2017: warning: value computed is not used
DBI.xs:2241: warning: value computed is not used
DBI.xs: In function `_profile_next_node':
DBI.xs:2447: warning: value computed is not used
DBI.xs: In function `XS_DBI_dispatch':
DBI.xs:3000: warning: value computed is not used
DBI.xs:3075: warning: value computed is not used
DBI.xs: In function `XS_DBI__new_handle':
DBI.xs:4092: warning: value computed is not used
DBI.xs: In function `XS_DBD_____st_fetchrow_hashref':
DBI.xs:4801: warning: value computed is not used
rm -f blib/arch/auto/DBI/DBI.dll
g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--stack,8388608 -Wl,--e
nable-auto-image-base -L/usr/local/lib -fstack-protector DBI.o -o blib/arch/auto/DBI/DBI.dl
l \
/usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll \


g++.exe: /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll: No such file or directory
make: *** [blib/arch/auto/DBI/DBI.dll] Error 1
-------------8<----------------------------------------------


So... cygperl5_10.dll seems to be inaccessable. Let's copy/paste the full path into an 'ls' command and take a look:
-------------8<----------------------------------------------
admin@DavidDell ~/DBI-1.609
$ ls -l /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll
lrwxrwxrwx 1 admin root 24 2010-04-05 15:47 /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll -> /usr/bin/cygperl5_10.dll
-------------8<----------------------------------------------


It's a link. Okay, let's look at the actual file:
-------------8<----------------------------------------------
admin@DavidDell ~/DBI-1.609
$ ls -l /usr/bin/cygperl5_10.dll
-rwxr-xr-x 1 admin root 1590565 2009-12-19 08:20 /usr/bin/cygperl5_10.dll
-------------8<----------------------------------------------

That looks to me like it should be accessable. I've deleted the entire cygwin directory a couple times, re-installed cygwin, and started fresh again. Same result each time.

Am I miss-reading the meaning of the error message?

Does g++ dislike following links? It would be easy to replace the link with a dup copy of the file, but that could break stuff like future updates to cygwin itself so I'd rather not go there unless advised so by well-practiced cygwinians.

This seems so straight-forward; I am out of things to investigate or try.

I can find no reference to this issue on the entire GoogleWeb. (Not to say the cygwin.com site). Is it perhaps new with 1.7.3?

Any solutions, clues, advice, diagnostics to try, manual references, etc. would be greatly appreciated. Getting up and running with a working perl-mysql connection is, um, sorta crucial to a lot of stuff for me.

TIA
David

Attachment: cygcheck.out
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]