| Bug #1857 | comp_err error in Makefile with HP-UX make | ||
|---|---|---|---|
| Submitted: | 17 Nov 2003 1:25 | Modified: | 4 Dec 2003 6:40 |
| Reporter: | Raphael RIGNIER | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S1 (Critical) |
| Version: | 4.0.16 | OS: | HP/UX (HP-UX 11i) |
| Assigned to: | CPU Architecture: | Any | |
[4 Dec 2003 6:40]
Boyd Gerber
This is not an error as Documented in our manual you have to use GNU make to build. http://www.mysql.com/doc/en/Installing_source.html " * A good make program. GNU make is always recommended and is sometimes required. If you have problems, we recommend trying GNU make 3.75 or newer." and sometimes for OS specific issue like HP UX 11 ... http://www.mysql.com/doc/en/HP-UX_11.x.html

Description: Hello all, I've encontered a probblem by compiling mysql 4.0.16 from sources on my hp-ux 11i server. # mysql-4.0.16> make Fails with this error : ../../extra/comp_err czech/errmsg.sys Usage: ../../extra/comp_err [-?] [-I] [-V] fromfile[s] tofile *** Error exit code 255 Problem is in generated sql/share/Makefile line 330 ------------------------- sql/share/Makefile--------------- #this is ugly but portable czech/errmsg.sys: czech/errmsg.txt $(top_builddir)/extra/comp_err $^ czech/errmsg.sys danish/errmsg.sys: danish/errmsg.txt $(top_builddir)/extra/comp_err $^ danish/errmsg.sys dutch/errmsg.sys: dutch/errmsg.txt $(top_builddir)/extra/comp_err $^ dutch/errmsg.sys ... ... ... --------------------------------------------------------------- make provided by HP-UX probably doesn't recognize "$^" syntax and skip it. Then comp_err fails with too few arguments. By replacing all $^ by it's filname, it works OK. How to repeat: compiler version B.11.11.08 with patched make version : PHCO_27755 configure options : # mysql-4.0.16> CC=cc CXX=aCC CPPFLAGS=+DD64 CXXFLAGS=+DD64 configure --prefix=/opt/mysql4 then "make" Suggested fix: Correct configure script so that HP-UXmake works with "comp_err" in sql/share/Makefile.