[OpenAFS] Problems building AFS perl module 2.4.0

Terry McCoy terry@nd.edu
Thu, 16 Nov 2006 08:08:31 -0500 (EST)


I am having a problem getting the Perl module for AFS 2.4.0 to build correctly.


When I attempt to run a script using the AFS module I get this output:

  Can't load '/opt/perl/lib/site_perl/5.8.8/sun4-solaris/auto/AFS/AFS.so'
  for module AFS: ld.so.1: test_it.pl: fatal: relocation error:
  file /opt/perl/lib/site_perl/5.8.8/sun4-solaris/auto/AFS/AFS.so:
  symbol setpag: referenced symbol not found
  at /opt/perl/lib/5.8.8/sun4-solaris/DynaLoader.pm line 230.
  at ./test_it.pl line 72
  Compilation failed in require at ./test_it.pl line 72.
  BEGIN failed--compilation aborted at ./test_it.pl line 72.


Environment specifics:

  Solaris 8   SunOS corvo 5.8 Generic_117350-35 sun4u sparc SUNW,Ultra-2
  Perl 5.8.8
  OpenAFS 1.4.2
  C compiler  gcc 2.95.3

During the build I did have these warnings:




corvo> make
cp AFS.pm ../blib/lib/AFS.pm
AutoSplitting ../blib/lib/AFS.pm (../blib/lib/auto/AFS)
cp ACL.pm ../../blib/lib/AFS/ACL.pm
cp BOS.pm ../../blib/lib/AFS/BOS.pm
cp CM.pm ../../blib/lib/AFS/CM.pm
cp Cell.pm ../../blib/lib/AFS/Cell.pm
cp FS.pm ../../blib/lib/AFS/FS.pm
cp KAS.pm ../../blib/lib/AFS/KAS.pm
cp KTC_EKEY.pm ../../blib/lib/AFS/KTC_EKEY.pm
cp KTC_PRINCIPAL.pm ../../blib/lib/AFS/KTC_PRINCIPAL.pm
cp KTC_TOKEN.pm ../../blib/lib/AFS/KTC_TOKEN.pm
cp PTS.pm ../../blib/lib/AFS/PTS.pm
cp Utils.pm ../../blib/lib/AFS/Utils.pm
cp VLDB.pm ../../blib/lib/AFS/VLDB.pm
cp VOS.pm ../../blib/lib/AFS/VOS.pm
/bin/perl /opt/perl/lib/5.8.8/ExtUtils/xsubpp  -typemap /opt/perl/lib/5.8.8/ExtUtils/typemap -typemap typemap  AFS.xs > AFS.xsc && mv AFS.xsc AFS.c
gcc -c  -I/usr/afsws/include  -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O    -DVERSION=\"2.4.0\"  -DXS_VERSION=\"2.4.0\" -fPIC "-I/opt/perl/lib/5.8.8/sun4-solaris/CORE"  -DOpenAFS_1_4  -DOpenAFS AFS.c
In file included from /usr/afsws/include/rx/rx.h:52,
                 from /usr/afsws/include/afs/afsint.h:60,
                 from AFS.xs:59:
/usr/afsws/include/rx/rx_lwp.h:27: warning: `MUTEX_INIT' redefined
/opt/perl/lib/5.8.8/sun4-solaris/CORE/thread.h:436: warning: this is the location of the previous definition
AFS.xs: In function `XS_AFS__VOS_new':
AFS.xs:4463: warning: passing arg 2 of `vsu_ClientInit' discards qualifiers from pointer target type
AFS.xs: In function `XS_AFS__VLDB_new':
AFS.xs:6530: warning: passing arg 2 of `vsu_ClientInit' discards qualifiers from pointer target type
AFS.xs: In function `XS_AFS__BOS_addkey':
AFS.xs:8265: warning: passing arg 3 of `BOZO_AddKey' from incompatible pointer type
AFS.xs: In function `XS_AFS__BOS_setrestart':
AFS.xs:8514: warning: passing arg 3 of `BOZO_SetRestartTime' from incompatible pointer type
AFS.xs: In function `XS_AFS__BOS_getrestart':
AFS.xs:8540: warning: passing arg 3 of `BOZO_GetRestartTime' from incompatible pointer type
AFS.xs:8548: warning: passing arg 3 of `BOZO_GetRestartTime' from incompatible pointer type
AFS.xs: In function `XS_AFS__BOS_listkeys':
AFS.xs:9076: warning: passing arg 4 of `BOZO_ListKeys' from incompatible pointer type
AFS.xs: In function `XS_AFS__BOS_salvage':
AFS.xs:9429: warning: passing arg 2 of `vsu_ClientInit' discards qualifiers from pointer target type
Running Mkbootstrap for AFS ()
chmod 644 AFS.bs
rm -f ../blib/arch/auto/AFS/AFS.so
LD_RUN_PATH="/usr/lib" /opt/SUNWspro/bin/cc  -G -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib/v8plus -L/opt/SUNWspro/prod/lib -L/lib -L/usr/local/lib AFS.o  -o ../blib/arch/auto/AFS/AFS.so       \
   -L/usr/afsws/lib -L/usr/afsws/lib/afs -lkauth -lprot -lbos -lrx -lvolser -lvldb -lcmd -lubik -lauth -lrxkad -lrxstat -lrx -lsys -ldes -llwp /usr/afsws/lib/afs/libcom_err.a /usr/afsws/lib/afs/util.a -lusd -laudit -lresolv -lsocket -lnsl -lintl -ldl      \

chmod 755 ../blib/arch/auto/AFS/AFS.so
cp AFS.bs ../blib/arch/auto/AFS/AFS.bs
chmod 644 ../blib/arch/auto/AFS/AFS.bs


+--    --    --    --    --    --    --    --    --    --    --    --    --   +
|                                                                             |
|  Terry McCoy                                  email:  terry@nd.edu          |
|  Sr Systems Engineer                          phone:  (574) 631-4274        |
|                                                                             |
|  Office of Information Technologies                                         |
|  315 Information Technology Center                                          |
|  University of Notre Dame                                                   |
|  Notre Dame, Indiana  46556                                                 |
|                                                                             |
|                                                                             |
|  perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);' |
|                                                                             |
+--    --    --    --    --    --    --    --    --    --    --    --    --   +