Hi, I've recently inherited a lab with old Sparc 5s and 2s running Solaris 2.3. The researcher won't let me upgrade the OS or replace some of the machines...*&^$! Nevertheless, I upgraded the compiler to gcc 3.0.2 and started to install openssl-0.9.6b. Unfortunately I've run into the infamous "undefined reference to `ftime'" that's plaguing the Mac OS X admins. Here's where things break:
speed.o: In function `Time_F': /export/home/unixsys/openssl-0.9.6b/apps/speed.c:294: undefined reference to `ftime' /export/home/unixsys/openssl-0.9.6b/apps/speed.c:299: undefined reference to `ftime' collect2: ld returned 1 exit status make[1]: *** [openssl] Error 1 make[1]: Leaving directory `/export/home/unixsys/openssl-0.9.6b/apps' gmake: *** [sub_all] Error 1 Looking at speed.c 289 static struct timeb tstart,tend; 290 long i; 291 292 if (s == START) 293 { 294 ftime(&tstart); 295 return(0); 296 } 297 else 298 { 299 ftime(&tend); 300 i=(long)tend.millitm-(long)tstart.millitm; 301 ret=((double)(tend.time-tstart.time))+((double)i)/1000.0; 302 return((ret < 0.001)?0.001:ret); So I don't get it. The reference to ftime gets defined compiling on Solaris 2.5, 2.6 and 2.8. Is this an inherit problem with just 2.3? What's the fix? Trash the machines ;-). Thanks, Dave =========================================== Dave Encisco [EMAIL PROTECTED] [EMAIL PROTECTED] =========================================== ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]