Discussion:
dlsym, Win32 error 127 ERROR_PROC_NOT_FOUND
Dr Clue
2005-02-18 22:04:35 UTC
Permalink
Howdy folks.

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 use the cywin because
my remote location has me using satellite internet
which makes for high latency tenets, so developing on my laptop
is much easier.

I know that the loadable library is being found , as changing
the filename of the loadable to some bogus name gets an error
(ERROR_MOD_NOT_FOUND 126)

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"


I've seen a lot of questions on this subject , but no
relevant answers

Any clues?
Larry Hall
2005-02-18 23:06:04 UTC
Permalink
Post by Dr Clue
Howdy folks.
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 use the cywin because
my remote location has me using satellite internet
which makes for high latency tenets, so developing on my laptop
is much easier.
I know that the loadable library is being found , as changing
the filename of the loadable to some bogus name gets an error
(ERROR_MOD_NOT_FOUND 126)
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"
I've seen a lot of questions on this subject , but no
relevant answers
Any clues?
Given this information, the only thing I can point you to is:

$ net helpmsg 127
The specified procedure could not be found.

So whatever the routine is that you're looking for in your DLL, it cannot
be found. Perhaps it's not exported?

Please read and follow the problem reporting guidelines detailed at:

Problem reports: http://cygwin.com/problems.html

That might help to enlighten us all.



--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
Dr Clue
2005-02-25 05:34:25 UTC
Permalink
Hello Larry

Thank you for taking the time to respond.
In the end it was some changes to the gcc incantation
that got it to run. These were described nicely
in an old archive message at.

http://cygwin.com/ml/cygwin/2000-06/msg00688.html
Post by Larry Hall
$ net helpmsg 127
The specified procedure could not be found.
So whatever the routine is that you're looking for in your DLL, it cannot
be found. Perhaps it's not exported?
Problem reports: http://cygwin.com/problems.html
That might help to enlighten us all.
Larry Hall
2005-02-25 21:42:58 UTC
Permalink
Post by Dr Clue
Hello Larry
Thank you for taking the time to respond.
In the end it was some changes to the gcc incantation
that got it to run. These were described nicely
in an old archive message at.
http://cygwin.com/ml/cygwin/2000-06/msg00688.html
Right. That will work if exporting is your issue. But that information
is pretty dated. There's an easier way to get this all to work for you.
See <http://cygwin.com/cygwin-ug-net/dll.html>. There's a pointer to this
page from the FAQ entry:

How do I build a DLL?
<http://cygwin.com/faq/faq_toc.html#TOC109>

I've included this mostly for archive purposes, since you've already
found a way that works for you.



--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746

Dave Korn
2005-02-20 15:23:38 UTC
Permalink
-----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
(ERROR_MOD_NOT_FOUND 126)
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 ***@nn without warnings

That might do the trick.

cheers,
DaveK
--
Can't think of a witty .sigline today....
Continue reading on narkive:
Search results for 'dlsym, Win32 error 127 ERROR_PROC_NOT_FOUND' (Questions and Answers)
10
replies
What is AIX Box?
started 2006-05-08 15:58:44 UTC
hardware
Loading...