Hi I am attempting to get a non root module directory working that can be shared by multiple architectures. All the non-binary stuff is working fine (same code for all architectures), and the binary stuff works as expected for all solaris and windows clients, however I am struggling to identify where the .so files should live for x86_64-linux-thread-multi (RHEL4).

This is where I have stored the various modules that work...
modules/5.8.8/sparc-sun-solaris2.6/auto/P4/P4.(bs,so) modules/5.8.8/sparc-sun-solaris2.8/auto/P4/P4.(bs,so) modules/5.8.8/sparc-sun-solaris2.9/auto/P4/P4.(bs,so) modules/5.8.8/MSWin32-x86-multi-thread/auto/P4/P4.(bs,dll,exp,lib) modules/5.10.0/cygwin-thread-multi-64int/auto/P4/P4.dll
And here are a couple of various places I have tried to put the failing ones...
modules/x86_64-linux-thread-multi/auto/P4/P4.(bs,so) modules/5.8.5/x86_64-linux-thread-multi/auto/P4/P4.(bs,so)
But whenever I run, I get the following error...
[p4admin@serv20 p4perl-2008.1]$ perl -MP4 -I /tools/perforce/scripts/ +beta/modules/ -e 'print P4::Identify();' Can't locate loadable object for module P4 in @INC (@INC contains: /to +ols/perforce/scripts/beta/modules/ /usr/lib64/perl5/5.8.5/x86_64-linu +x-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/ +x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-lin +ux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread- +multi /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi /usr +/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/per +l5/site_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl +/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 +/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/li +b/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib64/perl5/ven +dor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl +/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.3/x +86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.2/x86_64-li +nux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.1/x86_64-linux-thre +ad-multi /usr/lib64/perl5/vendor_perl/5.8.0/x86_64-linux-thread-multi + /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /u +sr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/ +lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib +/perl5/vendor_perl .) at -e line 0 Compilation failed in require. BEGIN failed--compilation aborted.
Here is various system info...
[p4admin@serv20 p4perl-2008.1]$ uname -a Linux serv20 2.6.9-42.0.3.ELsmp #1 SMP Mon Sep 25 17:24:31 EDT 2006 x8 +6_64 x86_64 x86_64 GNU/Linux [p4admin@serv20 p4perl-2008.1]$ perl -V Summary of my perl5 (revision 5 version 8 subversion 5) configuration: Platform: osname=linux, osvers=2.6.9-22.18.bz155725.elsmp, archname=x86_64-l +inux-thread-multi uname='linux hs20-bc1-3.build.redhat.com 2.6.9-22.18.bz155725.elsm +p #1 smp thu nov 17 15:34:08 est 2005 x86_64 x86_64 x86_6 4 gnulinux ' config_args='-des -Doptimize=-O2 -g -pipe -m64 -Dversion=5.8.5 -Dm +yhostname=localhost -Dperladmin=root@localhost -Dcc=gcc - Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Dlibpth=/usr/ +local/lib64 /lib64 /usr/lib64 -Dprivlib=/usr/lib/perl5/5. 8.5 -Dsitelib=/usr/lib/perl5/site_perl/5.8.5 -Dvendorlib=/usr/lib/perl +5/vendor_perl/5.8.5 -Darchlib=/usr/lib64/perl5/5.8.5/x86_ 64-linux-thread-multi -Dsitearch=/usr/lib64/perl5/site_perl/5.8.5/x86_ +64-linux-thread-multi -Dvendorarch=/usr/lib64/perl5/vendo r_perl/5.8.5/x86_64-linux-thread-multi -Darchname=x86_64-linux -Dvendo +rprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_n +dbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseper lio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin +/less -isr -Dinc_version_list=5.8.4 5.8.3 5.8.2 5.8.1 5.8 .0' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemulti +plicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-st +rict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOU RCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2 -g -pipe -m64', cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-alias +ing -pipe -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='3.4.6 20060404 (Red Hat 3.4.6-2)', gccos +andvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags ='' libpth=/usr/local/lib64 /lib64 /usr/lib64 libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread +-lc perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.3.3.so, so=so, useshrplib=true, libperl=libperl.s +o gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E - +Wl,-rpath,/usr/lib64/perl5/5.8.5/x86_64-linux-thread-mult i/CORE' cccdlflags='-fPIC', lddlflags='-shared' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_64_BIT +_INT USE_64_BIT_ALL USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Jul 24 2006 18:28:14 @INC: /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .
Does anybody know where the P4.(bs,so) files should live for this architecture?

Cheers

Daniel

In reply to Multiarch binary module support by daniel.sherwood

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.