cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: first time build from source - need help with errors

From: Fabian Keil <freebsd-listen_at_fabiankeil.de>
Date: Thu, 6 Dec 2012 13:46:29 +0100

"Jeff Shearer, CISA, CISSP" <jeffshearer_at_trustedtechpro.com> wrote:

> I am building a Moodle server with all dependencies built from source.
> This is my first time building software from source to this extent so I
> have some learning to go. After running make test, I received the
> following messages:
>
> TESTDONE: 628 tests out of 635 reported OK: 98%
> TESTFAIL: These test cases failed: 20 507 526 527 532 534 546
> TESTDONE: 779 tests were considered during 562 seconds.
> *** Error code 1
>
> Daniel Stenberg directed me to http://curl.haxx.se/dev/runtests.html to
> learn how to run each of the tests. I have run each of the tests, they all
> indicate that there is an "uninitialized value $p in string eq at
> /usr/local/lib/perl5/5.10.1/BSDPAN/BSDPAN.pm line 36."

The attached patch fixes this. Note that this is just a
warning and should have no impact on the test result.

> Tests 507, 526, 527, 532, 534, and 546 also indicated two additional
> errors:
>
> Use of uninitialized value in require at
> /usr/home/myuid/installs/curl-7.28.1/tests/runtests.pl line 80.
>
> Can't locate serverhelp.pm in @INC (@INC contains:
> /usr/local/lib/perl5/5.10.1/BSDPAN
> /usr/local/lib/perl5/site_perl/5.10.1/mach
> /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach
> /usr/local/lib/perl5/5.10.1 . .) at
> /usr/home/myuid/installs/curl-7.28.1/tests/runtests.pl line 80.

I always execute runtests.pl from "tests/" in which case
serverhelp.pm is found due to the ".":

fk_at_r500 ~/git/curl/tests $./runtests.pl ...

I can confirm that it doesn't seem to work when executing
from other directories, but my impression is that it is
not expected to work either.

> Here is the full out put from test 20:
>
> # /curl-7.28.1/tests/runtests.pl 20 <
> Use of uninitialized value $p in string eq at
> /usr/local/lib/perl5/5.10.1/BSDPAN/BSDPAN.pm line 36.
> ********* System characteristics ********
> * curl 7.28.1 (i386-unknown-freebsd8.2)
> * libcurl/7.28.1 OpenSSL/0.9.8q zlib/1.2.3
> * Features: IPv6 Largefile NTLM NTLM_WB SSL libz
> * Host: myhost.local
> * System: FreeBSD myhost.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb
> 18 02:24:46 UTC 2011
> root_at_almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
> * Server SSL: OFF libcurl SSL: ON
> * debug build: OFF track memory: OFF
> * valgrind: OFF HTTP IPv6 ON
> * FTP IPv6 ON Libtool lib: OFF
> * Shared build: yes
> * SSL library: OpenSSL
> * Ports:
> * HTTP/8990 FTP/8992 FTP2/8995 RTSP/9007
> * TFTP/8997 HTTP-IPv6/8994 RTSP-IPv6/9008 FTP-IPv6/8996
> * GOPHER/9009 GOPHER-IPv6/9009
> * SSH/8999 SOCKS/9000 POP3/9001 IMAP/9003 SMTP/9005
> * POP3-IPv6/9002 IMAP-IPv6/9004 SMTP-IPv6/9006
> *****************************************
> test 020...[attempt connect to non-existing host name]
>
> curl returned 7, when expecting 6
> exit FAILED
>
> - abort tests
> TESTDONE: 0 tests out of 1 reported OK: 0%
> TESTFAIL: These test cases failed: 20
> TESTDONE: 1 tests were considered during 1 seconds.

I usually use the runtest.pl options -p and -v when trying to
analyze test failures. If that doesn't help, looking at the
actually test usually does.

Test 20 depends on the DNS server not resolving
"non-existing-host.haxx.se.", so test failures aren't necessarily
a sign of a curl bug.

Fabian

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2012-12-06