Perl problem - perl complains it cannot find ioctl.ph

Alan Womack arwbackup at worldnet.att.net
Fri Aug 30 04:20:51 PDT 2002


I have been working on a Perl @INC? issue for a couple of days for the program MisterHouse, which is a perl based home automation program.

The following piece of Perl code:

&my_use("Device::SerialPort");  # Unix Posix verion of Win32 SerialPort


causes a note on startup from perl:

Device::Serial could not find ioctl definitions!
Loading other modules
Starting setup
Creating socket and serial objects
 - creating http            on tcp  8080 buffered
 - creating server_telnet   on tcp  1234
 - creating server_mhsend   on tcp  8084 buffered
 - creating cm11            object on port /dev/ttyS0
disabling ioctl methods - constants not found
can't open device: /dev/ttyS0
 at mh line 3668


Can't open serial port /dev/ttyS0:

Can't call method "input" on an undefined value at ./lib/site/ControlX10/CM11.pm line 340.
mh rc=255
mh failed on startup ... will not restart



perl -V outputs:


Alan at webby:Alan $ perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.4.7-10, archname=i686-linux
    uname='linux webby.family 2.4.7-10 #1 thu sep 6 17:27:27 edt 2001 i686 unknown '
    config_args='-ds -e -Dprefix=/usr'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.3 20010315 (release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Jul 10 2002 22:36:11
  @INC:
    /usr/lib/perl5/5.6.1/i686-linux
    /usr/lib/perl5/5.6.1
    /usr/lib/perl5/site_perl/5.6.1/i686-linux
    /usr/lib/perl5/site_perl/5.6.1
    /usr/lib/perl5/site_perl


I have copied ioctl.ph into a couple other places thinking it might be path related, but that has not resolved the matter.

locate ioctl.ph
/usr/lib/perl5/site_perl/5.6.1/i686-linux/asm/ioctl.ph
/usr/lib/perl5/site_perl/5.6.1/i686-linux/ioctl.ph


    .



Epson Inkjet Printer FAQ: http://welcome.to/epson-inkjet
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list