On Thu, 12 Jun 2003, Damir Buskulic wrote:

> Hi,
>
> On Wed, 11 Jun 2003, Joe Laffey wrote:
> > While I have yet to make a Fink package for it, I have made some patches
> > to ElectricFence to compile and test out properly under OSX. If you are
> > interested... I do not have time to clean it all up right now, but I can
> > send you what I have (or anyone who might wish to make a package).
>
>
> Thanks a bunch for sending me the package. I tried to use it but I always
> have warnings like
>
> ld: warning multiple definitions of symbol _malloc
> /Users/buskulic/virgoApp/ElectricFence/ElectricFence-2.2.2/libefence.a(efence.o)
> definition of _malloc in section (__TEXT,__text)
> /usr/lib/libm.dylib(malloc.So) definition of _malloc
>
> and the behaviour seems random. I'm not sure that the right malloc
> functions are called (the ones from efence) because I sometimes get
> messages about MallocHelp, which would mean that the system malloc is
> called. Though the Electric Fence message appears at the beginning.
> How can one be sure to load only the malloc functions from libefence.a and
> not libm.dylib (?) or whatever it is called.

The warnings are normal, or at least I have efence work properly with
them. I think the link order is important here. Try specifying -lefence
first on the compile/link line, before any other libs, especially before
-lm (which I don't think is needed on OS X, anyway).

Check out the efence manpage for more info. The program is *supposed* to
crash at the slightest malloc problem. You might try setting the
environment var EF_ALIGNMENT to 0 for the strictest checking (in other
words, always use this).

If you see the Efence copyright then I believe it is working correctly. I
just notcied that the copyright note in the 2.2.2 I sent you says 2.2.0. I
think this is Perens' mistake...



--
Joe Laffey              |  Want to convert subnet masks between different
LAFFEY Computer Imaging |  notations, or figure the number of IPs in a block?
St. Louis, MO           |  Whatmask-It's FREE - www.laffeycomputer.com/wm.html
------------------------------------------------------------------------------


-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to