Hello,

I am trying to compile MySQL 4.0.15a on a Solaris system. I am not having much luck and would appreciate some help.

Here is the error and I will tell all information I can think of that might help:

gcc -O3 -DDBUG_OFF -I/usr/local/openssl/include -I/usr/local/openssh/include -I/usr/local/mysql/include/mysql -I/usr/local/openldap/include -I/usr/local/share/libtool/libltdl -I/usr/local/krb5/include -I/usr/local/db/include -D_FILE_OFFSET_BITS=64 -DHAVE_CURSES_H -I/usr/local/src/mysql-4.0.15a/include -DHAVE_RWLOCK_T -o test_thr_alarm -DDEFAULT_BASEDIR=\"/usr/local/mysql-4.0.15a\" -DDATADIR=\"/usr/local/mysql-4.0.15a/var\" -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql-4.0.15a\" -DSHAREDIR=\"/usr/local/mysql-4.0.15a/share/mysql\" -DHAVE_CONFIG_H -I./../include -I../include -I.. -I. -I/usr/local/openssl/include -I/usr/local/openssh/include -I/usr/local/mysql/include/mysql -I/usr/local/openldap/include -I/usr/local/share/libtool/libltdl -I/usr/local/krb5/include -I/usr/local/db/include -O3 -DDBUG_OFF -I/usr/local/openssl/include -I/usr/local/openssh/include -I/usr/local/mysql/include/mysql -I/usr/local/openldap/include -I/usr/local/share/libtool/libltdl -I/usr/local/krb5/include -I/usr/local/db/include -D_FILE_OFFSET_BITS=64 -DHAVE_CURSES_H -I/usr/local/src/mysql-4.0.15a/include -DHAVE_RWLOCK_T -DMAIN ./test_thr_alarm.c -L/opt/sfw/lib -L/usr/local/openssl/lib -L/usr/local/openssh/lib -L/usr/local/mysql/lib/mysql -L/usr/local/openldap/lib -L/usr/local/lib -L/usr/local/krb5/lib -L/usr/local/db/lib -ldl libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lthread -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lpthread -lthread -R/opt/sfw/lib:/usr/local/openssl/lib:/usr/local/openssh/lib:/usr/ local/mysql/lib/mysql:/usr/local/openldap/lib:/usr/local/krb5/lib:/usr/ local/db/lib:/usr/local/lib
Undefined first referenced
symbol in file
set_timespec /var/tmp/ccHjlqre.o
ld: fatal: Symbol referencing errors. No output written to test_thr_alarm
collect2: ld returned 1 exit status
gmake[2]: *** [test_thr_alarm] Error 1
gmake[2]: Leaving directory `/usr/local/src/mysql-4.0.15a/mysys'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/mysql-4.0.15a'
gmake: *** [all] Error 2


So... set_timespec is related to pthreads from what I can tell so I'm assuming pthreads is having the issue. We usually do our MySQL install's from source and the 3.23 branch seemed to work fine. I checked in /path/to/source/include/my_global.h and there seems to be a set_timespec define. Maybe that's a backup if pthreads goes funny or doesn't exist? Either way, I attempted to add the code from my_global (copied below in case it is unclear what I actually copied), directly into the source to see if maybe it would compile (I know this isn't the best idea, but for information gathering purposes, hey, why not?) Anyway, when I ran make the original source somehow came back and over wrote my changes. Can't say I was aware make knew how to do that...

#define set_timespec(ABSTIME,SEC) \
{\
  struct timeval tv;\
  gettimeofday(&tv,0);\
  (ABSTIME).tv_sec=tv.tv_sec+(time_t) (SEC);\
  (ABSTIME).tv_nsec=tv.tv_usec*1000;\
}

uname -a shows: SunOS hostname 5.8 Generic_108528-21 sun4u sparc SUNW,Ultra-60

Any help would be VERY appreciated!

- James Dennis


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



Reply via email to