GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   linux compile/configure gurus (https://gfy.com/showthread.php?t=213092)

Brujah 12-25-2003 02:14 PM

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 12-25-2003 02:15 PM

huh? More info dude.

Rorschach 12-25-2003 02:33 PM

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

Brujah 12-25-2003 02:42 PM

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

not really sure what other info you need.

AgentCash 12-25-2003 02:56 PM

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

Quote:

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

crack 12-25-2003 05:42 PM

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
...............


All times are GMT -7. The time now is 02:28 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123