Closed p5pRT closed 20 years ago
After successfull installation of perl I tried to run the following script:
#!/usr/bin/perl use Sys::Syslog; openlog('programname'\,'ndelay'\,'root'); syslog('debug'\,'message'); closelog();
which gave me the following error
Can't locate stdarg.ph in @INC (did you run h2ph?) (@INC contains: /usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005 .) at /usr/lib/perl5/site_perl/5.005/i586-linux/sys/syslog.ph line 76. BEGIN failed--compilation aborted at test.pl line 2.
Well\, I did run h2ph!! And there was still now stdarg.ph in my filesystem (find / -xdev -name stdarg.ph)
After checking in some news groups I found the following sollution for me:
Foo:/root # locate stdarg.h /usr/include/g++/std/cstdarg.h /usr/lib/gcc-lib/i486-linux/2.7.2.1/include/stdarg.h Foo:/root # cd /usr/lib/gcc-lib/i486-linux/2.7.2.1/include Foo:/usr/lib/gcc-lib/i486-linux/2.7.2.1/include # h2ph stdarg.h
Which build me the missing stdarg.ph Then I had to make some changes in the stdarg.ph:
unless(defined(&_STDARG_H)) { unless(defined(&_ANSI_STDARG_H_)) { # unless(defined(&__need___va_list)) { eval 'sub _STDARG_H () {1;}' unless defined(&_STDARG_H); eval 'sub _ANSI_STDARG_H_ () {1;}' unless defined(&_ANSI_STDARG_H_); # } # undef(&__need___va_list) if defined(&__need___va_list); if(defined(&__clipper__)) {
Now it work for me!!
Migrated from rt.perl.org#910 (status was 'resolved')
Searchable as RT910$