Menu

configure error

2010-09-23
2012-09-26
  • Mike Little

    Mike Little - 2010-09-23

    Hello,

    I am trying to install ocilib 3.7 on Centos 5.4 x64 and I am getting the
    following error.

    configure:3392: checking whether the C compiler works
    configure:3414: gcc -lmysqletl conftest.c >&5
    /usr/bin/ld: cannot find -lmysqletl
    collect2: ld returned 1 exit status
    configure:3418: $? = 1
    configure:3456: result: no
    configure: failed program was:
    | / confdefs.h /

    Thanks!

     
  • Nobody/Anonymous

    Hi

    Post your config.log

    Vincent

     
  • Mike Little

    Mike Little - 2010-09-24

    Here is my config.log

    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    It was created by configure, which was
    generated by GNU Autoconf 2.65. Invocation command line was

    $ ./configure --with-oracle-home=/usr/lib/oracle/11.2/client64 --with-oracle-
    headers-path=/usr/lib/oracle/11.2/client64/rdbms/public

    --------- ##

    Platform. ##

    --------- ##

    hostname = t5mapcaradius.cosacinco.corp
    uname -m = x86_64
    uname -r = 2.6.18-164.11.1.el5
    uname -s = Linux
    uname -v = #1 SMP Wed Jan 20 07:32:21 EST 2010

    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown

    /bin/arch = x86_64
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown

    PATH: /usr/kerberos/sbin
    PATH: /usr/kerberos/bin
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /usr/local/mysql/bin
    PATH: /root/bin

    ----------- ##

    Core tests. ##

    ----------- ##

    configure:2583: checking for a BSD-compatible install
    configure:2651: result: /usr/bin/install -c
    configure:2662: checking whether build environment is sane
    configure:2712: result: yes
    configure:2853: checking for a thread-safe mkdir -p
    configure:2892: result: /bin/mkdir -p
    configure:2905: checking for gawk
    configure:2921: found /bin/gawk
    configure:2932: result: gawk
    configure:2943: checking whether make sets $(MAKE)
    configure:2965: result: yes
    configure:3096: checking for gcc
    configure:3112: found /usr/bin/gcc
    configure:3123: result: gcc
    configure:3352: checking for C compiler version
    configure:3361: gcc --version >&5
    gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    configure:3372: $? = 0
    configure:3361: gcc -v >&5
    Using built-in specs.
    Target: x86_64-redhat-linux
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
    --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-
    checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-
    exceptions --enable-libgcj-multifile --enable-
    languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-
    dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
    --with-cpu=generic --host=x86_64-redhat-linux
    Thread model: posix
    gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
    configure:3372: $? = 0
    configure:3361: gcc -V >&5
    gcc: '-V' option must have argument
    configure:3372: $? = 1
    configure:3361: gcc -qversion >&5
    gcc: unrecognized option '-qversion'
    gcc: no input files
    configure:3372: $? = 1
    configure:3392: checking whether the C compiler works
    configure:3414: gcc -lmysqletl conftest.c >&5
    /usr/bin/ld: cannot find -lmysqletl
    collect2: ld returned 1 exit status
    configure:3418: $? = 1
    configure:3456: result: no
    configure: failed program was:
    | / confdefs.h /
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | #define PACKAGE_URL ""
    | #define PACKAGE "ocilib"
    | #define VERSION "3.7.0"
    | / end confdefs.h. /
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:3461: error: in /download/ocilib-3.7.0': configure:3465: error: C compiler cannot create executables Seeconfig.log' for more details.

    ---------------- ##

    Cache variables. ##

    ---------------- ##

    ac_cv_env_CCC_set=
    ac_cv_env_CCC_value=
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_CXXCPP_set=
    ac_cv_env_CXXCPP_value=
    ac_cv_env_CXXFLAGS_set=
    ac_cv_env_CXXFLAGS_value=
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_value=
    ac_cv_env_F77_set=
    ac_cv_env_F77_value=
    ac_cv_env_FFLAGS_set=
    ac_cv_env_FFLAGS_value=
    ac_cv_env_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value=-lmysqletl
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_path_mkdir=/bin/mkdir
    ac_cv_prog_AWK=gawk
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_make_make_set=yes

    ----------------- ##

    Output variables. ##

    ----------------- ##

    ACLOCAL='${SHELL} /download/ocilib-3.7.0/config/missing --run aclocal-1.11'
    AMDEPBACKSLASH=''
    AMDEP_FALSE=''
    AMDEP_TRUE=''
    AMTAR='${SHELL} /download/ocilib-3.7.0/config/missing --run tar'
    AR=''
    AUTOCONF='${SHELL} /download/ocilib-3.7.0/config/missing --run autoconf'
    AUTOHEADER='${SHELL} /download/ocilib-3.7.0/config/missing --run autoheader'
    AUTOMAKE='${SHELL} /download/ocilib-3.7.0/config/missing --run automake-1.11'
    AWK='gawk'
    CC='gcc'
    CCDEPMODE=''
    CFLAGS=''
    CPP=''
    CPPFLAGS=''
    CXX=''
    CXXCPP=''
    CXXDEPMODE=''
    CXXFLAGS=''
    CYGPATH_W='echo'
    DEFS=''
    DEPDIR=''
    ECHO='echo'
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    EXEEXT=''
    F77=''
    FFLAGS=''
    GREP=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    LDFLAGS='-lmysqletl'
    LIBOBJS=''
    LIBS=''
    LIBTOOL=''
    LN_S=''
    LTLIBOBJS=''
    LT_AGE=''
    LT_CURRENT=''
    LT_RELEASE=''
    LT_REVISION=''
    MAKEINFO='${SHELL} /download/ocilib-3.7.0/config/missing --run makeinfo'
    MKDIR_P='/bin/mkdir -p'
    OBJEXT=''
    OCILIB_CHARSET=''
    OCILIB_DEMO_SOURCES=''
    OCILIB_DOCS=''
    OCILIB_IMPORT=''
    OCILIB_LD_FLAG=''
    OCILIB_PREFIX=''
    ORACLE_HOME='/usr/lib/oracle/11.2/client64/bin'
    ORACLE_INCLUDES=''
    ORACLE_LIBADD=''
    ORACLE_LIBNAME=''
    PACKAGE='ocilib'
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME=''
    PACKAGE_STRING=''
    PACKAGE_TARNAME=''
    PACKAGE_URL=''
    PACKAGE_VERSION=''
    PATH_SEPARATOR=':'
    RANLIB=''
    SED=''
    SET_MAKE=''
    SHELL='/bin/sh'
    STRIP=''
    VERSION='3.7.0'
    ac_ct_CC='gcc'
    ac_ct_CXX=''
    ac_ct_F77=''
    am__EXEEXT_FALSE=''
    am__EXEEXT_TRUE=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__fastdepCXX_FALSE=''
    am__fastdepCXX_TRUE=''
    am__include=''
    am__isrc=''
    am__leading_dot='.'
    am__quote=''
    am__tar='${AMTAR} chof - "$$tardir"'
    am__untar='${AMTAR} xf -'
    bindir='${exec_prefix}/bin'
    build=''
    build_alias=''
    build_cpu=''
    build_os=''
    build_vendor=''
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host=''
    host_alias=''
    host_cpu=''
    host_os=''
    host_vendor=''
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='${SHELL} /download/ocilib-3.7.0/config/install-sh'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mkdir_p='/bin/mkdir -p'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='NONE'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''

    ----------- ##

    confdefs.h. ##

    ----------- ##

    / confdefs.h /

    define PACKAGE_NAME ""

    define PACKAGE_TARNAME ""

    define PACKAGE_VERSION ""

    define PACKAGE_STRING ""

    define PACKAGE_BUGREPORT ""

    define PACKAGE_URL ""

    define PACKAGE "ocilib"

    define VERSION "3.7.0"

    configure: exit 77

     
  • Vincent Rogier

    Vincent Rogier - 2010-09-25

    hi,

    the problem is not related to OCILIB but related to your configuration.or gcc
    installtion or user rights
    do you have glibc-dev installed ? Do you have permssion on gcc ?

    Vincent

     
  • Nobody/Anonymous

    Thanks, the issue was not having glibc-dev installed.

     
  • Vincent Rogier

    Vincent Rogier - 2010-09-25

    Good news :)

    Have fun with OCILIB !

    Vincent