Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't restart debugger with Perl 5.8.8

Status
Not open for further replies.

MacTommy

Programmer
Feb 26, 2007
116
NL
Dear all,

I just installed Perl 5.8.8 (built for MSWin32-x86-multi-thread).

Now if I do perl -d, or debug in Emacs it all runs fine, but if I restart the debugger (option -R), it complains, saying that:
Code:
Your vendor has not defined POSIX macro _SC_OPEN_MAX, used at C:\Perl\lib/perl5db.pl line 3296
 at C:\Perl\lib/POSIX.pm line 47
        POSIX::AUTOLOAD() called at C:\Perl\lib/perl5db.pl line 3296
        DB::DB called at myProgram.prl line 5

I haven't got any clue as to what I could do about this..?!?
Any suggestions..?!?

Thanks!
 
OK, I solved it, just in case anybody is reading this, but I can't say I like the solution.

In perl5db.prl I commented the next lines out (line numbers 3300-3302 in my version):
Code:
# if (eval { require POSIX }) {
#    $max_fd = POSIX::sysconf(POSIX::_SC_OPEN_MAX());
# }

Just above there is a line saying:
Code:
my $max_fd = 1024; # default if POSIX can't be loaded

so the upshot of it is that this will always be used. Even if you manage to set _SC_OPEN_MAX to a different value, something I couldn't figure out how to accomplish...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top