[GRASS5] [bug #2852] (grass) Library - libgrass_interpfl.5.7.cvs.dylib - is not built

William K woklist at charter.net
Fri Dec 17 16:27:41 EST 2004


On Dec 17, 2004, at 2:13 PM, Paul Kelly wrote:

>>
>> 	    SHLIB_CFLAGS="-fno-common"
>> 	    SHLIB_LD="cc -dynamiclib -Wl,-flat_namespace,-U,_cuserid 
>> -compatibility_version 5.7 -current_version 5.7 -install_name 
>> \${LIB_RUNTIME_DIR}/lib\${LIB_NAME}\${SHLIB_SUFFIX}"
>
> The whole thing compiles fine without the extra stuff (i.e. just "cc 
> -dynamiclib -single_module") on Scott Mitchell's OS X system that he 
> kindly gave me an account on to use for testing. I'm not sure which 
> version it is though. Specific bug reports using the unmodified CVS 
> might be helpful.
> After stripping out all the extra stuff as far as I can remember I 
> fixed the bugs in individual modules that had made it need the extra 
> flags like _cuserid etc. Have you given it a try since those fixes? It 
> was done around the time of the 5.4.0 release as far as I can 
> remember.
>
haven't tried without the -U,_cuserid option recently, I'll give that a 
try soon.  The key is the -install-name option.  I did try the 
-single-module option when it changed from what it was previously, but 
it had the same effect (it's just simpler option).  That effect is that 
the embedded path for libs in the grass libs would be the source tree 
copies before installation.  I think I tried -single-module with 
-install-name, but I'm not sure.  I'll try again, otherwise it would 
have to be -flat_namespace and -fno-common.

Heck, if Lorenzo's doing the same thing to SHLIB_LD, it must be right? 
^_^  At least it looks like he has a better handle on Mac OS X porting 
stuff than I do.


>> The versions are probably not critical, but the key is the install 
>> name.  The versions should use some sed voodoo to get the grass 
>> version string into an acceptable form instead of being hardcoded.
>
> Radim has done some work on that. I'm not very up-to-date with it 
> except that it has never caused me problems.
>
Work on the version string?  I'll look into that, I vaguely recall 
something about that also.  I've just been lazy (it works), but it 
would be nice to not have to worry about manually changing the version 
number here when it does eventually change.

-----
William Kyngesburye <kyngchaos at charter.net>
http://webpages.charter.net/kyngchaos/

First Pogril: Why is life like sticking your head in a bucket filled 
with hyena offal?
Second Pogril: I don't know.  Why IS life like sticking your head in a 
bucket filled with hyena offal?
First Pogril: I don't know either.  Wretched, isn't it?

-HitchHiker's Guide to the Galaxy




More information about the grass-dev mailing list