home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / mailinglist-archive / 1993-08 / text0163.txt < prev    next >
Encoding:
Text File  |  1993-06-25  |  680 b   |  31 lines

  1.  
  2. > > 
  3. > > There seems to be a problem with libm.a (or at least pow.o in libm.a)
  4.  
  5. Seems to be libm.a ...
  6.  
  7. > > 
  8. > > cc testpow.c -lm
  9. > > pow.o: Undefined symbol _log__D referenced from text segment
  10. > > pow.o: Undefined symbol _exp__D referenced from text segment
  11. > Sheesh.. include <math.h> please...
  12.  
  13. I don't think this helps as perl includes math.h and bombs
  14. nevertheless. I've got another workaround instead of modifying the
  15. perl-source:
  16.  
  17. # cd /usr/lib
  18. # cat >explog.c
  19. #include <math.h>
  20. double exp__D(double d){ return exp(d); }
  21. double log__D(double d){ return log(d); }
  22. ^D
  23. # gcc -c explog.c
  24. # ar vr libm.a explog.o
  25. # ranlib libm.a
  26. # rm explog.*
  27.  
  28. For me this workes fine... 
  29.  
  30.