SUMMARY: error compiling CPAN module

From: John Wynstra (jlw@lexicon.hunter.cuny.edu)
Date: Mon Nov 27 2000 - 12:47:40 CST


With help from Saul Pliuskonis <pliuskon@yahoo.com> I solved
this one by removing these 2 definitions referring to 64 bit
in this line in the generated Makefile:

CCFLAGS = -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
                                                    ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
It works fine now.

-- john l wynstra
        UNIX Systems Administrator
        ICIT, Hunter College
        e-mail... John.Wynstra@hunter.cuny.edu
        voice... (212) 650-3203
        fax... (212) 772-5799

===> Original message <===
        I apologize if this is not quite the right list for this one,
but I can't seem to find a perl e-list like this one for sun-managers.

        I am getting this error while trying to compile the CPAN module
Proc-ProcessTable-0.28: "Cannot use procfs in the large file compilation
environment". What does this mean? What do I need to do about it?
TIA and I will summarize.

[snip]
 # make
gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
 -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\" -fPIC -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -DPR
OC_FS OS.c ProcessTable.c
In file included from /usr/include/procfs.h:26,
                 from os/Solaris.h:13,
                 from OS.c:2:
/usr/include/sys/procfs.h:44: #error "Cannot use procfs in the large file compilation environment"
*** Error code 1
make: Fatal error: Command failed for target `OS.o'

 # uname -a
SunOS lexicon 5.7 Generic_106541-12 sun4m sparc SUNW,SPARCstation-5

 # gcc --version
2.95.2

 # perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
[snip]
===========================

===> Replies from Saul <===
Date: Tue, 21 Nov 2000 14:51:36 -0800 (PST)
From: Saul Pliuskonis <pliuskon@yahoo.com>
Subject: Proc-ProcessTable-0.28
To: jlw@lexicon.hunter.cuny.edu

[snip]
I am getting the same error. I did not get the error on an Ultra 5
system, but I am getting it on an E-450, both are running Solaris 7.
[snip]
===========================

From: "Saul Pliuskonis" <pliuskon@xlt-services.com>
To: "John Wynstra" <jlw@lexicon.hunter.cuny.edu>
Subject: RE: Proc-ProcessTable-0.28
Date: Wed, 22 Nov 2000 08:33:14 -0700

Given that Proc-ProcessTable-0.28 compiled just fine on my Ultra 5 at home,
I decided to rerun the "perl Makefile.PL" process on an Ultra 5 at work, and
then compare the resulting Makefile with the one from the E-450. Since the
E-450 is setup to run 64 bit and 32 bit, the program that makes the Makefile
added 64 bit flags to compile command line. I just removed all the "extra"
flags from that Makefile, and ran "make" on it on the E-450. It worked fine.
I'm not at work right now, so I can't tell you exactly what I pulled out of
the Makefile, so if you don't have a pure 32 bit machine to try it on, to
get the right flags, let me know and I'll send them to you later.

Saul

Saul Pliuskonis
Sr. Unix Architect
XLT Services, Inc.
303-252-5581
pliuskon@xlt-services.com
===========================
S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@sunmanagers.ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:24 CDT