home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / softsys / matlab / 224 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.2 KB

  1. Path: sparky!uunet!news.uiowa.edu!hobbes.physics.uiowa.edu!news.iastate.edu!ux1.cso.uiuc.edu!uwm.edu!spool.mu.edu!agate!stanford.edu!unix!updike!ric
  2. From: ric@updike.sri.com (Richard Steinberger)
  3. Newsgroups: comp.soft-sys.matlab
  4. Subject: MATLAB 4.0A BUGS on SUN 4.1.3 w/ SUN 2.0.1 COMPILERS
  5. Message-ID: <43148@unix.SRI.COM>
  6. Date: 27 Jan 93 19:41:59 GMT
  7. Sender: news@unix.SRI.COM
  8. Organization: sri
  9. Lines: 46
  10. Originator: ric@updike
  11.  
  12.  
  13.     We have some SUNs (4/670 and SS2) that I have recently installed
  14. SUN's 2.0.1 version C and fortran on.  The SUNs use SunOS 4.1.3 and MATLAB
  15. 4.0A.
  16.  
  17.     We are having a terrible time gettting the MEX utility to work.
  18. [It had worked before installing the new compilers.]  The file, .mexrc.sh
  19. in the matlab/bin subdirectory has a bug that prevents proper linking.
  20. [BUG 1].  I customized a user's .mexrc.sh file as follows to try to
  21. overcome that problem.  This is the line I changed:
  22.  
  23.             LD_FCLIBS="/usr/lang/SC2.0.1/libF77.a /usr/lang/SC2.0.1/libm.a 
  24.                        /usr/lib/libc.a"
  25.  
  26.         It was: LD_FCLIBS=
  27.  
  28. This allows a sample mex (fortran) file to be built with fmex, but when
  29. we try to run in MATLAB, we get:
  30.  
  31. Undefined symbol '___builtin_saveregs' in file /home/updike/usr6/nixon/stdfilstuff/testformex.mex4.
  32. Undefined symbol '___f_clos' in file /home/updike/usr6/nixon/stdfilstuff/testformex.mex4.
  33. Undefined symbol '_flush_' in file /home/updike/usr6/nixon/stdfilstuff/testformex.mex4.
  34. Undefined symbol '_f_exit' in file /home/updike/usr6/nixon/stdfilstuff/testformex.mex4.
  35. Undefined symbol '___base_conversion_write_only_do' in file /home/updike/usr6/nixon/stdfilstuff/testformex.mex4.
  36. ??? Invalid MEX-file
  37.  
  38.  
  39.  
  40. ___builtin_saveregs: This ugly beast is apparently only defined in a gcc
  41. library.  Arrrggh!
  42.  
  43.     A second BUG is that I changed the CC= line in .mexrc.sh to
  44. CC=acc hoping to use the ANSI compiler.  This line is not picked up
  45. by fmex (or cmex).
  46.  
  47.     I have a call into The Mathworks, several hours old, but so far
  48. no response.  [Frustration......]  Is there a policy at the Mathworks to 
  49. return calls within a specified time limit?
  50.  
  51.       Has anyone seen this problem before?  If so, could you comment on how you
  52. solved it?
  53.  
  54.     Thanks in advance for all responses.
  55.  
  56. ric steinberger
  57. ric@updike.sri.com
  58.