To enable serial port tests, use: perl Makefile.PL TESTPORT= where is a specific port or 'auto' to autodetect. Running ./configure ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for gcc option to accept ISO C99... -std=gnu99 checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99 checking how to run the C preprocessor... gcc -std=gnu99 -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for library containing strerror... none required checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking sys/termiox.h usability... no checking sys/termiox.h presence... no checking for sys/termiox.h... no checking sys/termios.h usability... yes checking sys/termios.h presence... yes checking for sys/termios.h... yes checking sys/ttycom.h usability... yes checking sys/ttycom.h presence... yes checking for sys/ttycom.h... yes checking sys/modem.h usability... no checking sys/modem.h presence... no checking for sys/modem.h... no checking IOKit/serial/ioss.h usability... yes checking IOKit/serial/ioss.h presence... yes checking for IOKit/serial/ioss.h... yes checking definition of _SC_CLK_TCK... found checking definition of TIOCMBIS... found checking definition of TIOCMBIC... found checking definition of TIOCMGET... found checking definition of CRTSCTS... found checking definition of OCRNL... found checking definition of ONLCR... found checking definition of ECHOKE... found checking definition of ECHOCTL... found checking definition of TIOCM_CAR... found checking definition of TIOCM_CD... found checking definition of TIOCM_RNG... found checking definition of TIOCM_RI... found checking definition of TIOCM_CTS... found checking definition of TIOCM_DSR... found checking definition of TIOCMIWAIT... missing checking definition of TIOCGICOUNT... missing checking definition of TIOCINQ... missing checking definition of FIONREAD... found checking definition of TIOCOUTQ... found checking definition of TIOCSER_TEMT... missing checking definition of TIOCM_LE... found checking definition of TIOCSERGETLSR... missing checking definition of TIOCSDTR... found checking definition of TIOCCDTR... found checking definition of TIOCM_RTS... found checking definition of TIOCM_DTR... found checking definition of CTSXON... missing checking definition of RTSXOFF... missing checking definition of TCGETX... missing checking definition of TCSETX... missing checking definition of IOSSIOSPEED... found checking definition of B0... found checking definition of B50... found checking definition of B75... found checking definition of B110... found checking definition of B134... found checking definition of B150... found checking definition of B200... found checking definition of B300... found checking definition of B600... found checking definition of B1200... found checking definition of B1800... found checking definition of B2400... found checking definition of B4800... found checking definition of B9600... found checking definition of B19200... found checking definition of B38400... found checking definition of B57600... found checking definition of B115200... found checking definition of B230400... found checking definition of B460800... missing checking definition of B500000... missing checking definition of B576000... missing checking definition of B921600... missing checking definition of B1000000... missing checking definition of B1152000... missing checking definition of B1500000... missing checking definition of B2000000... missing checking definition of B2500000... missing checking definition of B3000000... missing checking definition of B3500000... missing checking definition of B4000000... missing checking serial control via ioctl... yes checking read/write of RTS signal... yes checking read/write of DTR signal... yes checking read access to modem lines... yes checking read access to buffer status... no configure: WARNING: You will not be able to check the serial buffer state (to test for flushes) checking read access to serial line status... no configure: WARNING: You will not be able to check serial line status (to do full write flush) checking normal CTS/RTS flow control... yes configure: creating ./config.status config.status: creating config.h Checking if your kit is complete... Looks good Writing Makefile for Device::SerialPort You're ready to run 'make' now... cp SerialPort.pm blib/lib/Device/SerialPort.pm /Users/cpanrun/build/5.10.0/bin/perl /Users/cpanrun/build/5.10.0/lib/ExtUtils/xsubpp -typemap /Users/cpanrun/build/5.10.0/lib/ExtUtils/typemap SerialPort.xs > SerialPort.xsc && mv SerialPort.xsc SerialPort.c gcc -c -I. -fno-common -DPERL_DARWIN -no-cpp-precomp -arch ppc -arch i386 -nostdinc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -mmacosx-version-min=10.3 -DPRIVLIB_LAST_IN_INC -fno-strict-aliasing -pipe -O3 -DVERSION=\"1.04\" -DXS_VERSION=\"1.04\" "-I/Users/cpanrun/build/5.10.0/lib/CORE" SerialPort.c Running Mkbootstrap for Device::SerialPort () chmod 644 SerialPort.bs rm -f blib/arch/auto/Device/SerialPort/SerialPort.bundle env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -Wl,-search_paths_first -arch ppc -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3 SerialPort.o -o blib/arch/auto/Device/SerialPort/SerialPort.bundle \ \ chmod 755 blib/arch/auto/Device/SerialPort/SerialPort.bundle cp SerialPort.bs blib/arch/auto/Device/SerialPort/SerialPort.bs chmod 644 blib/arch/auto/Device/SerialPort/SerialPort.bs cp modemtest blib/script/modemtest /Users/cpanrun/build/5.10.0/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/modemtest Manifying blib/man1/modemtest.1 Manifying blib/man3/Device::SerialPort.3 PERL_DL_NONLAZY=1 /Users/cpanrun/build/5.10.0/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/01timing.............1..7 ok 1 - use Device::SerialPort; ok 2 - Device::SerialPort->can('get_tick_count') ok 3 - get_tick_count returns a number ok 4 - sleep sleeps ok 5 - get_tick_count still returns a number ok 6 - measured sleep as more than 1 second ok 7 - measured sleep as less than 2 seconds ok t/10basic..............1..0 # Skip No serial port selected for use with testing skipped all skipped: No serial port selected for use with testing t/11saved-state........1..0 # Skip No serial port selected for use with testing skipped all skipped: No serial port selected for use with testing t/20inherited..........AltPort import=65535 1..0 # Skip No serial port selected for use with testing skipped all skipped: No serial port selected for use with testing t/21inherited-state....AltPort import=65535 1..0 # Skip No serial port selected for use with testing skipped all skipped: No serial port selected for use with testing All tests successful, 4 tests skipped. Files=5, Tests=7, 3 wallclock secs ( 0.77 cusr + 0.20 csys = 0.97 CPU) Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /Users/cpanrun/build/5.10.0/site/lib/auto/Device/SerialPort/SerialPort.bs Installing /Users/cpanrun/build/5.10.0/site/lib/auto/Device/SerialPort/SerialPort.bundle Installing /Users/cpanrun/build/5.10.0/html/bin/modemtest.html Installing /Users/cpanrun/build/5.10.0/html/site/lib/Device/SerialPort.html Installing /Users/cpanrun/build/5.10.0/site/lib/Device/SerialPort.pm Installing /Users/cpanrun/build/5.10.0/site/man/man1/modemtest.1 Installing /Users/cpanrun/build/5.10.0/site/man/man3/Device::SerialPort.3 Installing /Users/cpanrun/build/5.10.0/site/bin/modemtest Appending installation info to /Users/cpanrun/build/5.10.0/lib/perllocal.pod