Bug #9828 Make fails on "make: don't know how to make std_data/client-key.pem."
Submitted: 11 Apr 2005 21:35 Modified: 18 Jun 2005 16:13
Reporter: shane Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:4.1.11 OS:FreeBSD (FreeBSD 5.3-RELEASE-p6)
Assigned to: Sergei Golubchik CPU Architecture:Any

[11 Apr 2005 21:35] shane
Description:
Make fails here:

Making all in mysql-test
make: don't know how to make std_data/client-key.pem. Stop
*** Error code 1

Stop in /............/mysql-4.1.11/mysql-test.
*** Error code 1

Stop in /............/mysql-4.1.11.
*** Error code 1

Stop in /............/mysql-4.1.11.

How to repeat:
configure, and make
[23 Apr 2005 10:37] AULAGNIER Adrien
Just for information, I have exactly the same bug on OpenBSD 3.6.

I have found a build 4.1.11 only for OpenBSD 3.7. Is anyone know which configure parameters where used?
[4 May 2005 19:09] Hartmut Holzgraefe
I can't reproduce this on FreeBSD 5.3, building 4.1.11 from source works just fine.

Can you please check whether the file ./mysql-test/std_data/client-key.pem
is present after unpacking the source tarball and whether it is still there after
make failed?
[19 May 2005 9:11] Mourad Derriche
I have encourntered the same error during compilation of the mysql-test part on the till date latest release of the 4.1-branch 4.1.12 on a HP-UX system.

Regarding verification of the existance of the file "mysql-test/std_data/client-cert.pem" prior and after the compilation error is encountered, i have checked that this is not true for the latter. So for some reason, the file is being discarded during make.

Below is the actual end error.

Making all in mysql-test
Make: Don't know how to make std_data/client-cert.pem.  Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
#

I havnt yet investigated what happens.
[21 May 2005 5:40] Denis Solaro
Cracked it.

Those files are test certificates found in the SSL sub-directory.  Just copy them accross to std_data.
[21 May 2005 5:54] Denis Solaro
Sorry lack of precision in my last report. 

OS: OpenBSD 3.7 
Mysql: 4.1.12 from source of course
[21 May 2005 12:00] Sergei Golubchik
All the comments (mentioned FreeBSD and OpenBSD, error messages of the failing build) makes me think that a BSD make is a key here.

Hartmut could you try it with both GNU make and BSD make and see if it makes any difference ?
[1 Jun 2005 14:42] Henry Van Bogaert
No error on FreeBSD 4.11 (gmake), but it does error on NetBSD as well (make).  Sorry I don't have gmake on NetBSD, first box I've ever built using that OS (test platform for a client).

The complete solution to get around the bug is:

cp SSL/*.pem mysql-test/std_data

then make again and all is well.
[18 Jun 2005 16:13] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/26153
[18 Jun 2005 16:13] Sergei Golubchik
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

fixed in 4.1.13, 5.0.8