>Description:
        I have gcc installed in a nonstandard place so on the first
        run gen_lex_hash failed becuase it could not find libstdc++.so.2.10.0.
        I did a 'make distclean' and the reran configure with correct flags.
        Unfortunately the build failed again, this time in another place.
        Eventually I traced it to the fact that the failed first run
        created an empty lex_hash.h and 'make distclean' did not remove this
        file. Future builds did also not rebuild it.
>How-To-Repeat:
        Try to build on a system where libstdc++ is not in the standard
        library directory path.
>Fix:
        By judging from the comments in sql/Makefile.am people have looked
        at this previously but not found a satisfactory solution. Ideally
        one would like to have lex_hash.h removed by 'make distclean' but
        it seems automake makes that hard.
        I would suggest that you change the line in sql/Makefile.am which
        generates lex_hash.h from
            ./gen_lex_hash$(EXEEXT) > $@
        to
            ./gen_lex_hash$(EXEEXT) > [EMAIL PROTECTED]
            mv [EMAIL PROTECTED] $@
        If gen_lex_hash fails then it is a temporary file which gets created.
        and that does not matter on the next run.

>Submitter-Id:  <submitter ID>
>Originator:    
>Organization:
>MySQL support: none
>Synopsis:      An empty lex_hash.h may be generated
>Severity:      non-critical
>Priority:      low
>Category:      mysql
>Class:         change-request
>Release:       mysql-4.0.17 (Source distribution)

>C compiler:    2.95.3
>C++ compiler:  2.95.3
>Environment:
System: SunOS askja.got.appgate.com 5.9 Generic_112233-08 sun4u sparc SUNW,Ultra-250
Architecture: sun4

Some paths:  /usr/bin/perl /usr/ccs/bin/make /usr/pd/bin/gmake /usr/pd/bin/gcc 
/opt/SUNWspro/bin/cc
GCC: Reading specs from /usr/pd/opt/gcc2/lib/gcc-lib/sparc-sun-solaris2.9/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Compilation info: CC='gcc'  CFLAGS='-O3'  CXX='gcc'  CXXFLAGS='-O3 
-felide-constructors -fno-exceptions -fno-rtti'  LDFLAGS='-L/usr/pd/opt/gcc2/lib 
-R/usr/pd/opt/gcc2/lib'  ASFLAGS=''
LIBC: 
-rw-r--r--   1 root     bin      1849348 Jun  4  2003 /lib/libc.a
lrwxrwxrwx   1 root     root          11 Dec 19 10:21 /lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 root     bin       866316 Jun  4  2003 /lib/libc.so.1
-rw-r--r--   1 root     bin      1849348 Jun  4  2003 /usr/lib/libc.a
lrwxrwxrwx   1 root     root          11 Dec 19 10:21 /usr/lib/libc.so -> ./libc.so.1
-rwxr-xr-x   1 root     bin       866316 Jun  4  2003 /usr/lib/libc.so.1
Configure command: ./configure '--prefix=/usr/pd/opt/mysql' '--with-low-memory' 
'--with-extra-charsets=complex' '--enable-assembler' 'CC=gcc' 'CFLAGS=-O3' 
'CXXFLAGS=-O3 -felide-constructors -fno-exceptions -fno-rtti' 'CXX=gcc' 
'LDFLAGS=-L/usr/pd/opt/gcc2/lib -R/usr/pd/opt/gcc2/lib'


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to