Perl script using REST::Client works with Perl.exe but not compiled exe [duplicate] - perl

I was trying to connect to a remote host via LWP::UserAgent, but when I was trying to make it work with HTTPS I received a message that
LWP::Protocol::https need to be installed. (Perl 5.10.1, CentOS 6)
I've tried to install this module with "CPAN" and with "make" and there were some errors. I've also tried to make a forced install of LWP::Protocol::https, now it is in list of installed modules (ExtUtils::Installed shows it), but the script still writes me 501 Protocol scheme 'https' is not supported (LWP::Protocol::https not installed).
First I needed to add ExtUtils::CBuilder and ExtUtils::MakeMaker. Then I've tried to install Crypt::SSLeay, but I receive these messages:
Crypt-SSLeay-0.64/t/
Crypt-SSLeay-0.64/TODO
Crypt-SSLeay-0.64/typemap
Crypt-SSLeay-0.64/t/00-basic.t
Crypt-SSLeay-0.64/t/01-connect.t
Crypt-SSLeay-0.64/t/02-live.t
Crypt-SSLeay-0.64/lib/Crypt/
Crypt-SSLeay-0.64/lib/Net/
Crypt-SSLeay-0.64/lib/Net/SSL.pm
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/Conn.pm
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/CTX.pm
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/Err.pm
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/MainContext.pm
Crypt-SSLeay-0.64/lib/Crypt/SSLeay/X509.pm
Crypt-SSLeay-0.64/eg/lwp-ssl-test
Crypt-SSLeay-0.64/eg/net-ssl-test
Crypt-SSLeay-0.64/certs/ca-bundle.crt
Crypt-SSLeay-0.64/certs/notacacert.pem
Crypt-SSLeay-0.64/certs/notacakeynopass.pem
CPAN: File::Temp loaded ok (v0.2301)
CPAN: Parse::CPAN::Meta loaded ok (v1.4409)
CPAN: CPAN::Meta loaded ok (v2.132661)
CPAN: Module::CoreList loaded ok (v2.99)
CPAN.pm: Building N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz
The test suite can attempt to connect to public servers to ensure that the
code is working properly. If you are behind a strict firewall or have no
network connectivity, these tests may fail (through no fault of the code).
Do you want to run the live tests (y/N)? [N] y
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lssl32
Warning (mostly harmless): No library found for -lssleay32
Warning (mostly harmless): No library found for -leay32
Generating a GNU-style Makefile
Writing Makefile for Crypt::SSLeay
Writing MYMETA.yml and MYMETA.json
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/usr/bin/perl /usr/local/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.64\" -DXS_VERSION=\"0.64\" -fPIC "-I/usr/lib64/perl5/CORE" SSLeay.c
SSLeay.xs:35:25: error: openssl/ssl.h: No such file or directory
SSLeay.xs:36:28: error: openssl/crypto.h: No such file or directory
SSLeay.xs:37:25: error: openssl/err.h: No such file or directory
SSLeay.xs:38:26: error: openssl/rand.h: No such file or directory
SSLeay.xs:39:28: error: openssl/pkcs12.h: No such file or directory
SSLeay.xs:55: warning: type defaults to ?-=int?-= in declaration of ?-=SSL?-=
SSLeay.xs:55: error: expected ?-=;?-=, ?-=,?-= or ?-=)?-= before ?-=*?-= token
SSLeay.xs: In function ?-=XS_Crypt__SSLeay__Err_get_error_string?-=:
SSLeay.xs:98: warning: implicit declaration of function ?-=ERR_get_error?-=
SSLeay.xs:101: warning: implicit declaration of function ?-=ERR_error_string?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__CTX_new?-=:
SSLeay.c:276: error: ?-=SSL_CTX?-= undeclared (first use in this function)
SSLeay.c:276: error: (Each undeclared identifier is reported only once
SSLeay.c:276: error: for each function it appears in.)
SSLeay.c:276: error: ?-=RETVAL?-= undeclared (first use in this function)
SSLeay.xs:114: error: ?-=ctx?-= undeclared (first use in this function)
SSLeay.xs:120: warning: implicit declaration of function ?-=SSLeay_add_all_algorithms?-=
SSLeay.xs:121: warning: implicit declaration of function ?-=SSL_load_error_strings?-=
SSLeay.xs:122: warning: implicit declaration of function ?-=ERR_load_crypto_strings?-=
SSLeay.xs:123: warning: implicit declaration of function ?-=SSL_library_init?-=
SSLeay.xs:129: warning: implicit declaration of function ?-=RAND_load_file?-=
SSLeay.xs:134: warning: implicit declaration of function ?-=RAND_seed?-=
SSLeay.xs:138: warning: implicit declaration of function ?-=SSL_CTX_new?-=
SSLeay.xs:138: warning: implicit declaration of function ?-=SSLv23_client_method?-=
SSLeay.xs:141: warning: implicit declaration of function ?-=SSLv3_client_method?-=
SSLeay.xs:146: warning: implicit declaration of function ?-=SSLv2_client_method?-=
SSLeay.xs:153: warning: implicit declaration of function ?-=SSL_CTX_set_options?-=
SSLeay.xs:153: error: ?-=SSL_OP_ALL?-= undeclared (first use in this function)
SSLeay.xs:154: warning: implicit declaration of function ?-=SSL_CTX_set_default_verify_paths?-=
SSLeay.xs:155: warning: implicit declaration of function ?-=SSL_CTX_set_verify?-=
SSLeay.xs:155: error: ?-=SSL_VERIFY_NONE?-= undeclared (first use in this function)
SSLeay.c:272: warning: unused variable ?-=packname?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__CTX_free?-=:
SSLeay.c:336: error: ?-=SSL_CTX?-= undeclared (first use in this function)
SSLeay.c:336: error: ?-=ctx?-= undeclared (first use in this function)
SSLeay.c:340: error: expected expression before ?-=)?-= token
SSLeay.c:346: warning: implicit declaration of function ?-=SSL_CTX_free?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__CTX_set_cipher_list?-=:
SSLeay.c:359: error: ?-=SSL_CTX?-= undeclared (first use in this function)
SSLeay.c:359: error: ?-=ctx?-= undeclared (first use in this function)
SSLeay.c:367: error: expected expression before ?-=)?-= token
SSLeay.c:373: warning: implicit declaration of function ?-=SSL_CTX_set_cipher_list?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__CTX_use_certificate_file?-=:
SSLeay.c:387: error: ?-=SSL_CTX?-= undeclared (first use in this function)
SSLeay.c:387: error: ?-=ctx?-= undeclared (first use in this function)
SSLeay.c:397: error: expected expression before ?-=)?-= token
SSLeay.c:403: warning: implicit declaration of function ?-=SSL_CTX_use_certificate_file?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__CTX_use_PrivateKey_file?-=:
SSLeay.c:417: error: ?-=SSL_CTX?-= undeclared (first use in this function)
SSLeay.c:417: error: ?-=ctx?-= undeclared (first use in this function)
SSLeay.c:427: error: expected expression before ?-=)?-= token
SSLeay.c:433: warning: implicit declaration of function ?-=SSL_CTX_use_PrivateKey_file?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__CTX_use_pkcs12_file?-=:
SSLeay.c:447: error: ?-=SSL_CTX?-= undeclared (first use in this function)
SSLeay.c:447: error: ?-=ctx?-= undeclared (first use in this function)
SSLeay.xs:188: error: ?-=EVP_PKEY?-= undeclared (first use in this function)
SSLeay.xs:188: error: ?-=pkey?-= undeclared (first use in this function)
SSLeay.xs:189: error: ?-=X509?-= undeclared (first use in this function)
SSLeay.xs:189: error: ?-=cert?-= undeclared (first use in this function)
SSLeay.xs:190: warning: implicit declaration of function ?-=STACK_OF?-=
SSLeay.xs:190: error: ?-=ca?-= undeclared (first use in this function)
SSLeay.xs:191: error: ?-=PKCS12?-= undeclared (first use in this function)
SSLeay.xs:191: error: ?-=p12?-= undeclared (first use in this function)
SSLeay.c:464: error: expected expression before ?-=)?-= token
SSLeay.xs:194: warning: implicit declaration of function ?-=d2i_PKCS12_fp?-=
SSLeay.xs:198: warning: implicit declaration of function ?-=PKCS12_parse?-=
SSLeay.xs:200: warning: implicit declaration of function ?-=SSL_CTX_use_PrivateKey?-=
SSLeay.xs:201: warning: implicit declaration of function ?-=EVP_PKEY_free?-=
SSLeay.xs:204: warning: implicit declaration of function ?-=SSL_CTX_use_certificate?-=
SSLeay.xs:205: warning: implicit declaration of function ?-=X509_free?-=
SSLeay.xs:208: warning: implicit declaration of function ?-=PKCS12_free?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__CTX_check_private_key?-=:
SSLeay.c:502: error: ?-=SSL_CTX?-= undeclared (first use in this function)
SSLeay.c:502: error: ?-=ctx?-= undeclared (first use in this function)
SSLeay.c:508: error: expected expression before ?-=)?-= token
SSLeay.c:514: warning: implicit declaration of function ?-=SSL_CTX_check_private_key?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__CTX_set_verify?-=:
SSLeay.c:528: error: ?-=SSL_CTX?-= undeclared (first use in this function)
SSLeay.c:528: error: ?-=ctx?-= undeclared (first use in this function)
SSLeay.c:537: error: expected expression before ?-=)?-= token
SSLeay.xs:230: error: ?-=SSL_VERIFY_NONE?-= undeclared (first use in this function)
SSLeay.xs:234: warning: implicit declaration of function ?-=SSL_CTX_load_verify_locations?-=
SSLeay.xs:235: error: ?-=SSL_VERIFY_PEER?-= undeclared (first use in this function)
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_new?-=:
SSLeay.c:572: error: ?-=SSL_CTX?-= undeclared (first use in this function)
SSLeay.c:572: error: ?-=ctx?-= undeclared (first use in this function)
SSLeay.xs:249: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.xs:249: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:578: error: ?-=RETVAL?-= undeclared (first use in this function)
SSLeay.c:582: error: expected expression before ?-=)?-= token
SSLeay.xs:251: warning: implicit declaration of function ?-=SSL_new?-=
SSLeay.xs:252: warning: implicit declaration of function ?-=SSL_set_connect_state?-=
SSLeay.xs:266: warning: implicit declaration of function ?-=SSL_set_info_callback?-=
SSLeay.xs:266: error: ?-=InfoCallback?-= undeclared (first use in this function)
SSLeay.xs:273: warning: implicit declaration of function ?-=SSL_set_fd?-=
SSLeay.c:570: warning: unused variable ?-=packname?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_free?-=:
SSLeay.c:628: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.c:628: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:632: error: expected expression before ?-=)?-= token
SSLeay.c:638: warning: implicit declaration of function ?-=SSL_free?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_set_fd?-=:
SSLeay.c:651: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.c:651: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:659: error: expected expression before ?-=)?-= token
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_connect?-=:
SSLeay.c:679: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.c:679: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:685: error: expected expression before ?-=)?-= token
SSLeay.c:691: warning: implicit declaration of function ?-=SSL_connect?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_accept?-=:
SSLeay.c:705: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.c:705: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:711: error: expected expression before ?-=)?-= token
SSLeay.c:717: warning: implicit declaration of function ?-=SSL_accept?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_write?-=:
SSLeay.c:731: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.c:731: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:743: error: expected expression before ?-=)?-= token
SSLeay.xs:333: warning: implicit declaration of function ?-=SSL_write?-=
SSLeay.xs:334: warning: implicit declaration of function ?-=SSL_get_error?-=
SSLeay.xs:345: error: ?-=SSL_ERROR_WANT_READ?-= undeclared (first use in this function)
SSLeay.xs:346: error: ?-=SSL_ERROR_WANT_WRITE?-= undeclared (first use in this function)
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_read?-=:
SSLeay.c:811: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.c:811: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:825: error: expected expression before ?-=)?-= token
SSLeay.xs:398: warning: implicit declaration of function ?-=SSL_read?-=
SSLeay.xs:412: error: ?-=SSL_ERROR_WANT_READ?-= undeclared (first use in this function)
SSLeay.xs:413: error: ?-=SSL_ERROR_WANT_WRITE?-= undeclared (first use in this function)
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_get_peer_certificate?-=:
SSLeay.c:898: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.c:898: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:899: error: ?-=X509?-= undeclared (first use in this function)
SSLeay.c:899: error: ?-=RETVAL?-= undeclared (first use in this function)
SSLeay.c:903: error: expected expression before ?-=)?-= token
SSLeay.c:909: warning: implicit declaration of function ?-=SSL_get_peer_certificate?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_get_verify_result?-=:
SSLeay.c:924: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.c:924: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:929: error: expected expression before ?-=)?-= token
SSLeay.xs:432: warning: implicit declaration of function ?-=SSL_get_verify_result?-=
SSLeay.xs:432: error: ?-=X509_V_OK?-= undeclared (first use in this function)
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_get_shared_ciphers?-=:
SSLeay.c:951: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.c:951: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:960: error: expected expression before ?-=)?-= token
SSLeay.xs:442: warning: implicit declaration of function ?-=SSL_get_shared_ciphers?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__Conn_get_cipher?-=:
SSLeay.c:981: error: ?-=SSL?-= undeclared (first use in this function)
SSLeay.c:981: error: ?-=ssl?-= undeclared (first use in this function)
SSLeay.c:987: error: expected expression before ?-=)?-= token
SSLeay.xs:450: warning: implicit declaration of function ?-=SSL_get_cipher?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__X509_free?-=:
SSLeay.c:1037: error: ?-=X509?-= undeclared (first use in this function)
SSLeay.c:1037: error: ?-=cert?-= undeclared (first use in this function)
SSLeay.c:1041: error: expected expression before ?-=)?-= token
SSLeay.c: In function ?-=XS_Crypt__SSLeay__X509_subject_name?-=:
SSLeay.c:1060: error: ?-=X509?-= undeclared (first use in this function)
SSLeay.c:1060: error: ?-=cert?-= undeclared (first use in this function)
SSLeay.c:1068: error: expected expression before ?-=)?-= token
SSLeay.xs:475: warning: implicit declaration of function ?-=X509_NAME_oneline?-=
SSLeay.xs:475: warning: implicit declaration of function ?-=X509_get_subject_name?-=
SSLeay.xs:477: warning: implicit declaration of function ?-=OPENSSL_free?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__X509_issuer_name?-=:
SSLeay.c:1092: error: ?-=X509?-= undeclared (first use in this function)
SSLeay.c:1092: error: ?-=cert?-= undeclared (first use in this function)
SSLeay.c:1100: error: expected expression before ?-=)?-= token
SSLeay.xs:487: warning: implicit declaration of function ?-=X509_get_issuer_name?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__X509_get_notBeforeString?-=:
SSLeay.c:1124: error: ?-=X509?-= undeclared (first use in this function)
SSLeay.c:1124: error: ?-=cert?-= undeclared (first use in this function)
SSLeay.c:1130: error: expected expression before ?-=)?-= token
SSLeay.xs:497: warning: implicit declaration of function ?-=X509_get_notBefore?-=
SSLeay.c: In function ?-=XS_Crypt__SSLeay__X509_get_notAfterString?-=:
SSLeay.c:1151: error: ?-=X509?-= undeclared (first use in this function)
SSLeay.c:1151: error: ?-=cert?-= undeclared (first use in this function)
SSLeay.c:1157: error: expected expression before ?-=)?-= token
SSLeay.xs:505: warning: implicit declaration of function ?-=X509_get_notAfter?-=
make: *** [SSLeay.o] Error 1
NANIS/Crypt-SSLeay-0.64.tar.gz
make -- NOT OK
CPAN: YAML loaded ok (v0.84)
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
NANIS/Crypt-SSLeay-0.64.tar.gz : make NO

