rlm_perl build on mac osx
Greetings, Quick disclaimer: Though I've been working on my unix chops for the last year (intermittently), I still consider myself a bit of a newbie, so I apologize for any questions that might have obvious answers. That said: I'm working on a port of FR 2.0 for macports.org and had a couple questions about what appears to be the main stumbling block when building it on the mac (both ppc and intel, in this case under osx 10.4.11). The problem, as those familiar with installing this on the mac, has to do with linking to the apple build of perl under /System/ Library... Bug #471 shows this, and an example of my initial attempts showed much the same: ... (cd .libs && rm -f rlm_perl.so && ln -s rlm_perl-2.0.0.so rlm_perl.so) ar cru .libs/rlm_perl.a /System/Library/Perl/5.8.6/darwin-thread- multi-2level/auto/DynaLoader/DynaLoader.a rlm_perl.o /System/Library/ Perl/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a ranlib: archive member: .libs/rlm_perl.a(DynaLoader.a) fat file for cputype (7) cpusubtype (3) is not an object file (bad magic number) ar: internal ranlib command failed gmake[6]: *** [rlm_perl.la] Error 1 ... Mind you, I've found a way to get past this by simply installing my own build of perl (5.8.8). Regardless, I have these questions: 1] Is it at all possible for rlm_perl to build against apple's install of perl? 2] Is perl only a build dependency for rlm_perl, or does the module make runtime calls to external perl libs? 3] I've discovered with an install of perl 5.10 that, during configure (of freeradius 2), the linker chooses the /System/Library/ 5.8.6... over the new perl ( at {prefix}/lib/perl/5.10.0 ). The only thing I can guess is that when searching for perl libs/includes, the linker only expands to seek version n.n.n and does not recognize a two digit subversion n.nn.n. If that's what's happening, is that patchable? Cheers, Jim ___________________________________________________ James H. Graham II, Creative Director • Spark Media Group 6511 Allegheny Avenue • Takoma Park, MD 20912-4737 Tel: 301.270.4810 • Fax: 301.270.4812 • www.sparkmediagroup.com
Hi, several folk run FreeRADIUS on MacOSX already - and Apple even have added code themselves - I believe FR is the fundamental EAP system in eg latest airport/timecapsule product (though I may be wrong on that aspect of usage! ;-) )
2] Is perl only a build dependency for rlm_perl, or does the module make runtime calls to external perl libs?
correct. its only for rlm_perl
3] I've discovered with an install of perl 5.10 that, during configure (of freeradius 2), the linker chooses the /System/Library/5.8.6... over the new perl ( at {prefix}/lib/perl/5.10.0 ). The only thing I can guess is that when searching for perl libs/includes, the linker only expands to seek version n.n.n and does not recognize a two digit subversion n.nn.n. If that's what's happening, is that patchable?
or likely its a PATH problem and you have to tell it where your 5.10.0 is living. alan
Alan, Thanks for your quick response! Yes, I'm aware that apple has included FR into Leopard and am curious to see how it works in that version of the OS once I move to it eventually. However, for the Tiger users of which I'll remain for a while, I'd like to provide ease of installation via macports. Though a build-able 1.1.7 is available via macports right now, it needs a patch -- which may be a moot point now that 2.0 is here and it fixes the trouble that stripping the binaries (i.e, the INSTALLSTRIP -s switch) caused. I'll look more into the PATH setting for building against 5.10. Perhaps adding the PERL5LIB variable in my env will do the trick. Jim ___________________________________________________ James H. Graham II, Creative Director • Spark Media Group 6511 Allegheny Avenue • Takoma Park, MD 20912-4737 Tel: 301.270.4810 • Fax: 301.270.4812 • www.sparkmediagroup.com On Jan 18, 2008, at 3:19 PM, A.L.M.Buxey@lboro.ac.uk wrote: Hi, several folk run FreeRADIUS on MacOSX already - and Apple even have added code themselves - I believe FR is the fundamental EAP system in eg latest airport/timecapsule product (though I may be wrong on that aspect of usage! ;-) )
2] Is perl only a build dependency for rlm_perl, or does the module make runtime calls to external perl libs?
correct. its only for rlm_perl
3] I've discovered with an install of perl 5.10 that, during configure (of freeradius 2), the linker chooses the /System/Library/5.8.6... over the new perl ( at {prefix}/lib/perl/5.10.0 ). The only thing I can guess is that when searching for perl libs/includes, the linker only expands to seek version n.n.n and does not recognize a two digit subversion n.nn.n. If that's what's happening, is that patchable?
or likely its a PATH problem and you have to tell it where your 5.10.0 is living. alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/ users.html
Info wrote:
Alan,
Thanks for your quick response! Yes, I'm aware that apple has included FR into Leopard and am curious to see how it works in that version of the OS once I move to it eventually. However, for the Tiger users of which I'll remain for a while, I'd like to provide ease of installation via macports.
FR 1.1.6 is included in leopard with patches from Apple to make it work with the open directory services/ server admin stuff. I ran into exactly the same issue as you when attempting to build on leopard server, works fine on a machine with exactly the same architecture running tiger...
Though a build-able 1.1.7 is available via macports right now, it needs a patch -- which may be a moot point now that 2.0 is here and it fixes the trouble that stripping the binaries (i.e, the INSTALLSTRIP -s switch) caused.
I'll look more into the PATH setting for building against 5.10. Perhaps adding the PERL5LIB variable in my env will do the trick.
Jim
___________________________________________________ James H. Graham II, Creative Director • *Spark Media Group* 6511 Allegheny Avenue • Takoma Park, MD 20912-4737 Tel: 301.270.4810 • Fax: 301.270.4812 • www.sparkmediagroup.com <http://www.sparkmediagroup.com>
On Jan 18, 2008, at 3:19 PM, A.L.M.Buxey@lboro.ac.uk <mailto:A.L.M.Buxey@lboro.ac.uk> wrote:
Hi,
several folk run FreeRADIUS on MacOSX already - and Apple even have added code themselves - I believe FR is the fundamental EAP system in eg latest airport/timecapsule product (though I may be wrong on that aspect of usage! ;-) )
It is, but apple include 1.1.6 not 2.0.0, very few people have attempted to build FR 2 on leopard server.
2] Is perl only a build dependency for rlm_perl, or does the module make runtime calls to external perl libs?
correct. its only for rlm_perl
3] I've discovered with an install of perl 5.10 that, during configure (of freeradius 2), the linker chooses the /System/Library/5.8.6... over the new perl ( at {prefix}/lib/perl/5.10.0 ). The only thing I can guess is that when searching for perl libs/includes, the linker only expands to seek version n.n.n and does not recognize a two digit subversion n.nn.n. If that's what's happening, is that patchable?
or likely its a PATH problem and you have to tell it where your 5.10.0 is living.
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
------------------------------------------------------------------------
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (4)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Arran Cudbard-Bell -
Info