Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?


by efw (Initiate)
on Dec 11, 2002 at 22:24 UTC ( [id://219198]=perlquestion: print w/replies, xml ) Need Help??

efw has asked for the wisdom of the Perl Monks concerning the following question:

I'm using perl v5.8.0 built for i386-linux-thread-multi on a linux PC running Red Hat Linux version 8.0 kernel 2.4.18-14. I'm running a perl script that creates a makefile. I get the following warnings. WARNING: CC is not a known parameter. WARNING: LD is not a known parameter. Setting CC and LD in the shell and exporting them does not help. The creator of the script says it works on other systems/versions, and that these are warnings from perl. Is anyone familiar with these warnings and how I make the parameters known to perl? The make errors out and I'm guessing it's linked to these warnings. Thanks efw

Replies are listed 'Best First'.
by submersible_toaster (Chaplain) on Dec 12, 2002 at 03:08 UTC

    Are you certain that it is perl throwing those warnings ? What script is it ? Do the WARNINGS go away if you remove -w or use warnings from the script ?

    post some code, else no-one can help you.

by mikeirw (Pilgrim) on Dec 11, 2002 at 23:30 UTC
    Post the relevant parts of the code and tell us how you're invoking the script. Otherwise, all you're going to get is a lot of guessing.
by ibanix (Hermit) on Dec 12, 2002 at 04:18 UTC
    Things that might help:

    #1: Post some code.
    #2: Post some code.
    #3: Try it with perl-5.6.
    #4: Post some code.
    #5: Do you actually have the development tools (eg. gcc, ld, etc) installed? which gcc should return a path if you do.
    #6: Post some code.


    $ echo '$0 & $0 &' > foo; chmod a+x foo; foo;

      OK, I could be off-base here but maybe if I post some code it might help ;-)

      Iím trying to install a package called Verilog-Perl 2.214. The entire package is 300KB and can be downloaded at:

      Perl is used to create a makefile. When I execute the perl script I get the following:

      efw@localhost Verilog-Perl-2.214$ perl Makefile.PL
      WARNING: CC is not a known parameter.
      WARNING: CC is not a known parameter.
      WARNING: LD is not a known parameter.
      Writing Makefile for Verilog::Preproc::lib
      Writing Makefile for Verilog::Preproc
      Writing Makefile for Verilog::Language
      efw@localhost Verilog-Perl-2.214$

      I donít know for certain that perl is issuing these warnings. That is what I was told by the author of the code.

      Here is the listing of Makefile.PL:

      # $Revision: #23 $$Date: 2002/08/08 $$Author: wsnyder $ # DESCRIPTION: Perl ExtUtils: Type 'perl Makefile.PL' to create a Make +file for this package use ExtUtils::MakeMaker; use Carp; $DOLLAR = '$$'; # Quoted properly for make sub MY::postamble { " README: readme.texi -rm \$@ makeinfo \$< --output \$@ --no-headers --no-validate clean:: -rm -rf simv .vpm test_dir dist: maintainer-copy distcheck README ## Maintainer use: tag: p4 label -d \$(DISTNAME)_\$(VERSION_SYM) || true p4 label \$(DISTNAME)_\$(VERSION_SYM) p4 labelsync -l \$(DISTNAME)_\$(VERSION_SYM) ... # cvs tag -F \$(DISTNAME)_\$(VERSION_SYM) . maintainer-dist: dist tag cp \$(DISTVNAME).tar.gz \$(HOME)/src/kits mv \$(DISTVNAME).tar.gz \$(HOME)/backpack maintainer-copy: #vpm maintainer-copy: # perl -pe '${DOLLAR}skip = 1 if /--MAKER--/; print ${DOLLAR}_ if ! + ${DOLLAR}skip; ${DOLLAR}skip = 0 if /--ENDMAKER--/; ${DOLLAR}_=qq{}; +' < ../../vpm > vpm # chmod a+x vpm maintainer-clean: distclean -rm README Makefile "; } local $! = undef; `flex --version`; ($?==0) or die "\n%Error: 'flex' must be installed t +o build\n"; `g++ --version`; ($?==0) or die "\n%Error: 'gcc/g++' must be installed + to build\n"; WriteMakefile( DISTNAME => 'Verilog-Perl', NAME => 'Verilog::Language', AUTHOR => 'Wilson Snyder <>', ABSTRACT => 'Verilog language utilities and parsing', VERSION_FROM => '', PMLIBDIRS => ['lib', 'Verilog', 'Netlist',], EXE_FILES => [qw( vrename vpm )], 'clean' => {FILES => qw (test_dir signals.vrename .vpm si +mv ),}, 'dist' => {COMPRESS => 'gzip -9f', SUFFIX => '.gz', DIST_DEFAULT => 'README all tardist', }, );

      Here is some system information:

      efw@localhost efw$ uname -a
      Linux localhost.localdomain 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux

      efw@localhost efw$ gcc -v
      Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
      Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/u
      sr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i
      386-redhat-linux --with-system-zlib --enable-__cxa_atexit Thread model: posix
      gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

      efw@localhost efw$ ld -v
      GNU ld version 20020802

      efw@localhost efw$ perl -v
      This is perl, v5.8.0 built for i386-linux-thread-multi
      Copyright 1987-2002, Larry Wall

      efw@localhost efw$ make -v
      GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i386-redhat-linux-gnu

      Thanks!! efw

by efw (Initiate) on Dec 13, 2002 at 14:32 UTC
    Obviously the ďAnonymous MonkĒ posting was by mine. My password was on my home PC but I was at work, so could not log in.

    Hopefully it gives enough details. Let me know if any more are needed.

    Thanks!! efw

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://219198]
Approved by valdez
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-06-15 03:25 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.