Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jdavidb (1361)

jdavidb
  (email not shown publicly)
http://voiceofjohn.blogspot.com/

J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.

Journal of jdavidb (1361)

Friday July 14, 2006
03:49 PM

Please don't use /usr/local/include

[ #30292 ]

I'm desperately trying to tell Configure not to insert -I/usr/local/include into ccflags. There is complete junk in that directory, and I've gone to great lengths to get a gcc compiled that doesn't even look there (unless told to, sigh).

Unfortunately it looks like the only way to do this is to run Configure interactively until I get to that option, and type none. Passing -Dccflags=none doesn't work at all, nor does passing a real value for ccflags, because Configure tacks -I/usr/local/include onto ccflags anyway and goes on its merry way.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • sh Configure -Ulocincpth=
    should do what you want. (You may also wish to add
            -Uloclibpth=
    if /usr/local/lib also has junk you don't want.)

    (Incidentally -- posting to perl5-porters@perl.org with build questions is far more likely to get a timely response. I don't usually read use.perl.org. I only saw this because Jarkko spotted it and sent me a note.)
    • Thank you. Unfortunately now I've discovered that gcc chooses to search /usr/local/include anyway. Lovely, huh?

      --
      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
      • > gcc chooses to search /usr/local/include anyway

        Gah. At this point one is supposed to challenge the gcc developers to a game of bat-leh. Or binary patch gcc. Or possibly its spec file, or where it is pulling that silly idea from.
        • lol. I worked and worked to try to figure out where gcc was getting that from. I could not find a single file used by gcc that included /usr/local/include!

          Finally I took this route: I found out what option to pass to gcc at configuration to tell it to not look in /usr/local/include. I compiled a gcc on another system. Slightly older operating system, but it worked when I tarred it up and moved it over. Ugh, I hate doing that. Then I used that working gcc to compile a new gcc on the target system so

          --
          J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
          • Option to change this is --with-local-prefix=dirname. It doesn't seem to output with ./configure --help on gcc 4.1.1. Not sure if that means it's gone or what. (I may know soon, though. :) )

            --
            J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers