apache dll name mangling

2005-08-23 Thread Surendra Singhi
Hello,
  I am trying to write a ffi interface to apache httpd windows dlls, and I ran
into the issue of name mangling.
I can solve this problem for the particular version of dlls which I am using
but it is not a generic/portable solution for different platforms.

In particular I would like to quote Roger Corman (the main person behind
Corman Lisp) on the topic of name mangling and automatically taking care of it
in ffi interfaces (back in 2003), aka. decoration:

You could try to make it easier by doing his automatically, but you don't
in general know what name mangling scheme was used (if any was used). DLLs
may have been generated by different compilers. In Corman Lisp FFI I ignore
it and let the user worry about it. If they call a mangled name, they have
to explicitly specify that name. Nobody has complained, probably because
most exported functions do not have mangled names (if they support a C
interface anyway).
The Microsoft C++ compiler automatically does the name mangling unless you 
tell it otherwise.
This is to catch problems (incorrect declarations) at link time rather than 
run time.
However, you can disable it when you build (link) a DLL by including a .def 
file,
with the names explicitly listed. 
Microsoft does this for all their system DLLs. The names are not mangled.


So, I will request that future release of apache, should try to avoid dlls
with mangled names.

Any comments?

Thanks for your consideration.

-- 
Surendra Singhi
http://www.public.asu.edu/~sksinghi/index.html

All animals are equal, but some animals are more equal than others.
- Orwell, Animal Farm, 1945



ANN: Linux TestFest

2005-05-27 Thread Surendra Singhi

Love Linux?  Love TESTING on Linux?  We're SpikeSource, a bunch of
passionate open source testing folks, and we're holding our first-ever
TestFest on June 17th.  We'll give you the chance to show how good your code
really is by testing it using our new 'test harness'.  We run 22,000 tests
per day on over 63 open source components using this harness.  This event
kicks off our free testing service for the open source community.  Mix and
mingle with our developers to chat about open source testing.  Hear from
SpikeSource founder  CTO Murugan Pal on Participatory Testing and our
architect, Sastry Malladi, about our Core stack product.  Testing
demonstrations on popular open source software will also be held for
attendees.  All developers are welcome!  Check us out at
www.spikesource.com/testfest.html, where you can register and learn how to
package and test your code.  On June 17th, 3pm, head over to SpikeSource
offices in Redwood City to receive a report on your test results with
helpful feedback from our staff.  Lots of free food  beer to go around.
Heck, we're even hiring.  Should be a real geek fest!  We hope to see you
there.


-- 
Surendra Singhi
http://www.public.asu.edu/~sksinghi