Fedora 20+:
sudo yum install perl-LWP-Protocol-https perl-Crypt-SSLeay

For RPM-based systems (RedHat, etc):
sudo yum install perl-Crypt-SSLeay
For APT-based systems (Debian, Ubuntu):
sudo apt-get install libcrypt-ssleay-perl

CentOS, RHEL to install LWP::Protocol::https...
sudo yum install perl-LWP-Protocol-https

Make sure you have development tools and OpenSSL header files installed:
sudo yum groupinstall "Development Tools"
sudo yum install openssl-devel

Related

install opencv for perl (centos)

I'm trying to do face detection on perl, and I found out about OpenCV and the perl module Image::ObjectDetect on CPAN here and here. I've done a clean install of CentOS 6.5 (minimal) on a virtual machine to test this, and then:
yum -y update
yum -y install perl cpan opencv
Ok, and considering I never user cpan before, I tried the obvious (after some short google searches)
perl -MCPAN -e shell
[accept default]
install Image::ObjectDetect
that gave me some errors:
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
After googling about that error, I did:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
mkdir /usr/local/lib/pkgconfig
vi /usr/local/lib/pkgconfig/opencv.pc
the content of the file:
prefix=/usr
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
Name: opencv
Description: The opencv library
Version: 2.x.x
Cflags: -I${includedir}/opencv -I${includedir}/opencv2
Libs: -L${libdir} -lopencv_calib3d -lopencv_imgproc -lopencv_contrib -lopencv_legacy -l
After I ran the install again, I noticed I was missing gcc:
/bin/sh: gcc: command not found
yum -y install gcc
Running the install again now gives me:
...
Note (probably harmless): No library found for -lopencv_calib3d
Note (probably harmless): No library found for -lopencv_imgproc
Note (probably harmless): No library found for -lopencv_contrib
Note (probably harmless): No library found for -lopencv_legacy
Note (probably harmless): No library found for -l
Writing Makefile for Image::ObjectDetect
Could not read '/root/.cpan/build/Image-ObjectDetect-0.12-BsNNjF/META.yml'. Falling back to other methods to determine prerequisites
cp lib/Image/ObjectDetect.pm blib/lib/Image/ObjectDetect.pm
cp lib/Image/ObjectDetect.xs blib/lib/Image/ObjectDetect.xs
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap ObjectDetect.xs > ObjectDetect.xsc && mv ObjectDetect.xsc ObjectDetect.c
gcc -c -I/usr/include/opencv -I/usr/include/opencv2 -Isrc -I/usr/include/opencv -I/usr/include/opencv2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -DVERSION=\"0.12\" -DXS_VERSION=\"0.12\" -fPIC "-I/usr/lib/perl5/CORE" ObjectDetect.c
In file included from ObjectDetect.xs:7:
/usr/lib/perl5/CORE/cv.h:13: error: redefinition of ‘struct xpvcv’
/usr/lib/perl5/CORE/cv.h:94: error: conflicting types for ‘xpvcv_allocated’
/usr/lib/perl5/CORE/cv.h:94: note: previous declaration of ‘xpvcv_allocated’ was here
ObjectDetect.xs:8:21: error: highgui.h: No such file or directory
ObjectDetect.xs: In function ‘XS_Image__ObjectDetect_new’:
ObjectDetect.xs:19: error: ‘CvHaarClassifierCascade’ undeclared (first use in this function)
ObjectDetect.xs:19: error: (Each undeclared identifier is reported only once
ObjectDetect.xs:19: error: for each function it appears in.)
ObjectDetect.xs:19: error: ‘cascade’ undeclared (first use in this function)
ObjectDetect.xs:22: warning: implicit declaration of function ‘cvLoad’
ObjectDetect.xs: In function ‘XS_Image__ObjectDetect_xs_detect’:
ObjectDetect.xs:37: error: ‘IplImage’ undeclared (first use in this function)
ObjectDetect.xs:37: error: ‘img’ undeclared (first use in this function)
ObjectDetect.xs:37: error: ‘gray’ undeclared (first use in this function)
ObjectDetect.xs:37: warning: left-hand operand of comma expression has no effect
ObjectDetect.xs:39: error: ‘CvMemStorage’ undeclared (first use in this function)
ObjectDetect.xs:39: error: ‘storage’ undeclared (first use in this function)
ObjectDetect.xs:40: error: ‘CvHaarClassifierCascade’ undeclared (first use in this function)
ObjectDetect.xs:40: error: ‘cascade’ undeclared (first use in this function)
ObjectDetect.xs:41: error: ‘CvSeq’ undeclared (first use in this function)
ObjectDetect.xs:41: error: ‘objects’ undeclared (first use in this function)
ObjectDetect.xs:42: error: ‘CvRect’ undeclared (first use in this function)
ObjectDetect.xs:42: error: ‘rect’ undeclared (first use in this function)
ObjectDetect.xs:46: warning: implicit declaration of function ‘cvLoadImage’
ObjectDetect.xs:50: warning: implicit declaration of function ‘cvCreateImage’
ObjectDetect.xs:50: warning: implicit declaration of function ‘cvSize’
ObjectDetect.xs:51: warning: implicit declaration of function ‘cvCvtColor’
ObjectDetect.xs:51: error: ‘CV_BGR2GRAY’ undeclared (first use in this function)
ObjectDetect.xs:52: warning: implicit declaration of function ‘cvEqualizeHist’
ObjectDetect.xs:54: warning: implicit declaration of function ‘cvCreateMemStorage’
ObjectDetect.xs:55: error: expected expression before ‘)’ token
ObjectDetect.xs:56: warning: implicit declaration of function ‘cvHaarDetectObjects’
ObjectDetect.xs:58: error: ‘CV_HAAR_DO_CANNY_PRUNING’ undeclared (first use in this function)
ObjectDetect.xs:65: error: expected expression before ‘)’ token
ObjectDetect.xs:74: warning: implicit declaration of function ‘cvReleaseMemStorage’
ObjectDetect.xs:75: warning: implicit declaration of function ‘cvReleaseImage’
ObjectDetect.xs: In function ‘XS_Image__ObjectDetect_DESTROY’:
ObjectDetect.xs:86: error: ‘CvHaarClassifierCascade’ undeclared (first use in this function)
ObjectDetect.xs:86: error: ‘cascade’ undeclared (first use in this function)
ObjectDetect.xs:88: error: expected expression before ‘)’ token
ObjectDetect.xs:89: warning: implicit declaration of function ‘cvReleaseHaarClassifierCascade’
make: *** [ObjectDetect.o] Error 1
JIRO/Image-ObjectDetect-0.12.tar.gz
/usr/bin/make -- NOT OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
JIRO/Image-ObjectDetect-0.12.tar.gz : make NO
Any help? Thanks.
Glad to see someone using OpenCV with Perl! I hope you can get it working and show us some nice asps and scripts :-)
You seem to be building from source and installing packages (with yum) - this sometimes complicates matters when it comes to dependencies. For example, you may have a version of OpenCV that is too new for the CPAN module. Image::ObjectDetect` is fairly old
(the last release was several years ago http://metacpan.org/pod/Image::ObjectDetect) whereas OpenCV is being actively developed.
Note this line:
ObjectDetect.xs:8:21: error: highgui.h: No such file or directory
I came across a similar error compiling applications that depend on OpenCV after a recent update. Either the header files were missing; the applications Makefiles did not know how to locate them; or other development libraries and headers in the chain of dependencies needed updating as well.
You may get better luck solving this by posting to the OpenCV development list where the error message may look more familiar.
See: http://groups.yahoo.com/neo/groups/OpenCV/info
You could try installing some other modules to see if it is perl, XS, gcc or your version of OpenCV that is at fault. Here's another module that uses OpenCV:
https://github.com/shisful/Image-OpenCV

Net::SSLeay won't install

cpan Net::SSLeay
Running install for module 'Net::SSLeay'
Running make for M/MI/MIKEM/Net-SSLeay-1.55.tar.gz
Has already been unwrapped into directory /root/.cpan/build/Net-SSLeay-1.55-v9rgJp
Could not make: Unknown error
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
I have installed all libs of this post:
install perl module Net::SSLeay through cpan
I also tryed to install it manually and during make command I had this log:
SSLeay.c:8143: error: declaration for parameter ‘XS_Net__SSLeay_BIO_write’ but no such parameter
SSLeay.c:8110: error: declaration for parameter ‘XS_Net__SSLeay_BIO_read’ but no such parameter
SSLeay.c:8091: error: declaration for parameter ‘XS_Net__SSLeay_BIO_free’ but no such parameter
SSLeay.c:8072: error: declaration for parameter ‘XS_Net__SSLeay_BIO_new’ but no such parameter
SSLeay.c:8053: error: declaration for parameter ‘XS_Net__SSLeay_BIO_new_ssl_connect’ but no such parameter
SSLeay.c:8032: error: declaration for parameter ‘XS_Net__SSLeay_BIO_new_ssl’ but no such parameter
SSLeay.c:8011: error: declaration for parameter ‘XS_Net__SSLeay_BIO_new_file’ but no such parameter
SSLeay.c:7992: error: declaration for parameter ‘XS_Net__SSLeay_BIO_new_buffer_ssl_connect’ but no such parameter
SSLeay.c:7972: error: declaration for parameter ‘XS_Net__SSLeay_get_ssl_method’ but no such parameter
SSLeay.c:7926: error: declaration for parameter ‘XS_Net__SSLeay_set_ssl_method’ but no such parameter
SSLeay.c:7864: error: declaration for parameter ‘XS_Net__SSLeay_TLSv1_method’ but no such parameter
SSLeay.c:1189: error: declaration for parameter ‘XS_Net__SSLeay_constant’ but no such parameter
SSLeay.c:1167: error: declaration for parameter ‘XS_Net__SSLeay_CLONE’ but no such parameter
SSLeay.c:1123: error: declaration for parameter ‘S_croak_xs_usage’ but no such parameter
SSLeay.xs:422: error: declaration for parameter ‘simple_cb_data_t’ but no such parameter
SSLeay.xs:359: error: declaration for parameter ‘perl_filehandle_t’ but no such parameter
SSLeay.c:13975: error: expected ‘{’ at end of input
make: *** [SSLeay.o] Error 1
Some CPAN modules require the C-header files to compile successfully. They end with -dev. These are not normally package with the OS. For Net::SSLeay you'll need to install libssl-dev.
For Debian distros: sudo apt-get install libssl-dev

compile and execute C program in iPhone

I have a C program which uses ASL library to get the logs of apps on the iPhone. Now, i have compiled this on Mac and it runs fine, fetching the logs of the apps on mac.. When i scp the compiled file to iPhone and try executing it, it says 'bad cpu type in executable'. So, i installed GNU C Compiler on the iPhone and compiled it.. now, when i compile it, it shows errors like this:
cP-iphone:~ root# gcc test.c
test.c:1:19: error: stdio.h: No such file or directory
test.c:2:17: error: asl.h: No such file or directory
test.c: In function 'main':
test.c:5: warning: incompatible implicit declaration of built-in function 'printf'
test.c:16: error: 'aslmsg' undeclared (first use in this function)
test.c:16: error: (Each undeclared identifier is reported only once
test.c:16: error: for each function it appears in.)
test.c:16: error: expected ';' before 'q'
test.c:21: error: 'q' undeclared (first use in this function)
test.c:21: error: 'ASL_TYPE_QUERY' undeclared (first use in this function)
test.c:22: error: 'ASL_KEY_SENDER' undeclared (first use in this function)
test.c:22: error: 'ASL_QUERY_OP_EQUAL' undeclared (first use in this function)
test.c:23: error: 'aslresponse' undeclared (first use in this function)
test.c:23: error: expected ';' before 'r'
test.c:24: error: 'NULL' undeclared (first use in this function)
test.c:24: error: 'm' undeclared (first use in this function)
test.c:24: error: 'r' undeclared (first use in this function)
test.c:27: warning: assignment makes pointer from integer without a cast
test.c:30: warning: assignment makes pointer from integer without a cast
Please suggest what i need to do in order to get a c file compiled and run on the iPhone.
on the simulator, and on the mac, you can run i386 code. But you can't on the real device as it's a different processor.
you have to compile your code as a static library targeting the iOS SDK from XCode. the commandline option for xcodebuild is -target iphoneos -arch armv7
On the command-line, this will compile an unsigned universal executable for iOS:
(So it will only execute on a real device that has been jailbroken, or launched somehow from a signed app (probably using calls that wouldn't be allowed in the IAS).)
clang -isysroot "$(xcode-select -p)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk" \
-arch armv7 \
-arch armv7s \
-arch arm64 \
-mios-version-min=5.0 \
foo.c -o foo
Given foo.c:
#include <stdio.h>
int main(void){printf("Hello, world!\n");return(0);}
Next, scp it to your JB'ed device (scp foo mobile#name_of_iphone.local:.):
MBF:~ mobile$ ./foo
Hello, world!
MBF:~ mobile$ rm foo
MBF:~ mobile$ ^D # logout
But you probably want to turn this into a trivial wrapper script like so, or use xcodebuild infrastructure instead:
~/bin/clang_ios
#!/bin/sh
set -e
exec clang -isysroot "$(xcode-select -p)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk" \
-arch armv7 \
-arch armv7s \
-arch arm64 \
-mios-version-min=5.0 \
"$#"
Credit
Other answers and http://clang-developers.42468.n3.nabble.com/targeting-iOS-tp4028940p4028942.html

how can I fix the error with making mtree

Hello I'm new to this and I don't understand, what's going on.
I need mtree for my iPhone and got an error.
And this is what I get:
In file included from compare.c:62:
vis.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘size_t’
In file included from compare.c:65:
extern.h:52: warning: redundant redeclaration of ‘compare’
extern.h:40: warning: previous declaration of ‘compare’ was here
extern.h:59: warning: redundant redeclaration of ‘getmode’
/usr/include/unistd.h:700: warning: previous declaration of ‘getmode’ was here
extern.h:60: warning: redundant redeclaration of ‘setmode’
/usr/include/unistd.h:736: warning: previous declaration of ‘setmode’ was here
compare.c: In function ‘compare’:
compare.c:186: error: ‘struct stat’ has no member named ‘st_mtim’
compare.c:187: error: ‘struct stat’ has no member named ‘st_mtim’
compare.c:192: error: ‘struct stat’ has no member named ‘st_mtim’
make[1]: *** [compare.o] Error 1
make: *** [all] Error 2
The full message is at http://pastebin.com/rVUfVP75
compare.c:186: error: ‘struct stat’ has no member named ‘st_mtim’
It should be st_mtime. It looks like a typo.
The structure definition is here:
http://pubs.opengroup.org/onlinepubs/007908799/xsh/sysstat.h.html

How to Install DBD::Oracle in Strawberry Perl

I am trying to install DBD::Oracle using the CPAN shell in Strawberry Perl. I initially experienced an error because the Makefile could not locate an OCI library, so I installed the instant client from Oracle. I thought this would fix the problem, but now I get a large mixture of errors and warnings from Oracle.h, dbdimp.h, Oracle.c, Oracle.xsi, and Oracle.xs.
Any suggestions for how I should proceed? Is it possible that there is a problem with existing Oracle software on my computer? I am fairly new to Perl, so any help is appreciated.
Edit -- I'm including the entire output below:
cpan> install DBD::Oracle
Database was generated on Fri, 04 Dec 2009 16:12:46 GMT
Running install for module 'DBD::Oracle'
Running make for P/PY/PYTHIAN/DBD-Oracle-1.23.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\P\PY\PYTHIAN\DBD-Oracle-1.23.tar.gz ok
Scanning cache C:\strawberry\cpan\build for sizes
...............................................................-------------DONE
CPAN.pm: Going to build P/PY/PYTHIAN/DBD-Oracle-1.23.tar.gz
Multiple copies of Driver.xst found in: C:/strawberry/perl/site/lib/auto/DBI/ C:\strawberry\perl\vendor\lib/auto/DBI/ at Makefile.PL line 37
Using DBI 1.609 (for perl 5.010001 on MSWin32-x86-multi-thread) installed in C:/strawberry/perl/site/lib/auto/DBI/
Argument "6.55_02" isn't numeric in numeric ge (>=) at Makefile.PL line 61.
Configuring DBD::Oracle for perl 5.010001 on MSWin32 (MSWin32-x86-multi-thread)
Remember to actually *READ* the README file! Especially if you have any problems.
Installing on a MSWin32, Ver#5.1
Using Oracle in C:/ORACLE/ORA90
DEFINE _SQLPLUS_RELEASE = "900010001" (CHAR)
Oracle version 9.0.1.0 (9.0)
Found oci directory
Using OCI directory 'oci'
Checking for functioning wait.ph
System: perl5.010001 Win32 strawberryperl 5.10.1.0 #1 30 i386
Compiler: gcc -s -O2 -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_
MSVCRT_READFIX
Linker: not found
Sysliblist:
Checking if your kit is complete...
Looks good
LD_RUN_PATH=C:/ORACLE/ORA90/lib:C:/ORACLE/ORA90/rdbms/lib
Using DBD::Oracle 1.23.
Using DBD::Oracle 1.23.
Multiple copies of Driver.xst found in: C:/strawberry/perl/site/lib/auto/DBI/ C:\strawberry\perl\vendor\lib/auto/DBI/ at Makefile.PL line 1696
Using DBI 1.609 (for perl 5.010001 on MSWin32-x86-multi-thread) installed in C:/strawberry/perl/site/lib/auto/DBI/
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help.txt files.
(Of course, you have read README by now anyway, haven't you?)
cp Oracle.pm blib\lib\DBD\Oracle.pm
cp oraperl.ph blib\lib/oraperl.ph
cp dbdimp.h blib\arch\auto\DBD\Oracle/dbdimp.h
cp ocitrace.h blib\arch\auto\DBD\Oracle/ocitrace.h
cp Oraperl.pm blib\lib/Oraperl.pm
cp Oracle.h blib\arch\auto\DBD\Oracle/Oracle.h
cp lib/DBD/Oracle/Object.pm blib\lib\DBD\Oracle\Object.pm
cp mk.pm blib\arch\auto\DBD\Oracle/mk.pm
cp lib/DBD/Oracle/GetInfo.pm blib\lib\DBD\Oracle\GetInfo.pm
C:\strawberry\perl\bin\perl.exe -p -e "s/~DRIVER~/Oracle/g" C:\strawberry\perl\site\lib\auto\DBI\Driver.xst > Oracle.xsi
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap Oracle.xs >
Oracle.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "mv" -- Oracle.xsc Oracle.c
gcc -c -IC:/ORACLE/ORA90/oci/include -IC:/ORACLE/ORA90/rdbms/demo -IC:\strawberry\perl\site\lib\auto\DBI -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE
_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"1.23\" -DXS_VERSION=\
"1.23\" "-IC:\strawberry\perl\lib\CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DORA_OCI_VERSION=\"9.0.1.0\" Oracle.c
In file included from Oracle.xs:1:
Oracle.h:37:17: oci.h: No such file or directory
Oracle.h:39:20: ocidfn.h: No such file or directory
Oracle.h:40:18: orid.h: No such file or directory
Oracle.h:41:17: ori.h: No such file or directory
In file included from Oracle.h:54,
from Oracle.xs:1:
dbdimp.h:16: error: syntax error before "OCIEnv"
dbdimp.h:16: warning: no semicolon at end of struct or union
dbdimp.h:23: error: syntax error before '}' token
dbdimp.h:37: error: syntax error before "OCIEnv"
dbdimp.h:37: warning: no semicolon at end of struct or union
dbdimp.h:38: warning: type defaults to `int' in declaration of `errhp'
dbdimp.h:38: warning: data definition has no type or storage class
dbdimp.h:39: error: syntax error before '*' token
dbdimp.h:39: warning: type defaults to `int' in declaration of `srvhp'
dbdimp.h:39: warning: data definition has no type or storage class
dbdimp.h:40: error: syntax error before '*' token
dbdimp.h:40: warning: type defaults to `int' in declaration of `svchp'
dbdimp.h:40: warning: data definition has no type or storage class
dbdimp.h:41: error: syntax error before '*' token
dbdimp.h:41: warning: type defaults to `int' in declaration of `authp'
dbdimp.h:41: warning: data definition has no type or storage class
dbdimp.h:51: error: syntax error before '}' token
dbdimp.h:66: error: syntax error before "OCIEnv"
dbdimp.h:66: warning: no semicolon at end of struct or union
dbdimp.h:67: warning: type defaults to `int' in declaration of `errhp'
dbdimp.h:67: warning: data definition has no type or storage class
dbdimp.h:68: error: syntax error before '*' token
dbdimp.h:68: warning: type defaults to `int' in declaration of `srvhp'
dbdimp.h:68: warning: data definition has no type or storage class
dbdimp.h:69: error: syntax error before '*' token
dbdimp.h:69: warning: type defaults to `int' in declaration of `svchp'
dbdimp.h:69: warning: data definition has no type or storage class
dbdimp.h:70: error: syntax error before '*' token
dbdimp.h:70: warning: type defaults to `int' in declaration of `stmhp'
dbdimp.h:70: warning: data definition has no type or storage class
dbdimp.h:71: error: syntax error before '*' token
dbdimp.h:71: warning: type defaults to `int' in declaration of `dschp'
dbdimp.h:71: warning: data definition has no type or storage class
dbdimp.h:121: error: syntax error before '}' token
dbdimp.h:143: error: syntax error before "OCIParam"
dbdimp.h:143: warning: no semicolon at end of struct or union
dbdimp.h:144: warning: type defaults to `int' in declaration of `parmap'
dbdimp.h:144: warning: data definition has no type or storage class
dbdimp.h:145: error: syntax error before '*' token
dbdimp.h:145: warning: type defaults to `int' in declaration of `tdo'
dbdimp.h:145: warning: data definition has no type or storage class
dbdimp.h:146: error: syntax error before "typecode"
dbdimp.h:146: warning: type defaults to `int' in declaration of `typecode'
dbdimp.h:146: warning: data definition has no type or storage class
dbdimp.h:147: error: syntax error before "col_typecode"
dbdimp.h:147: warning: type defaults to `int' in declaration of `col_typecode'
dbdimp.h:147: warning: data definition has no type or storage class
dbdimp.h:148: error: syntax error before "element_typecode"
dbdimp.h:148: warning: type defaults to `int' in declaration of `element_typecode'
dbdimp.h:148: warning: data definition has no type or storage class
dbdimp.h:149: error: syntax error before '*' token
dbdimp.h:149: warning: type defaults to `int' in declaration of `obj_ref'
dbdimp.h:149: warning: data definition has no type or storage class
dbdimp.h:150: error: syntax error before '*' token
dbdimp.h:150: warning: type defaults to `int' in declaration of `obj_ind'
dbdimp.h:150: warning: data definition has no type or storage class
dbdimp.h:151: error: syntax error before '*' token
dbdimp.h:151: warning: type defaults to `int' in declaration of `obj_value'
dbdimp.h:151: warning: data definition has no type or storage class
dbdimp.h:152: error: syntax error before '*' token
dbdimp.h:152: warning: type defaults to `int' in declaration of `obj_type'
dbdimp.h:152: warning: data definition has no type or storage class
dbdimp.h:159: error: syntax error before '}' token
dbdimp.h:166: error: syntax error before "OCIParam"
dbdimp.h:166: warning: no semicolon at end of struct or union
dbdimp.h:167: warning: type defaults to `int' in declaration of `defnp'
dbdimp.h:167: warning: data definition has no type or storage class
dbdimp.h:199: error: syntax error before '}' token
dbdimp.h:221: error: syntax error before "OCIBind"
dbdimp.h:221: warning: no semicolon at end of struct or union
dbdimp.h:238: error: syntax error before '*' token
dbdimp.h:238: warning: type defaults to `int' in declaration of `array_indicators'
dbdimp.h:238: warning: data definition has no type or storage class
dbdimp.h:246: error: conflicting types for 'name'
dbdimp.h:178: error: previous declaration of 'name' was here
dbdimp.h:247: error: syntax error before '}' token
dbdimp.h:284: error: syntax error before "OCILobLocator"
dbdimp.h:299: error: syntax error before "OCIError"
dbdimp.h:333: error: syntax error before "OCIBind"
dbdimp.h:335: error: syntax error before "OCIBind"
dbdimp.h:338: error: syntax error before "OCIDefine"
Oracle.c: In function `XS_DBD__Oracle_constant':
Oracle.c:74: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle_ORA_OCI':
Oracle.c:108: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle_ora_env_var':
Oracle.c:131: warning: unused variable `Perl___notused'
In file included from Oracle.c:179:
C:/strawberry/perl/site/lib/auto/DBI/Driver_xst.h: In function `dbdxst_bind_params':
C:/strawberry/perl/site/lib/auto/DBI/Driver_xst.h:60: error: dereferencing pointer to incomplete type
C:/strawberry/perl/site/lib/auto/DBI/Driver_xst.h:61: error: dereferencing pointer to incomplete type
C:/strawberry/perl/site/lib/auto/DBI/Driver_xst.h:65: error: dereferencing pointer to incomplete type
C:/strawberry/perl/site/lib/auto/DBI/Driver_xst.h:66: error: dereferencing pointer to incomplete type
C:/strawberry/perl/site/lib/auto/DBI/Driver_xst.h:67: error: dereferencing pointer to incomplete type
C:/strawberry/perl/site/lib/auto/DBI/Driver_xst.h: In function `dbdxst_fetchall_arrayref':
C:/strawberry/perl/site/lib/auto/DBI/Driver_xst.h:93: error: dereferencing pointer to incomplete type
C:/strawberry/perl/site/lib/auto/DBI/Driver_xst.h:94: error: dereferencing pointer to incomplete type
C:/strawberry/perl/site/lib/auto/DBI/Driver_xst.h:101: error: dereferencing pointer to incomplete type
Oracle.c: In function `XS_DBD__Oracle__dr_dbixs_revision':
Oracle.c:185: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__db__login':
Oracle.c:278: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__db_selectall_arrayref':
./Oracle.xsi:152: error: dereferencing pointer to incomplete type
Oracle.c:320: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__db_selectrow_arrayref':
./Oracle.xsi:196: error: dereferencing pointer to incomplete type
Oracle.c:387: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__db_commit':
./Oracle.xsi:275: error: dereferencing pointer to incomplete type
./Oracle.xsi:275: error: dereferencing pointer to incomplete type
Oracle.c:549: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__db_rollback':
./Oracle.xsi:285: error: dereferencing pointer to incomplete type
./Oracle.xsi:285: error: dereferencing pointer to incomplete type
Oracle.c:572: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__db_disconnect':
./Oracle.xsi:295: error: dereferencing pointer to incomplete type
./Oracle.xsi:300: error: dereferencing pointer to incomplete type
./Oracle.xsi:300: error: dereferencing pointer to incomplete type
./Oracle.xsi:302: error: dereferencing pointer to incomplete type
./Oracle.xsi:304: error: dereferencing pointer to incomplete type
./Oracle.xsi:308: error: dereferencing pointer to incomplete type
./Oracle.xsi:308: error: dereferencing pointer to incomplete type
./Oracle.xsi:308: error: dereferencing pointer to incomplete type
Oracle.c:595: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__db_STORE':
./Oracle.xsi:322: error: dereferencing pointer to incomplete type
Oracle.c:629: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__db_FETCH':
./Oracle.xsi:334: error: dereferencing pointer to incomplete type
Oracle.c:657: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__db_DESTROY':
./Oracle.xsi:345: error: dereferencing pointer to incomplete type
./Oracle.xsi:347: error: dereferencing pointer to incomplete type
./Oracle.xsi:347: error: dereferencing pointer to incomplete type
./Oracle.xsi:348: error: dereferencing pointer to incomplete type
./Oracle.xsi:353: error: dereferencing pointer to incomplete type
./Oracle.xsi:354: error: dereferencing pointer to incomplete type
./Oracle.xsi:354: error: dereferencing pointer to incomplete type
./Oracle.xsi:354: error: dereferencing pointer to incomplete type
./Oracle.xsi:355: error: dereferencing pointer to incomplete type
./Oracle.xsi:356: error: dereferencing pointer to incomplete type
./Oracle.xsi:358: error: dereferencing pointer to incomplete type
./Oracle.xsi:359: error: dereferencing pointer to incomplete type
./Oracle.xsi:370: error: dereferencing pointer to incomplete type
./Oracle.xsi:371: error: dereferencing pointer to incomplete type
./Oracle.xsi:372: error: dereferencing pointer to incomplete type
./Oracle.xsi:382: error: dereferencing pointer to incomplete type
./Oracle.xsi:382: error: dereferencing pointer to incomplete type
./Oracle.xsi:382: error: dereferencing pointer to incomplete type
Oracle.c:682: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__st__prepare':
Oracle.c:830: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__st_rows':
Oracle.c:869: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__st_bind_param':
Oracle.c:951: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__st_bind_param_inout':
Oracle.c:999: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__st_execute':
./Oracle.xsi:586: error: dereferencing pointer to incomplete type
./Oracle.xsi:587: error: dereferencing pointer to incomplete type
Oracle.c:1053: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__st_fetchrow_arrayref':
Oracle.c:1125: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__st_fetchrow_array':
Oracle.c:1150: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__st_fetchall_arrayref':
Oracle.c:1185: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__st_finish':
./Oracle.xsi:669: error: dereferencing pointer to incomplete type
./Oracle.xsi:670: error: dereferencing pointer to incomplete type
./Oracle.xsi:674: error: dereferencing pointer to incomplete type
./Oracle.xsi:677: error: dereferencing pointer to incomplete type
./Oracle.xsi:677: error: dereferencing pointer to incomplete type
./Oracle.xsi:677: error: dereferencing pointer to incomplete type
Oracle.c:1226: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__st_blob_read':
Oracle.c:1262: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__st_STORE':
./Oracle.xsi:717: error: dereferencing pointer to incomplete type
Oracle.c:1306: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__st_FETCH_attrib':
./Oracle.xsi:734: error: dereferencing pointer to incomplete type
Oracle.c:1334: warning: unused variable `Perl___notused'
./Oracle.xsi: In function `XS_DBD__Oracle__st_DESTROY':
./Oracle.xsi:745: error: dereferencing pointer to incomplete type
./Oracle.xsi:747: error: dereferencing pointer to incomplete type
./Oracle.xsi:747: error: dereferencing pointer to incomplete type
./Oracle.xsi:748: error: dereferencing pointer to incomplete type
./Oracle.xsi:753: error: dereferencing pointer to incomplete type
./Oracle.xsi:754: error: dereferencing pointer to incomplete type
./Oracle.xsi:754: error: dereferencing pointer to incomplete type
./Oracle.xsi:754: error: dereferencing pointer to incomplete type
./Oracle.xsi:755: error: dereferencing pointer to incomplete type
./Oracle.xsi:756: error: dereferencing pointer to incomplete type
./Oracle.xsi:758: error: dereferencing pointer to incomplete type
./Oracle.xsi:759: error: dereferencing pointer to incomplete type
./Oracle.xsi:760: error: dereferencing pointer to incomplete type
./Oracle.xsi:768: error: dereferencing pointer to incomplete type
./Oracle.xsi:768: error: dereferencing pointer to incomplete type
./Oracle.xsi:768: error: dereferencing pointer to incomplete type
Oracle.c:1362: warning: unused variable `Perl___notused'
Oracle.xs: In function `XS_DBD__Oracle__st_ora_stmt_type':
Oracle.xs:105: error: dereferencing pointer to incomplete type
Oracle.c:1418: warning: unused variable `Perl___notused'
Oracle.xs: In function `XS_DBD__Oracle__st_ora_stmt_type_name':
Oracle.xs:114: error: dereferencing pointer to incomplete type
Oracle.c:1443: warning: unused variable `Perl___notused'
Oracle.xs: In function `XS_DBD__Oracle__st_ora_scroll_position':
Oracle.xs:127: error: dereferencing pointer to incomplete type
Oracle.c:1470: warning: unused variable `Perl___notused'
Oracle.xs: In function `XS_DBD__Oracle__st_ora_fetch_scroll':
Oracle.xs:140: error: dereferencing pointer to incomplete type
Oracle.xs:141: error: dereferencing pointer to incomplete type
Oracle.c:1495: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__st_ora_bind_param_inout_array':
Oracle.c:1526: warning: unused variable `Perl___notused'
Oracle.xs: In function `XS_DBD__Oracle__st_ora_fetch':
Oracle.xs:189: error: dereferencing pointer to incomplete type
Oracle.xs:189: error: dereferencing pointer to incomplete type
Oracle.xs:189: error: dereferencing pointer to incomplete type
Oracle.xs:192: error: dereferencing pointer to incomplete type
Oracle.xs:192: error: dereferencing pointer to incomplete type
Oracle.xs:192: error: dereferencing pointer to incomplete type
Oracle.xs:192: warning: left-hand operand of comma expression has no effect
Oracle.xs:192: error: dereferencing pointer to incomplete type
Oracle.xs:192: error: dereferencing pointer to incomplete type
Oracle.xs:192: error: dereferencing pointer to incomplete type
Oracle.xs:192: warning: left-hand operand of comma expression has no effect
Oracle.xs:192: error: dereferencing pointer to incomplete type
Oracle.xs:192: error: dereferencing pointer to incomplete type
Oracle.xs:192: error: dereferencing pointer to incomplete type
Oracle.xs:192: warning: left-hand operand of comma expression has no effect
Oracle.xs:196: error: dereferencing pointer to incomplete type
Oracle.xs:198: error: dereferencing pointer to incomplete type
Oracle.xs:217: error: dereferencing pointer to incomplete type
Oracle.xs:217: error: dereferencing pointer to incomplete type
Oracle.xs:217: error: dereferencing pointer to incomplete type
Oracle.xs:217: error: dereferencing pointer to incomplete type
Oracle.xs:217: error: dereferencing pointer to incomplete type
Oracle.xs:217: error: dereferencing pointer to incomplete type
Oracle.xs:217: error: dereferencing pointer to incomplete type
Oracle.xs:217: error: dereferencing pointer to incomplete type
Oracle.xs:217: error: dereferencing pointer to incomplete type
Oracle.xs:219: error: dereferencing pointer to incomplete type
Oracle.xs:219: error: dereferencing pointer to incomplete type
Oracle.c:1572: warning: unused variable `Perl___notused'
Oracle.xs: In function `XS_DBD__Oracle__st_ora_execute_array':
Oracle.xs:234: error: dereferencing pointer to incomplete type
Oracle.xs:235: error: dereferencing pointer to incomplete type
Oracle.c:1631: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__st_cancel':
Oracle.c:1678: warning: unused variable `Perl___notused'
Oracle.xs: In function `XS_DBD__Oracle__db_ora_ping':
Oracle.xs:273: warning: implicit declaration of function `OCIServerVersion'
Oracle.xs:273: error: dereferencing pointer to incomplete type
Oracle.xs:273: error: dereferencing pointer to incomplete type
Oracle.xs:273: error: `OCI_HTYPE_SVCCTX' undeclared (first use in this function)
Oracle.xs:273: error: (Each undeclared identifier is reported only once
Oracle.xs:273: error: for each function it appears in.)
Oracle.xs:273: error: dereferencing pointer to incomplete type
Oracle.xs:274: error: `OCI_SUCCESS' undeclared (first use in this function)
Oracle.c:1699: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__db_reauthenticate':
Oracle.c:1736: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__db_ora_lob_write':
Oracle.c:1767: error: `OCILobLocator' undeclared (first use in this function)
Oracle.c:1767: error: `locator' undeclared (first use in this function)
Oracle.c:1782: error: syntax error before ')' token
Oracle.xs:307: error: `SQLCS_IMPLICIT' undeclared (first use in this function)
Oracle.xs:314: warning: implicit declaration of function `OCILobCharSetForm'
Oracle.xs:314: error: dereferencing pointer to incomplete type
Oracle.xs:314: error: dereferencing pointer to incomplete type
Oracle.xs:314: error: dereferencing pointer to incomplete type
Oracle.xs:314: error: dereferencing pointer to incomplete type
Oracle.xs:315: error: `OCI_SUCCESS' undeclared (first use in this function)
Oracle.xs:316: error: dereferencing pointer to incomplete type
Oracle.xs:330: error: `SQLCS_NCHAR' undeclared (first use in this function)
Oracle.xs:332: warning: implicit declaration of function `OCILobWrite'
Oracle.xs:332: error: dereferencing pointer to incomplete type
Oracle.xs:332: error: dereferencing pointer to incomplete type
Oracle.xs:332: error: `OCI_ONE_PIECE' undeclared (first use in this function)
Oracle.xs:332: error: dereferencing pointer to incomplete type
Oracle.xs:332: error: dereferencing pointer to incomplete type
Oracle.xs:338: error: dereferencing pointer to incomplete type
Oracle.c:1759: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__db_ora_lob_append':
Oracle.c:1845: error: `OCILobLocator' undeclared (first use in this function)
Oracle.c:1845: error: `locator' undeclared (first use in this function)
Oracle.c:1862: error: syntax error before ')' token
Oracle.xs:363: error: `SQLCS_IMPLICIT' undeclared (first use in this function)
Oracle.xs:370: error: dereferencing pointer to incomplete type
Oracle.xs:370: error: dereferencing pointer to incomplete type
Oracle.xs:370: error: dereferencing pointer to incomplete type
Oracle.xs:370: error: dereferencing pointer to incomplete type
Oracle.xs:371: error: `OCI_SUCCESS' undeclared (first use in this function)
Oracle.xs:372: error: dereferencing pointer to incomplete type
Oracle.xs:386: error: `SQLCS_NCHAR' undeclared (first use in this function)
Oracle.xs:387: warning: implicit declaration of function `OCILobWriteAppend'
Oracle.xs:387: error: dereferencing pointer to incomplete type
Oracle.xs:387: error: dereferencing pointer to incomplete type
Oracle.xs:387: error: `OCI_ONE_PIECE' undeclared (first use in this function)
Oracle.xs:387: error: dereferencing pointer to incomplete type
Oracle.xs:387: error: dereferencing pointer to incomplete type
Oracle.xs:392: error: dereferencing pointer to incomplete type
Oracle.xs:357: warning: unused variable `startp'
Oracle.c:1837: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__db_ora_lob_read':
Oracle.c:1923: error: `OCILobLocator' undeclared (first use in this function)
Oracle.c:1923: error: `locator' undeclared (first use in this function)
Oracle.c:1938: error: syntax error before ')' token
Oracle.xs:417: error: `SQLCS_IMPLICIT' undeclared (first use in this function)
Oracle.xs:427: error: dereferencing pointer to incomplete type
Oracle.xs:427: error: dereferencing pointer to incomplete type
Oracle.xs:427: error: dereferencing pointer to incomplete type
Oracle.xs:427: error: dereferencing pointer to incomplete type
Oracle.xs:428: error: `OCI_SUCCESS' undeclared (first use in this function)
Oracle.xs:429: error: dereferencing pointer to incomplete type
Oracle.xs:433: warning: implicit declaration of function `OCILobRead'
Oracle.xs:433: error: dereferencing pointer to incomplete type
Oracle.xs:433: error: dereferencing pointer to incomplete type
Oracle.xs:433: error: dereferencing pointer to incomplete type
Oracle.xs:433: error: dereferencing pointer to incomplete type
Oracle.xs:438: error: dereferencing pointer to incomplete type
Oracle.xs:445: error: `SQLCS_NCHAR' undeclared (first use in this function)
Oracle.c:1915: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__db_ora_lob_trim':
Oracle.c:1997: error: `OCILobLocator' undeclared (first use in this function)
Oracle.c:1997: error: `locator' undeclared (first use in this function)
Oracle.c:2006: error: syntax error before ')' token
Oracle.xs:461: warning: implicit declaration of function `OCILobTrim'
Oracle.xs:461: error: dereferencing pointer to incomplete type
Oracle.xs:461: error: dereferencing pointer to incomplete type
Oracle.xs:461: error: dereferencing pointer to incomplete type
Oracle.xs:461: error: dereferencing pointer to incomplete type
Oracle.xs:462: error: `OCI_SUCCESS' undeclared (first use in this function)
Oracle.xs:463: error: dereferencing pointer to incomplete type
Oracle.c:1989: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__db_ora_lob_length':
Oracle.c:2039: error: `OCILobLocator' undeclared (first use in this function)
Oracle.c:2039: error: `locator' undeclared (first use in this function)
Oracle.c:2048: error: syntax error before ')' token
Oracle.xs:479: warning: implicit declaration of function `OCILobGetLength'
Oracle.xs:479: error: dereferencing pointer to incomplete type
Oracle.xs:479: error: dereferencing pointer to incomplete type
Oracle.xs:479: error: dereferencing pointer to incomplete type
Oracle.xs:479: error: dereferencing pointer to incomplete type
Oracle.xs:480: error: `OCI_SUCCESS' undeclared (first use in this function)
Oracle.xs:481: error: dereferencing pointer to incomplete type
Oracle.c:2031: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__db_ora_lob_chunk_size':
Oracle.c:2081: error: `OCILobLocator' undeclared (first use in this function)
Oracle.c:2081: error: `locator' undeclared (first use in this function)
Oracle.c:2090: error: syntax error before ')' token
Oracle.xs:498: warning: implicit declaration of function `OCILobGetChunkSize'
Oracle.xs:498: error: dereferencing pointer to incomplete type
Oracle.xs:498: error: dereferencing pointer to incomplete type
Oracle.xs:498: error: dereferencing pointer to incomplete type
Oracle.xs:498: error: dereferencing pointer to incomplete type
Oracle.xs:499: error: `OCI_SUCCESS' undeclared (first use in this function)
Oracle.xs:500: error: dereferencing pointer to incomplete type
Oracle.c:2073: warning: unused variable `Perl___notused'
Oracle.c: In function `XS_DBD__Oracle__dr_init_oci':
Oracle.c:2115: warning: unused variable `Perl___notused'
Oracle.c: In function `boot_DBD__Oracle':
Oracle.c:2157: error: `OCI_FETCH_RELATIVE' undeclared (first use in this function)
Oracle.c:2171: error: `OCI_FETCH_FIRST' undeclared (first use in this functio
DBD::Oracle is notoriously difficult to compile, multiplied by Windows, and you're better off just not doing it if you can avoid it. Unfortunately ActiveState does not supply a PPM for it for licensing reasons nor do the other PPM repositories I looked through. Though its rumored that ActivePerl 5.10.0.1003 comes with DBD-Oracle.
If your Oracle server supports ODBC, you can talk to it using DBD::ODBC.
If you want to try, here are some special instructions for installing DBD::Oracle on Strawberry Perl which may be of help.
Strawberry Perl 5.20 (since May, 2014) ships with DBD::Oracle, as long as you install instantclient 11.x version it works out of the box. See http://strawberryperl.com/release-notes/5.20.0.1-64bit.html
Newly added DBD::Oracle - you have to install 64bit Oracle Instant Client 11.x and make sure you have OCI.DLL in your PATH
If you don't have all of the Oracle source (*.h, *.c) files, you can install DBD::Oracle via ppm, just like ActiveState. Or copy the library files from the ActiveState distribution.
I documented what worked for me on Win32 here on my blog. Actually everything went smoothly except the DBI make process didn't detect my installed Oracle Client version correctly. A little deciphering of the make file and I saw there was a parameter to explicitly specify the version. I had to run the make and install commands manually but it all worked out.
I tried to use some pre-compiled modules but they were compiled with a specific version of Strawberry Perl in mind. I think I found a 5.12 compiled DBI for Oracle and it complained when I tried to use it with the latest 5.16 Strawberry Perl so that's why I went the manual build route.
From here on out I will probably just copy my c:\perl binary directory to other machines I need it, set environment variables and roll with it.