Path: news.mathworks.com!not-for-mail
From: "Ben Abbott" <abbott.bp@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problems with fortran mex on MACOSX Leopard
Date: Tue, 8 Jan 2008 01:10:19 +0000 (UTC)
Organization: TriQuint Semiconductor
Lines: 47
Message-ID: <fluihr$opq$1@fred.mathworks.com>
References: <fga3tm$1p6$1@fred.mathworks.com> <fgfp8d$p7a$1@fred.mathworks.com> <fl5etm$fve$1@fred.mathworks.com> <477BD186.1040709@mathworks.com> <flhlsc$7v8$1@fred.mathworks.com> <flslsr$m2k$1@fred.mathworks.com> <47823B2A.3000006@mathworks.com>
Reply-To: "Ben Abbott" <abbott.bp@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1199754619 25402 172.30.248.35 (8 Jan 2008 01:10:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 8 Jan 2008 01:10:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 230244
Xref: news.mathworks.com comp.soft-sys.matlab:444762



Unfortunately, I'm still having troubles with my mexmaci builds. I'll spend 
some more time on this and either post what words, or post what doesn't.

In any event, if libz is the "the same version (1.2.3)", does it matter which one 
is loaded first?

Ben

Brian Arnold <barnold@mathworks.com> wrote in message 
<47823B2A.3000006@mathworks.com>...
> Woo hoo!
> 
> The linker warning is new to Xcode 3's linker, and not specific to g95. 
>   It is (correctly) warning that there are two libz's on the path.  On 
> startup, MATLAB's libz is loaded first, and MATLAB requires this version 
> for correct operation.  It happens to be the same version (1.2.3) 
> currently provided by both Tiger and Leopard.
> 
> Brian
> 
> 
> Ben Abbott wrote:
> > Update:
> > 
> > Fink now has g95 for Leopard available.
> > 
> > http://pdb.finkproject.org/pdb/package.php/g95
> > 
> > I haven't done much with it, but I did try one of Mathwork's examples.
> > 
> >>> mex yprimef.F yprimefg.F
> > ld: warning, duplicate dylib 
> > /Applications/MATLAB_R2007b/bin/maci/libz.1.dylib
> >>> yprimef(1,1:4)
> > 
> > ans =
> > 
> >     2.0000    8.9685    4.0000   -1.0947
> > 
> > 
> > In spite of the linker warning, it appears to work!
> > 
> > Ben
> > 
> >