[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: FW: Error running make for subversion

From: Joseph, Anselm <Anselm.Joseph_at_fpl.com>
Date: Thu, 15 Jun 2017 20:49:15 +0000

Hi Daniel,
Davautocheck failed to start httpd. (see below). When I start apache (apachectl -k start), and enter the url in chrome, it displays "It works".
Any feedback on the failed tests below?
Thank you.
-----Original Message-----
From: Joseph, Anselm
Sent: Wednesday, June 14, 2017 4:22 PM
To: 'Daniel Shahaf'
Cc: users_at_subversion.apache.org; Philip Martin
Subject: RE: FW: Error running make for subversion

Thanks Daniel.
Ran the tests manually as suggested:
<-- ~:/opt/eai/ci/subversion/subversion/tests/cmdline --> $ ./basic_tests.py --bin=/usr/local/bin ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224 ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256 ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384 ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512 Traceback (most recent call last):
  File "./basic_tests.py", line 3148, in <module>
    svntest.main.run_tests(test_list)
  File "/opt/eai/ci/subversion/subversion/tests/cmdline/svntest/main.py", line 2062, in run_tests
    sys.exit(execute_tests(test_list, serial_only))
  File "/opt/eai/ci/subversion/subversion/tests/cmdline/svntest/main.py", line 2175, in execute_tests
    raise Exception('Logging occurred before configuration. Some code'
Exception: Logging occurred before configuration. Some code path needs to be fixed. Examine the log output to find what/where logged something.

$ APACHE_MPM=▒^▒▒ ./davautocheck.sh
davautocheck.sh: Using '/opt/eai/ci/httpd-2.4.25/apache/bin/apxs'...
Use of uninitialized value in concatenation (.) or string at /opt/eai/ci/httpd-2.4.25/apache/bin/apxs line 222.
Use of uninitialized value in concatenation (.) or string at /opt/eai/ci/httpd-2.4.25/apache/bin/apxs line 222.
Use of uninitialized value in concatenation (.) or string at /opt/eai/ci/httpd-2.4.25/apache/bin/apxs line 222.
davautocheck.sh: HTTPD '/opt/eai/ci/httpd-2.4.25/apache/bin/httpd' doesn't start properly HTTPD stopped.

-----Original Message-----
From: Daniel Shahaf [mailto:d.s_at_daniel.shahaf.name]
Sent: Wednesday, June 14, 2017 3:34 PM
To: Joseph, Anselm
Cc: users_at_subversion.apache.org; Philip Martin
Subject: Re: FW: Error running make for subversion

CAUTION - EXTERNAL EMAIL

Joseph, Anselm wrote on Wed, 14 Jun 2017 18:54 +0000:
> Thanks for the reply, Daniel.
> Update:
> I pointed the install to the older gcc 4.2.0 with same results:
> /opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0
> $ ls
> include install-tools libgcc.a libgcc_eh.a libgcc_s.a libgcov.a
> libsupc++.a ppc64 pthread
>
> Below, I ran 'make check' to test the results of make (since I could not find a significant error in make output) and got the following:
> $ make > make.log 2>&1
> <-- ~:/opt/eai/ci/subversion -->
> $ make check
> ERROR:root:code for hash md5 was not found.
> [053/109]
> x509-test.............................................................
> ..................................................FAILURE
> [054/109] authz_tests.pymake: 1254-004 The error code from the last command is 1.
>
>
> Stop.
>
> Any incidence on the result I see with 'make install'?
> Thanks,
> Anselm

This error means that «python -c 'from hashlib import md5'» fails on your system. It is does not shed light on the mod_dav_svn problems.¹

You can try running the tests manually with 'cd subversion/tests/cmdline && ./basic_tests.py', possibly passing --bin=/usr/local/bin to test already-installed binaries. (That will run just a subset of the tests.)

It would also be interesting to see how far davautocheck reaches (it is invoked as «make davautocheck APACHE_MPM=…» or «cd subversion/tests/cmdline && APACHE_MPM=… ./davautocheck.sh»). I'm curious to see whether it will successfully set up an httpd instance or not. Note that if it successfully sets up httpd, it will fail over the hashlib issue after that.

Cheers,

Daniel

¹ It _could_ conceivably be related, since mod_dav_svn is a shared library for httpd and the hashlib module is sometimes implemented as a shared library for the CPython interpreter — but you'd probably have noticed if multiple programs had trouble loading shared libraries.
Received on 2017-06-15 22:49:29 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.