Hi Martin: Fortunately the fix was much simpler for apbs.
I just started the CompileScript with #!/bin/bash -efv source %p/bin/init.sh PATH=%p/bin:%p/sbin:${PATH} ; export PATH the last two lines are probably overkill, but to be on the safe side... Thanks (and sorry!!!). Bill On Sep 7, 2009, at 5:23 AM, Martin Costabel wrote: > Here is the first mail in that thread: > > -------- Original Message -------- > Subject: [Fink-devel] zsh as shell in compilescript on 10.6 breaks > 32bit Fink > Date: Mon, 31 Aug 2009 09:42:21 +0200 > From: Martin Costabel <costa...@wanadoo.fr> > To: Fink <fink-devel@lists.sourceforge.net> > > > After spending time trying to build apbs in SnowLeopard 32-bit Fink, I > have identified a source of breakage, but I have not yet found a good > solution: > > CompileScripts that run in zsh, like apbs which has > #!/bin/zsh -efv > have a good chance to break on 32-bit Fink on SL. The reason is the > following: > > SL has /etc/zshenv, which didn't exist before. This script is always > executed at startup of zsh, and according to man zsh, this behavior > cannot be overridden. Now /etc/zshenv runs /usr/libexec/path_helper, > and > this places the system path /usr/bin in front of Fink's path. > > In particular, "gcc" will then be /usr/bin/gcc, and not the carefully > crafted /sw/var/lib/fink/path-prefix-10.6/gcc, and therefore it will > not > have the "-arch i386" flag, and it will build for the x86_64 > architecture, which causes breakage in 32bit Fink. > > Somehow one needs to place that path-prefix back in front of the PATH, > but since this is distribution and architecture dependent, to do so > can > become quite a mess. > > On a related note: How does one tell gfortran (from Fink's gcc44) to > build either 32bit or 64bit executables? It does not seem to > understand > the -arch flag. The same question goes for all Fink-built compilers. > If > there is no reasonable answer, then this would be a further argument > against keeping 32bit Fink on SnowLeopard. > > -- > Martin > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Fink-devel mailing list > Fink-devel@lists.sourceforge.net > http://news.gmane.org/gmane.os.apple.fink.devel > Subscription management: > https://lists.sourceforge.net/lists/listinfo/fink-devel > --------------------------------------------------------------------------------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. > > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel