linux compile/configure gurus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Brujah
    Beer Money Baron
    • Jan 2001
    • 22157

    #1

    linux compile/configure gurus

    how can I get past this ?

    configure:2106: checking if compiler supports -R
    configure:2121: gcc -o conftest -g -O2 conftest.c -R /usr/lib 1>&5
    gcc: unrecognized option `-R'
    /usr/lib: file not recognized: Is a directory
    collect2: ld returned 1 exit status
    configure: failed program was:
    #line 2114 "configure"
    #include "confdefs.h"

    int main() {

    ; return 0; }
  • fsfaz
    Confirmed User
    • Apr 2003
    • 747

    #2
    huh? More info dude.

    Comment

    • Rorschach
      So Fucking Banned
      • Aug 2002
      • 5579

      #3
      Looks like maybe a dud makefile... but more info needed.

      Comment

      • Brujah
        Beer Money Baron
        • Jan 2001
        • 22157

        #4
        php 4.3.4 configure
        the part above is from the config.log

        not really sure what other info you need.

        Comment

        • AgentCash
          Confirmed User
          • Feb 2002
          • 720

          #5
          From http://us2.php.net/oci8

          I installed Oracle 8.1.7 client, mod_php (4.2.2, as DSO) on a RedHat 7.1 (Seawolf) and among others encountered the "cannot find -lclntsh" problem during making. But the already suggested "shared,{$ORACLE_HOME}" solution didnt work for me.
          I finally found a solution:

          Usually, the linker (ld) complains, that it can't find the clntsh .so / .a files, but they were present (check in the lib dir of $ORACLE_HOME if present, if not execute ../bin/relink as user Oracle and check what the error message says).

          As I backtraced the incident, I found in the configure.log file the following lines:

          configure: 2842 gcc -o conftest -g -O2 conftest.c -R /usr/lib 1>&5
          gcc: unrecognized option '-R'
          /usr/lib: file not recognized: Is a directory
          collect2: ld returned 1 exit status

          It turned out, that in the ./configure script it is checked, wether the compiler supports the -R option.
          However, after I commented the lines responsible for this check and told the script, that my compiler wont support "-R" and as well doesnt need to check, after a make clean and ./configure it actually could be compiled.

          You can find the lines I commented by searching for the regexp check.*-R. Comment from there till the next "else" and a "fi" a few lines below. Good Luck!

          Josef Irnberger

          Comment

          • crack
            Confirmed User
            • Feb 2002
            • 100

            #6
            Just ignore it, configure will go on, here's my log
            (php-4.3.4, kernel 2.4.22)

            configure:1963: gcc -c conftest.c -o conftest.o 1>&5
            configure:1968: cc -c conftest.c 1>&5
            configure:1970: cc -c conftest.c -o conftest.o 1>&5
            configure:1971: cc -c conftest.c -o conftest.o 1>&5
            configure:1998: checking how to run the C preprocessor
            configure:2019: gcc -E conftest.c >/dev/null 2>conftest.out
            configure:2079: checking for AIX
            configure:2106: checking if compiler supports -R
            configure:2121: gcc -o conftest -g -O2 conftest.c -R /usr/lib 1>&5
            gcc: unrecognized option `-R'
            /usr/lib: file not recognized: Is a directory
            collect2: ld returned 1 exit status
            configure: failed program was:
            #line 2114 "configure"
            #include "confdefs.h"

            int main() {

            ; return 0; }
            configure:2139: checking if compiler supports -Wl,-rpath,
            configure:2154: gcc -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib 1>&5
            configure:2180: checking for re2c
            configure:2211: checking for ranlib
            configure:2239: checking whether ln -s works
            configure:2264: checking for gawk
            configure:2298: checking for bison
            configure:2332: checking bison version
            configure:2342: checking for flex
            configure:2376: checking for yywrap in -lfl
            configure:2395: gcc -o conftest -g -O2 conftest.c -lfl 1>&5
            configure:2419: checking lex output file root
            configure:2440: checking whether yytext is a pointer
            configure:2459: gcc -o conftest -g -O2 conftest.c -lfl 1>&5
            configure:2483: checking for working const
            configure:2537: gcc -c -g -O2 conftest.c 1>&5
            ...............
            There is a crack in everything. That's how the light gets in.

            Comment

            Working...