[15055] in Athena Bugs
Matlab/cmex
daemon@ATHENA.MIT.EDU (David S. Lum)
Fri Apr 4 10:46:26 1997
To: bugs@MIT.EDU
Date: Fri, 04 Apr 1997 10:46:19 EST
From: "David S. Lum" <davknav@MIT.EDU>
Hi.
This is the second time I've sent mail regarding this bug, and I'd
really appreciate a response this time, even if it's to say "we're too
busy to do anything right now."
The bug is this: Matlab's "cmex" capability is heart-breakingly close
to being in perfect working order for the SIPB-supported Athena-Linux
platform. There are just two things that need to be modified in the
script /mit/matlab/linuxbin/cmex to make it work:
This section:
> lnx86)
> processor='lnx86'
> mex_ext='mexlx'
>#
> CC='gcc-elf'
> LD='$CC'
> LDFLAGS_DB="-shared -rdynamic"
> LDFLAGS="$LDFLAGS_DB"
> LD_CCLIBS='-lm'
> LD_FCLIBS='-lm'
>#
> ;;
has 2 errors. First, there *is* no such compiler as "gcc-elf" on a
Linux-Athena installation. The only compiler is "gcc", and that is
what CC should be set to. Second, the standard C library must be
specified as a link library (-lc) in LD_CCLIBS, else the resulting MEX
file fails because all sorts of symbols are undefined.
So, please modify the affected portion of /mit/matlab/linuxbin/cmex to
look like this:
lnx86)
processor='lnx86'
mex_ext='mexlx'
#
CC='gcc'
LD='$CC'
LDFLAGS_DB="-shared -rdynamic"
LDFLAGS="$LDFLAGS_DB"
LD_CCLIBS='-lc -lm'
LD_FCLIBS='-lc -lm'
#
;;
Dave
--
------------------------------------------------------------------------
David Lum | davknav@mit.edu
55 Dinsmore Ave. #607 | 617-253-2589 (work)
Framingham, MA 01702 | 508-620-9574 (home)
------------------------------------------------------------------------