List:Internals« Previous MessageNext Message »
From:Trond Eivind Glomsrød Date:March 5 2001 3:46pm
Subject:Re: Compilation Help?
View as plain text  
Michael Widenius <monty@stripped> writes:

> Carl> gcc -DUNDEF_THREADS_HACK -I./../include
> Carl> -I../include -I./.. -I..                                -I..    -O3
> Carl> -DDBUG_OFF   -fno-implicit-templates -c
> Carl> /bin/sh ../libtool --mode=link gcc  -O3 -DDBUG_OFF
> Carl> -fno-implicit-templates -rdynamic -o mysql  mysql.o readline.o
> Carl> sql_string.o completion_hash.o ../readline/libreadline.a -lncurses
> Carl> ../libmysql/  -lz -lcrypt -lnsl -lm 
> Carl> mkdir .libs
> Carl> gcc -O3 -DDBUG_OFF -fno-implicit-templates -rdynamic -o .libs/mysql
> Carl> mysql.o readline.o sql_string.o completion_hash.o
> Carl> ../readline/libreadline.a -lncurses ../libmysql/.libs/
> Carl> -lz -lcrypt -lnsl -lm -lz -lcrypt -lnsl -lm -Wl,--rpath
> Carl> -Wl,/usr/local/lib/mysql
> Carl> ../libmysql/.libs/ undefined reference to `mkstemp64'
> Carl> collect2: ld returned 1 exit status
> Carl> make[2]: *** [mysql] Error 
> Carl> I apologize if this is not the appropriate forum for this question, and
> Carl> would appreciate a pointer to said correct forum.
> I haven't seen this particular error before.  I also did a search on
> my machine (SuSe 7.0) but didn't find anything referring to mkstemp64.
> Try to do:
> nm /usr/lib/*.a | grep mkstemp64 

We (well, glibc2.2) don't have this symbol, and I don't see why it would make sense to
have it. It looks like something is just adding "64" blindly (as we do
support other 64 functions, like stat, open, fopen etc). FWIW, 3.23.33
compiles fine for us (we don't add the MySQL-specific version of DB,

Trond Eivind Glomsrød
Red Hat, Inc.
Compilation Help?Carl M Petersen IV26 Feb
  • Compilation Help?Michael Widenius5 Mar
    • Re: Compilation Help?(Trond Eivind Glomsrød)5 Mar