dlsym, Win32 error 127 ERROR_PROC_NOT_FOUND

Dave Korn dave.korn@artimi.com
Mon Feb 21 22:13:00 GMT 2005

> -----Original Message-----
> From: cygwin-owner On Behalf Of Dr Clue
> Sent: 18 February 2005 22:05

> I've some .dll/.so code I use for plugins to my html 
> application parser.
> This code works fine on various unix flavors of OS , but
> not with cywin on windows XP. 

> I know that the loadable library is being found , as changing
> the filename of the loadable to some bogus name gets an error
> When I change the target filename back I get
> (ERROR_PROC_NOT_FOUND 127) Actually the text of the error
> is "dlsym, Win32 error 127"

> Any clues?

  Use nm to check the names of the functions in the .so and see if the one
you're looking for is actually there or not.  My guess is they all got decorated
with 'doze-style @nnn endings and you'll need to link with that ld flag that
matches decorated and undecorated names, what was it again..... 

  --enable-stdcall-fixup             Link _sym to _sym@nn without warnings

  That might do the trick.

Can't think of a witty .sigline today....

Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

More information about the Cygwin mailing list