🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.matlab
Article #123

MATLAB 4.0A BUGS on SUN 4.1.3 w/ SUN 2.0.1 COMPILERS

#123
From: Richard Steinberger
Date: Wed, 27 Jan 1993 19:41
46 lines
2311 bytes
	We have some SUNs (4/670 and SS2) that I have recently installed
SUN's 2.0.1 version C and fortran on.  The SUNs use SunOS 4.1.3 and MATLAB
4.0A.

	We are having a terrible time gettting the MEX utility to work.
[It had worked before installing the new compilers.]  The file, .mexrc.sh
in the matlab/bin subdirectory has a bug that prevents proper linking.
[BUG 1].  I customized a user's .mexrc.sh file as follows to try to
overcome that problem.  This is the line I changed:

            LD_FCLIBS="/usr/lang/SC2.0.1/libF77.a /usr/lang/SC2.0.1/libm.a 
                       /usr/lib/libc.a"

	    It was: LD_FCLIBS=

This allows a sample mex (fortran) file to be built with fmex, but when
we try to run in MATLAB, we get:

Undefined symbol '___builtin_saveregs' in file /home/updike/usr6/nixon/stdfilstuff/testformex.mex4.
Undefined symbol '___f_clos' in file /home/updike/usr6/nixon/stdfilstuff/testformex.mex4.
Undefined symbol '_flush_' in file /home/updike/usr6/nixon/stdfilstuff/testformex.mex4.
Undefined symbol '_f_exit' in file /home/updike/usr6/nixon/stdfilstuff/testformex.mex4.
Undefined symbol '___base_conversion_write_only_do' in file /home/updike/usr6/nixon/stdfilstuff/testformex.mex4.
??? Invalid MEX-file



___builtin_saveregs: This ugly beast is apparently only defined in a gcc
library.  Arrrggh!

	A second BUG is that I changed the CC= line in .mexrc.sh to
CC=acc hoping to use the ANSI compiler.  This line is not picked up
by fmex (or cmex).

	I have a call into The Mathworks, several hours old, but so far
no response.  [Frustration......]  Is there a policy at the Mathworks to 
return calls within a specified time limit?

      Has anyone seen this problem before?  If so, could you comment on how you
solved it?

	Thanks in advance for all responses.

ric steinberger
ric@updike.sri.com
Technical Details
Message-ID: <43148@unix.SRI.COM>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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
From: ric@updike.sri.com (Richard Steinberger)
Newsgroups: comp.soft-sys.matlab
Subject: MATLAB 4.0A BUGS on SUN 4.1.3 w/ SUN 2.0.1 COMPILERS
Message-ID: <43148@unix.SRI.COM>
Date: 27 Jan 93 19:41:59 GMT
Sender: news@unix.SRI.COM
Organization: sri
Lines: 46
Originator: ric@updike