Douglas,

----- Original Message ----- From: ""Douglas B. Jones"" <[EMAIL PROTECTED]>
Newsgroups: mailing.database.myodbc
Sent: Monday, March 14, 2005 11:19 PM
Subject: compilation problems with 4.1.10a on Tru64 5.1




Here is the script to compile 4.1.10a, it worked compiled fine with the directory changed on 4.0.23a and before:

#!/usr/bin/ksh
PATH=/usr/local/bin:"$PATH"
export PATH
echo $PATH
D=mysql-4.1.10a
CC="cc"
export CC
CXX="cxx -O"
export CXX
cd $D
./configure \
       --prefix=/usr/local/mysql-test\
       --with-lib-ccflags=-pthread\
       --with-mysqld-user=mysqlt\
       --with-tcp-port=4306\
       --with-unix-socket-path=/usr/local/mysql-test/var/mysql.sock\
       --with-named-thread-libs="-lpthread -lmach -lexc -lc"\
       --enable-thread-safe-client
gmake

Two notes on the above:
1) I had to add --with-lib-ccflags=-pthread as of 4.0.23a,
   before that I had -pthread in the CFLAGS for 3.x versions,
   but this would not work for the 4.0.23a version
2) this compiles fine when D=4.0.23a

During the config, I noticed this:

checking dependency style of cc... tru64
checking whether we are using the GNU C++ compiler... no
checking whether cxx -O accepts -g... yes
checking dependency style of cxx -O... tru64
checking how to run the C preprocessor... cc -E
cc: Error: No source or object files specified on the command line
checking "C Compiler version"... "cc "
cxx: Error: No source or object files specified on the command line
checking "C++ compiler version"... "cxx -O "

It failed the compilation with this (I tried to put line breaks in it):

gmake gen_lex_hash
gmake[5]: Entering directory `/src/net/db/mysql/mysql-4.1.10a/sql'
cxx -O -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql-test\""
-DDATADIR="\"/usr/local/mysql-test/var\""
-DSHAREDIR="\"/usr/local/mysql-test/share/mysql\""
-DHAVE_CONFIG_H -I. -I. -I.. -I../zlib -I../innobase/include
-I../include -I../regex -I. -O3 -DDBUG_OFF
-DUNDEF_HAVE_GETHOSTBYNAME_R -DSNPRINTF_RETURN_TRUNC
-I/usr/include/cxx -I/usr/include/cxx_cname -I/usr/include
-I/usr/include.dtk -c -I../zlib -I../innobase/include -I../include
-I../regex -I. gen_lex_hash.cc
/bin/ksh ../libtool --preserve-dup-deps --mode=link cxx -O -O3
-DDBUG_OFF -DUNDEF_HAVE_GETHOSTBYNAME_R
-DSNPRINTF_RETURN_TRUNC -I/usr/include/cxx -I/usr/include
/cxx_cname -I/usr/include -I/usr/include.dtk -o gen_lex_hash
gen_lex_hash.o ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a
../mysys/libmysys.a
../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a
../zlib/libz.la -lpthread -lmach -lexc -lc -lm
-lpthread -lmach -lexc -lc
cxx -O -O3 -DDBUG_OFF -DUNDEF_HAVE_GETHOSTBYNAME_R
-DSNPRINTF_RETURN_TRUNC -I/usr/include/cxx
-I/usr/include/cxx_cname -I/usr/include
-I/usr/include.dtk -o .libs/gen_lex_hash gen_lex_hash.o ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a
../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a
../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a ../zlib/.libs/libz.so -lpthread -lmach -lexc -lc
-lpthread
-lmach -lexc -lc -lpthread -lmach -lexc -lc -lm -lpthread
-lmach -lexc -lc
creating gen_lex_hash
gmake[5]: Leaving directory `/src/net/db/mysql/mysql-4.1.10a/sql'
./gen_lex_hash > lex_hash.h
gmake[4]: *** [lex_hash.h] Error 1
gmake[4]: Leaving directory `/src/net/db/mysql/mysql-4.1.10a/sql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/src/net/db/mysql/mysql-4.1.10a/sql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/src/net/db/mysql/mysql-4.1.10a/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/src/net/db/mysql/mysql-4.1.10a'
gmake: *** [all] Error 2


The file, MYSQLDIR/sql/lex_hash.h is zero bytes.

Any idea where I should go from here? Thanks!

try deleting that zero-byte lex_hash.h.

Best regards,

Heikki Tuuri
Innobase Oy
Foreign keys, transactions, and row level locking for MySQL
InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up MyISAM tables
http://www.innodb.com/order.php


Order MySQL Network from http://www.mysql.com/network/


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



Reply via email to