compiler shows part of the problem:
FAM.c
Running Mkbootstrap for SGI::FAM ()
cp magicrcs blib/script/magicrcs
cp monitor blib/script/monitor
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/magicrcs
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/monitor
chmod 644 FAM.bs
cp lib/SGI/FAM.pm blib/lib/SGI/FAM.pm
AutoSplitting blib/lib/SGI/FAM.pm (blib/lib/auto/SGI/FAM)
cp FAM.bs blib/arch/auto/SGI/FAM/FAM.bs
chmod 644 blib/arch/auto/SGI/FAM/FAM.bs
cc -c -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING
-fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall
-pipe -DVERSION=\"1.002\" -DXS_VERSION=\"1.002\" -fPIC
"-I/usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/CORE" FAM.c
FAM.xs: In function ‘constant’:
FAM.xs:117:1: warning: label ‘not_there’ defined but not used
FAM.c: In function ‘XS_FAMConnectionPtr_new’:
FAM.c:762:9: warning: unused variable ‘class’
FAM.c: In function ‘XS_FAMRequestPtr_new’:
FAM.c:837:9: warning: unused variable ‘class’
FAM.c: In function ‘XS_FAMEventPtr_new’:
FAM.c:940:9: warning: unused variable ‘class’
rm -f blib/arch/auto/SGI/FAM/FAM.so
LD_RUN_PATH="/usr/lib64" cc -shared -L/usr/local/lib64
-fstack-protector FAM.o -o blib/arch/auto/SGI/FAM/FAM.so \
-lfam \
chmod 755 blib/arch/auto/SGI/FAM/FAM.so
Manifying blib/man1/magicrcs.1
Manifying blib/man1/monitor.1
Manifying blib/man3/SGI::FAM.3pm
JGLICK/SGI-FAM-1.002.tar.gz
/usr/bin/make -j -j -- OK
CPAN: YAML loaded ok (v0.77)
---------------------
Version is defined to be 1.0002.
------------------
Module claims to pass test!
Running test for module 'SGI::FAM'
Running make for J/JG/JGLICK/SGI-FAM-1.002.tar.gz
Has already been unwrapped into directory
/home/CPAN-ishtar-build-cache/build/SGI-FAM-1.002-6RAvDZ
Has already been made
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/fam.t .. ok
All tests successful.
Files=1, Tests=2, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.03 cusr
0.00 csys = 0.05 CPU)
Result: PASS
JGLICK/SGI-FAM-1.002.tar.gz
/usr/bin/make test -- OK
--- yeah, I an rub 2 numbers togeter and get 2 as well!
Obviously the test is bogus, since the included program, 'monitor' says
to type in the name of a file to monitor...
Well first problem if I try to run in in
/the make dir via
'look makefire'...
and try to run the monitor program...
I get:
Ishtar:../build/SGI-FAM-1.002-6RAvDZ> monitor /home/law
bash: ./monitor: /usr/local/bin/perl5: bad interpreter: No such file or
directory
---
maybe if it looked at the output of the perl -V it would have known
where to look for the compiler path
perl -V:
perl -V
Summary of my perl5 (revision 5 version 12 subversion 3) configuration:
Platform:
osname=linux, osvers=2.6.36, archname=x86_64-linux-thread-multi
uname='linux build33 2.6.36 #1 smp 2011-02-21 10:34:10 +0100 x86_64
x86_64 x86_64 gnulinux '
config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr
-Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm
-Duseshrplib=true -Doptimize=-fmessage-length=0 -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -Wall -pipe
-Accflags=-DPERL_USE_SAFE_PUTENV'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV
-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall
-pipe',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV
-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector'
ccversion='', gccversion='4.5.1 20101208 [gcc-4_5-branch revision
167585]', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib64 -fstack-protector'
libpth=/lib64 /usr/lib64 /usr/local/lib64
libs=-lm -ldl -lcrypt -lpthread
perllibs=-lm -ldl -lcrypt -lpthread
libc=/lib64/libc-2.11.3.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.11.3'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib64
-fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_TRACK_MEMPOOL PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Built under linux
Compiled at May 6 2011 13:34:02
%ENV:
PERL5LIB="/home/law/bin/lib:/home/law/lib:/home/CPAN-ishtar-build-cache/build/SGI-FAM-1.002-6RAvDZ/blib/arch:/home/CPAN-ishtar-build-cache/build/SGI-FAM-1.002-6RAvDZ/blib/lib:/home/law/bin/lib:/home/law/lib::./lib:./lib"
PERL5OPT=""
PERL5_CPANPLUS_IS_RUNNING="20582"
PERL5_CPAN_IS_RUNNING="20582"
@INC:
/home/law/bin/lib
/home/law/lib
/home/CPAN-ishtar-build-cache/build/SGI-FAM-1.002-6RAvDZ/blib/arch
/home/CPAN-ishtar-build-cache/build/SGI-FAM-1.002-6RAvDZ/blib/lib
/home/law/bin/lib
/home/law/lib
./lib
./lib
/usr/lib/perl5/site_perl/5.12.3/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.12.3
/usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.12.3
/usr/lib/perl5/5.12.3/x86_64-linux-thread-multi
/usr/lib/perl5/5.12.3
.
----
The suse version was patched with the right path, but still doesn't work:
Ishtar:law> monitor /home/law
SGI::FAM: Connection refused at /usr/bin/monitor line 9
Ishtar:law> sudo monitor /home/law
SGI::FAM: Connection refused at /usr/bin/monitor line 9
I note that fam is running :
Ishtar:law> netstat -tlpn|grep fam
tcp 0 0 0.0.0.0:683 0.0.0.0:* LISTEN
What a waste of time...