>Description: This is a well-known build problem that has existed at least since mysql-4.1.18, but has never been fixed. On solaris-9, the build terminates with an error containing the tokens "sql_lex.cc error sql_functions undeclared". The underlying cause of this error is that a previous step made the sql/lex_hash.h file with ZERO LENGTH because gcc's stdc++ library was not in LD_LIBRARY_PATH. >How-To-Repeat: Build mysql-5.0.18 or mysql-4.1.18 on solaris-9 with gcc-3.3.2, making sure that gcc's libraries are not in LD_LIBRARY_PATH. >Fix: The proper fix for this is to find out why the step that makes lex_hash.h silently makes it with zero length, not reporting an error. Alternatively, the build procedure should check for a zero-length lex_hash.h immediately after it is made, and exit there. The workaround I used for this problem was to make sure that environment LD_LIBRARY_PATH contained the "lib" directory for my gcc distribution. >Submitter-Id: Edward R. Arnold <[EMAIL PROTECTED]> >Originator: Ed Arnold >Organization: ________________________________________________________________________ Ed Arnold * NCAR * POB 3000, Boulder, CO 80307-3000 USA * 303-497-1253 voice 303-497-1804 fax * era [at] ucar [dot] edu * 39 58 41N/105 16 29W/1865m > >MySQL support: none >Synopsis: mysql-5.0.18 lex_hash.h zero-length build error on solaris-9 >Severity: non-critical >Priority: medium >Category: mysql >Class: sw-bug >Release: mysql-5.0.18 (Source distribution)
>C compiler: gcc (GCC) 3.3.2 >C++ compiler: g++ (GCC) 3.3.2 >Environment: sun v880 solaris-9 gcc-3.3.2 System: SunOS huron 5.9 Generic_118558-19 sun4u sparc SUNW,Sun-Fire-880 Architecture: sun4 Some paths: /usr/local/bin/perl /usr/ccs/bin/make /fs/local/bin/gcc /opt/SUNWspro/bin/cc GCC: Reading specs from /fs/local/bin/../lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/specs Configured with: /var/tmp/gcc-3.3.2/configure --prefix=/fs/tools/sparc.solaris-7/gcc-3.3.2 Thread model: posix gcc version 3.3.2 Compilation info: CC='gcc' CFLAGS='' CXX='g++' CXXFLAGS='' LDFLAGS='' ASFLAGS='' LIBC: -rw-r--r-- 1 root bin 1868524 Aug 23 17:26 /lib/libc.a lrwxrwxrwx 1 root root 11 Aug 22 2003 /lib/libc.so -> ./libc.so.1 -rwxr-xr-x 1 root bin 867424 Aug 23 17:26 /lib/libc.so.1 -rw-r--r-- 1 root bin 1868524 Aug 23 17:26 /usr/lib/libc.a lrwxrwxrwx 1 root root 11 Aug 22 2003 /usr/lib/libc.so -> ./libc.so.1 -rwxr-xr-x 1 root bin 867424 Aug 23 17:26 /usr/lib/libc.so.1 Configure command: ./configure '--prefix=/local/mysql-5.0.18' -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]