Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
IIRC that check is done be compiling and linking a simple program. Did you look in the config.log to see what test program was used, and try to compile and link it by hand?
Do you have kernel-headres and glibc-devel packages installed?If not,install them and try agin.
What distro do you use?
You can edit your profile and put some info there,like what distro do you use etc.
re: C compiler cannot create executables Reply to Thread
Hi PTrenholme,
cheers for the reply, I did a locate on config.log and could only find ones under my unixODBC folder and thought they were related to a previous install.
xlc? ASFAIK, xlc is for AIX, not Red Hat! Does xlc run on Red Hat? Why did they suggest xlc? Maybe they thought you were using AIX?
Why don't you just use gcc?
Just don't set CC, it is a bad idea IMHO.
You have a problem that is related to mySQL client library, which is not related to xlc at all.
Unset CC, reconfigure your source and post the error in config.log
They must have I'm a bit of a newbie and don't yet have the expertise behind me to discern between good and not so good recommendations.
When I ran both those commands
# CC="xlc -q64"
# export CC
the prompt simply returned without error. I don't know whether it worked or not. I think a responder in one of the Forum's got mixed up and may have sent me the wrong reply.
I ran
# CC="xlc -q32" in order to revert the change followed by the export.
I'll give the
#Unset CC
command a go. Honestly I'm unsure how to check or unset this parameter.
configure: error: Could not use the single thread MySQL client library, please check config.log for errors
[root@moran mysql-connector-odbc-3.51.27r695]#
I can't see any obvious errors in the config.log file (appeneded here it's a behemouth)
Now moran is 32 bit machine but the machine I want ot connect to is 64 bit.
Does 'uname -m = i686'
mean that those CC registered with my system?
Thanks again
Results of gedit
#gedit 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.59. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = moran.anam.com
uname -m = i686
uname -r = 2.6.18-92.1.22.el5
uname -s = Linux
uname -v = #1 SMP Fri Dec 5 09:29:46 EST 2008
configure:1584: checking build system type
configure:1602: result: i686-redhat-linux-gnu
configure:1610: checking host system type
configure:1624: result: i686-redhat-linux-gnu
configure:1632: checking target system type
configure:1646: result: i686-redhat-linux-gnu
configure:1676: checking for a BSD-compatible install
configure:1731: result: /usr/bin/install -c
configure:1742: checking whether build environment is sane
configure:1785: result: yes
configure:1850: checking for gawk
configure:1866: found /usr/bin/gawk
configure:1876: result: gawk
configure:1886: checking whether make sets $(MAKE)
configure:1906: result: yes
configure:2174: checking for gcc
configure:2190: found /usr/bin/gcc
configure:2200: result: gcc
configure:2444: checking for C compiler version
configure:2447: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)
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:2450: $? = 0
configure:2452: gcc -v </dev/null >&5
Using built-in specs.
Target: i386-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=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
configure:2455: $? = 0
configure:2457: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2460: $? = 1
configure:2483: checking for C compiler default output file name
configure:2486: gcc conftest.c >&5
configure:2489: $? = 0
configure:2535: result: a.out
configure:2540: checking whether the C compiler works
configure:2546: ./a.out
configure:2549: $? = 0
configure:2566: result: yes
configure:2573: checking whether we are cross compiling
configure:2575: result: no
configure:2578: checking for suffix of executables
configure:2580: gcc -o conftest conftest.c >&5
configure:2583: $? = 0
configure:2608: result:
configure:2614: checking for suffix of object files
configure:2635: gcc -c conftest.c >&5
configure:2638: $? = 0
configure:2660: result: o
configure:2664: checking whether we are using the GNU C compiler
configure:2688: gcc -c conftest.c >&5
configure:2694: $? = 0
configure:2698: test -z
|| test ! -s conftest.err
configure:2701: $? = 0
configure:2704: test -s conftest.o
configure:2707: $? = 0
configure:2720: result: yes
configure:2726: checking whether gcc accepts -g
configure:2747: gcc -c -g conftest.c >&5
configure:2753: $? = 0
configure:2757: test -z
|| test ! -s conftest.err
configure:2760: $? = 0
configure:2763: test -s conftest.o
configure:2766: $? = 0
configure:2777: result: yes
configure:2794: checking for gcc option to accept ANSI C
configure:2864: gcc -c -g -O2 conftest.c >&5
configure:2870: $? = 0
configure:2874: test -z
|| test ! -s conftest.err
configure:2877: $? = 0
configure:2880: test -s conftest.o
configure:2883: $? = 0
configure:2901: result: none needed
configure:2919: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:2925: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3069: checking for style of include used by make
configure:3097: result: GNU
configure:3125: checking dependency style of gcc
configure:3215: result: gcc3
configure:3237: checking how to run the C preprocessor
configure:3272: gcc -E conftest.c
configure:3278: $? = 0
configure:3310: gcc -E conftest.c
conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
configure:3316: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql-connector-odbc"
| #define VERSION "3.51.27"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3355: result: gcc -E
configure:3379: gcc -E conftest.c
configure:3385: $? = 0
configure:3417: gcc -E conftest.c
conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
configure:3423: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql-connector-odbc"
| #define VERSION "3.51.27"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3555: checking for a sed that does not truncate output
configure:3609: result: /bin/sed
configure:3612: checking for egrep
configure:3622: result: grep -E
configure:3638: checking for ld used by gcc
configure:3705: result: /usr/bin/ld
configure:3714: checking if the linker (/usr/bin/ld) is GNU ld
configure:3729: result: yes
configure:3734: checking for /usr/bin/ld option to reload object files
configure:3741: result: -r
configure:3759: checking for BSD-compatible nm
configure:3808: result: /usr/bin/nm -B
configure:3812: checking whether ln -s works
configure:3816: result: yes
configure:3823: checking how to recognise dependent libraries
configure:3999: result: pass_all
configure:4232: checking for ANSI C header files
configure:4257: gcc -c -g -O2 conftest.c >&5
configure:4263: $? = 0
configure:4267: test -z
|| test ! -s conftest.err
configure:4270: $? = 0
configure:4273: test -s conftest.o
configure:4276: $? = 0
configure:4365: gcc -o conftest -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:29: warning: incompatible implicit declaration of built-in function 'exit'
configure:4368: $? = 0
configure:4370: ./conftest
configure:4373: $? = 0
configure:4388: result: yes
configure:4412: checking for sys/types.h
configure:4428: gcc -c -g -O2 conftest.c >&5
configure:4434: $? = 0
configure:4438: test -z
|| test ! -s conftest.err
configure:4441: $? = 0
configure:4444: test -s conftest.o
configure:4447: $? = 0
configure:4458: result: yes
configure:4412: checking for sys/stat.h
configure:4428: gcc -c -g -O2 conftest.c >&5
configure:4434: $? = 0
configure:4438: test -z
|| test ! -s conftest.err
configure:4441: $? = 0
configure:4444: test -s conftest.o
configure:4447: $? = 0
configure:4458: result: yes
configure:4412: checking for stdlib.h
configure:4428: gcc -c -g -O2 conftest.c >&5
configure:4434: $? = 0
configure:4438: test -z
|| test ! -s conftest.err
configure:4441: $? = 0
configure:4444: test -s conftest.o
configure:4447: $? = 0
configure:4458: result: yes
configure:4412: checking for string.h
configure:4428: gcc -c -g -O2 conftest.c >&5
configure:4434: $? = 0
configure:4438: test -z
|| test ! -s conftest.err
configure:4441: $? = 0
configure:4444: test -s conftest.o
configure:4447: $? = 0
configure:4458: result: yes
configure:4412: checking for memory.h
configure:4428: gcc -c -g -O2 conftest.c >&5
configure:4434: $? = 0
configure:4438: test -z
|| test ! -s conftest.err
configure:4441: $? = 0
configure:4444: test -s conftest.o
configure:4447: $? = 0
configure:4458: result: yes
configure:4412: checking for strings.h
configure:4428: gcc -c -g -O2 conftest.c >&5
configure:4434: $? = 0
configure:4438: test -z
|| test ! -s conftest.err
configure:4441: $? = 0
configure:4444: test -s conftest.o
configure:4447: $? = 0
configure:4458: result: yes
configure:4412: checking for inttypes.h
configure:4428: gcc -c -g -O2 conftest.c >&5
configure:4434: $? = 0
configure:4438: test -z
|| test ! -s conftest.err
configure:4441: $? = 0
configure:4444: test -s conftest.o
configure:4447: $? = 0
configure:4458: result: yes
configure:4412: checking for stdint.h
configure:4428: gcc -c -g -O2 conftest.c >&5
configure:4434: $? = 0
configure:4438: test -z
|| test ! -s conftest.err
configure:4441: $? = 0
configure:4444: test -s conftest.o
configure:4447: $? = 0
configure:4458: result: yes
configure:4412: checking for unistd.h
configure:4428: gcc -c -g -O2 conftest.c >&5
configure:4434: $? = 0
configure:4438: test -z
|| test ! -s conftest.err
configure:4441: $? = 0
configure:4444: test -s conftest.o
configure:4447: $? = 0
configure:4458: result: yes
configure:4484: checking dlfcn.h usability
configure:4496: gcc -c -g -O2 conftest.c >&5
configure:4502: $? = 0
configure:4506: test -z
|| test ! -s conftest.err
configure:4509: $? = 0
configure:4512: test -s conftest.o
configure:4515: $? = 0
configure:4525: result: yes
configure:4529: checking dlfcn.h presence
configure:4539: gcc -E conftest.c
configure:4545: $? = 0
configure:4565: result: yes
configure:4600: checking for dlfcn.h
configure:4607: result: yes
configure:4672: checking for g++
configure:4688: found /usr/bin/g++
configure:4698: result: g++
configure:4714: checking for C++ compiler version
configure:4717: g++ --version </dev/null >&5
g++ (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)
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:4720: $? = 0
configure:4722: g++ -v </dev/null >&5
Using built-in specs.
Target: i386-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=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
configure:4725: $? = 0
configure:4727: g++ -V </dev/null >&5
g++: '-V' option must have argument
configure:4730: $? = 1
configure:4733: checking whether we are using the GNU C++ compiler
configure:4757: g++ -c conftest.cc >&5
configure:4763: $? = 0
configure:4767: test -z
|| test ! -s conftest.err
configure:4770: $? = 0
configure:4773: test -s conftest.o
configure:4776: $? = 0
configure:4789: result: yes
configure:4795: checking whether g++ accepts -g
configure:4816: g++ -c -g conftest.cc >&5
configure:4822: $? = 0
configure:4826: test -z
|| test ! -s conftest.err
configure:4829: $? = 0
configure:4832: test -s conftest.o
configure:4835: $? = 0
configure:4846: result: yes
configure:4888: g++ -c -g -O2 conftest.cc >&5
configure:4894: $? = 0
configure:4898: test -z
|| test ! -s conftest.err
configure:4901: $? = 0
configure:4904: test -s conftest.o
configure:4907: $? = 0
configure:4933: g++ -c -g -O2 conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:27: error: 'exit' was not declared in this scope
configure:4939: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql-connector-odbc"
| #define VERSION "3.51.27"
| #define _UNIX_ 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:4888: g++ -c -g -O2 conftest.cc >&5
configure:4894: $? = 0
configure:4898: test -z
|| test ! -s conftest.err
configure:4901: $? = 0
configure:4904: test -s conftest.o
configure:4907: $? = 0
configure:4933: g++ -c -g -O2 conftest.cc >&5
configure:4939: $? = 0
configure:4943: test -z
|| test ! -s conftest.err
configure:4946: $? = 0
configure:4949: test -s conftest.o
configure:4952: $? = 0
configure:4977: checking dependency style of g++
configure:5067: result: gcc3
configure:5094: checking how to run the C++ preprocessor
configure:5125: g++ -E conftest.cc
configure:5131: $? = 0
configure:5163: g++ -E conftest.cc
conftest.cc:26:28: error: ac_nonexistent.h: No such file or directory
configure:5169: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql-connector-odbc"
| #define VERSION "3.51.27"
| #define _UNIX_ 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:5208: result: g++ -E
configure:5232: g++ -E conftest.cc
configure:5238: $? = 0
configure:5270: g++ -E conftest.cc
conftest.cc:26:28: error: ac_nonexistent.h: No such file or directory
configure:5276: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql-connector-odbc"
| #define VERSION "3.51.27"
| #define _UNIX_ 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:5373: checking for g77
configure:5402: result: no
configure:5373: checking for f77
configure:5402: result: no
configure:5373: checking for xlf
configure:5402: result: no
configure:5373: checking for frt
configure:5402: result: no
configure:5373: checking for pgf77
configure:5402: result: no
configure:5373: checking for fort77
configure:5402: result: no
configure:5373: checking for fl32
configure:5402: result: no
configure:5373: checking for af77
configure:5402: result: no
configure:5373: checking for f90
configure:5402: result: no
configure:5373: checking for xlf90
configure:5402: result: no
configure:5373: checking for pgf90
configure:5402: result: no
configure:5373: checking for epcf90
configure:5402: result: no
configure:5373: checking for f95
configure:5389: found /usr/bin/f95
configure:5399: result: f95
configure:5414: checking for Fortran 77 compiler version
configure:5417: f95 --version </dev/null >&5
GNU Fortran (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
configure:5420: $? = 0
configure:5422: f95 -v </dev/null >&5
Using built-in specs.
Target: i386-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=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
configure:5425: $? = 0
configure:5427: f95 -V </dev/null >&5
f95: '-V' option must have argument
configure:5430: $? = 1
configure:5438: checking whether we are using the GNU Fortran 77 compiler
configure:5452: f95 -c conftest.F >&5
configure:5458: $? = 0
configure:5462: test -z
|| test ! -s conftest.err
configure:5465: $? = 0
configure:5468: test -s conftest.o
configure:5471: $? = 0
configure:5484: result: yes
configure:5490: checking whether f95 accepts -g
configure:5502: f95 -c -g conftest.f >&5
configure:5508: $? = 0
configure:5512: test -z
|| test ! -s conftest.err
configure:5515: $? = 0
configure:5518: test -s conftest.o
configure:5521: $? = 0
configure:5533: result: yes
configure:5563: checking the maximum length of command line arguments
configure:5672: result: 32768
configure:5683: checking command to parse /usr/bin/nm -B output from gcc object
configure:5788: gcc -c -g -O2 conftest.c >&5
configure:5791: $? = 0
configure:5795: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm
configure:5798: $? = 0
configure:5850: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
configure:5853: $? = 0
configure:5891: result: ok
configure:5895: checking for objdir
configure:5910: result: .libs
configure:6000: checking for ar
configure:6016: found /usr/bin/ar
configure:6027: result: ar
configure:6080: checking for ranlib
configure:6096: found /usr/bin/ranlib
configure:6107: result: ranlib
configure:6160: checking for strip
configure:6176: found /usr/bin/strip
configure:6187: result: strip
configure:6459: checking if gcc supports -fno-rtti -fno-exceptions
configure:6477: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
configure:6481: $? = 0
configure:6494: result: no
configure:6509: checking for gcc option to produce PIC
configure:6719: result: -fPIC
configure:6727: checking if gcc PIC flag -fPIC works
configure:6745: gcc -c -g -O2 -fPIC -DPIC conftest.c >&5
configure:6749: $? = 0
configure:6762: result: yes
configure:6790: checking if gcc static flag -static works
configure:6818: result: yes
configure:6828: checking if gcc supports -c -o file.o
configure:6849: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
configure:6853: $? = 0
configure:6875: result: yes
configure:6901: checking whether the gcc linker (/usr/bin/ld) supports shared libraries
configure:7859: result: yes
configure:7880: checking whether -lc should be explicitly linked in
configure:7885: gcc -c -g -O2 conftest.c >&5
configure:7888: $? = 0
configure:7903: gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1
configure:7906: $? = 0
configure:7918: result: no
configure:7926: checking dynamic linker characteristics
configure:8535: result: GNU/Linux ld.so
configure:8544: checking how to hardcode library paths into programs
configure:8569: result: immediate
configure:8583: checking whether stripping libraries is possible
configure:8588: result: yes
configure:9422: checking if libtool supports shared libraries
configure:9424: result: yes
configure:9427: checking whether to build shared libraries
configure:9448: result: yes
configure:9451: checking whether to build static libraries
configure:9455: result: no
configure:9547: creating libtool
configure:10135: checking for ld used by g++
configure:10202: result: /usr/bin/ld
configure:10211: checking if the linker (/usr/bin/ld) is GNU ld
configure:10226: result: yes
configure:10277: checking whether the g++ linker (/usr/bin/ld) supports shared libraries
configure:11215: result: yes
configure:11233: g++ -c -g -O2 conftest.cpp >&5
configure:11236: $? = 0
configure:11355: checking for g++ option to produce PIC
configure:11629: result: -fPIC
configure:11637: checking if g++ PIC flag -fPIC works
configure:11655: g++ -c -g -O2 -fPIC -DPIC conftest.cpp >&5
configure:11659: $? = 0
configure:11672: result: yes
configure:11700: checking if g++ static flag -static works
configure:11728: result: yes
configure:11738: checking if g++ supports -c -o file.o
configure:11759: g++ -c -g -O2 -o out/conftest2.o conftest.cpp >&5
configure:11763: $? = 0
configure:11785: result: yes
configure:11811: checking whether the g++ linker (/usr/bin/ld) supports shared libraries
configure:11836: result: yes
configure:11903: checking dynamic linker characteristics
configure:12512: result: GNU/Linux ld.so
configure:12521: checking how to hardcode library paths into programs
configure:12546: result: immediate
configure:13072: checking if libtool supports shared libraries
configure:13074: result: yes
configure:13077: checking whether to build shared libraries
configure:13097: result: yes
configure:13100: checking whether to build static libraries
configure:13104: result: no
configure:13114: checking for f95 option to produce PIC
configure:13324: result: -fPIC
configure:13332: checking if f95 PIC flag -fPIC works
configure:13350: f95 -c -g -O2 -fPIC conftest.f >&5
configure:13354: $? = 0
configure:13367: result: yes
configure:13395: checking if f95 static flag -static works
configure:13423: result: yes
configure:13433: checking if f95 supports -c -o file.o
configure:13454: f95 -c -g -O2 -o out/conftest2.o conftest.f >&5
configure:13458: $? = 0
configure:13480: result: yes
configure:13506: checking whether the f95 linker (/usr/bin/ld) supports shared libraries
configure:14444: result: yes
configure:14511: checking dynamic linker characteristics
configure:15120: result: GNU/Linux ld.so
configure:15129: checking how to hardcode library paths into programs
configure:15154: result: immediate
configure:18739: checking for compress in -lz
configure:18769: gcc -o conftest -g -O2 conftest.c -lz >&5
configure:18775: $? = 0
configure:18779: test -z
Here is your error:
/usr/bin/ld: cannot find -lmysqlclient
It means it doesn't find the mysqlclient.so file.
You must tell configure where you installed mysql
And came up with
[eberwick@moran mysql-connector-odbc-3.51.27r695]$ locate mysqlclient.so
/home/eberwick/BO_3_1/bobje/enterprise120/linux_x86/libmysqlclient.so
/home/eberwick/BO_3_1/bobje/enterprise120/linux_x86/libmysqlclient.so.15
/home/eberwick/BO_3_1/bobje/enterprise120/linux_x86/libmysqlclient.so.15.0
/home/eberwick/BO_3_1/bobje/enterprise120/linux_x86/libmysqlclient.so.15.0.0
/home/eberwick/BO_3_1/bobje/mysql/lib/libmysqlclient.so
/home/eberwick/BO_3_1/bobje/mysql/lib/libmysqlclient.so.15
/home/eberwick/BO_3_1/bobje/mysql/lib/libmysqlclient.so.15.0
/home/eberwick/BO_3_1/bobje/mysql/lib/libmysqlclient.so.15.0.0
firstly is libmysqlclient.so the same as mysqlclient.so?
Finally, appended below is the results of ./configure --help
I'll be honest Agrouf, I'm pretty clueless at this building from source stuff and would really appreciate if you could point me on how to phrase the ./configure commend so as to compile this correctly.
Cheers for your input, Ed
`configure' configures this package to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--infodir=DIR info documentation [PREFIX/info]
--mandir=DIR man documentation [PREFIX/man]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
X features:
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
--target=TARGET configure for building compilers for TARGET [HOST]
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--enable-shared[=PKGS]
build shared libraries [default=yes]
--enable-static[=PKGS]
build static libraries [default=no]
--enable-fast-install[=PKGS]
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--enable-threads Build separate thread safe driver [default=yes]
--enable-bundles make OSX bundles [default=no]
--enable-myodbc3i Build myodbc installer command-line interface
[default=yes]
--enable-myodbc3m Build myodbc command-line shell [default=yes]
--enable-odbcinstlink Enable linking of driver against odbcinst library
[default=yes]
--enable-gui Build GUI bits (needs qt) [default=yes]
--enable-test Enable building of test library [default=yes]
--enable-dmlink Enable linking of test library againt supplied
driver manager [default=no]
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-pic try to use only PIC/non-PIC objects [default=use
both]
--with-tags[=TAGS]
include additional configurations [automatic]
--with-ltdl-path=DIR Where libtool "libltdl" and "ltdl.h" are installed
--with-mysql-path=DIR Path where MySQL is installed
--with-iODBC=DIR Use iODBC located in DIR
--with-iodbc-includes=DIR Find iODBC headers in DIR
--with-iodbc-libs=DIR Find iODBC libraries in DIR
--with-odbc-ini=PATH Location of system ODBC.INI IODBCDIR/etc/odbc.ini
--with-unixODBC=DIR Use unixODBC located in DIR
--with-unixODBC-includes=DIR Find unixODBC headers in DIR
--with-unixODBC-libs=DIR Find unixODBC libraries in DIR
--with-odbc-ini=PATH Location of system ODBC.INI UnixODBCDIR/etc/odbc.ini
--with-debug Include debug support in the binaries [default=no]
--with-debug Build the debug version default=no
--with-ldflags=option Extra arguments for linking
--with-extra-xlibs= Extra arguments for linking X apps/libs
--with-x use the X Window System
--with-qt-dir=DIR where the Qt package is installed
--with-qt-includes=DIR where the Qt includes are installed
--with-qt-libraries=DIR where the Qt libraries are installed
--with-qt-programs=DIR where the Qt programs are installed
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir>
CPP C preprocessor
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor
F77 Fortran 77 compiler command
FFLAGS Fortran 77 compiler flags
QTMIN minimum version of Qt to search for e.g. export QTMIN=020400
QTMAX maximum version of Qt to search for e.g. export QTMAX=030305
MOC QT meta object compiler command
UIC Qt UI compiler command
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
As I didn't put in options for
--prefix
nor
--with-iodbc
this might be my problem now when doing the make.
I guess my
--with-iodbc=
should point to where my odbc.ini file resides, no? (=/home/eberwick/BO_3_1/bobje/)
This doesn't make sense I don't have iodbc installed (#locate iodbc comes back with nada). Is it something I would need for this install do you think?
From mySQL website
You might want to specify an installation prefix other than /usr/local. For example, to install the Connector/ODBC drivers in /usr/local/odbc/lib, use the --prefix=/usr/local/odbc option.
I presume I should then use
--prefix=/home/eberwick/BO_3_1/bobje/enterprise120/linux_x86/odbc
[root@moran mysql-connector-odbc-3.51.27r695]# make
Making all in util
make[1]: Entering directory `/tmp/mysql-connector-odbc-3.51.27r695/util'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../driver -I/usr/include -O3 -DDBUG_OFF -I/home/eberwick/BO_3_1/bobje/mysql/include -mcpu=pentiumpro -g -O2 -MT MYODBCUtilAllocDataSource.lo -MD -MP -MF ".deps/MYODBCUtilAllocDataSource.Tpo" -c -o MYODBCUtilAllocDataSource.lo MYODBCUtilAllocDataSource.c; \
then mv -f ".deps/MYODBCUtilAllocDataSource.Tpo" ".deps/MYODBCUtilAllocDataSource.Plo"; else rm -f ".deps/MYODBCUtilAllocDataSource.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../driver -I/usr/include -O3 -DDBUG_OFF -I/home/eberwick/BO_3_1/bobje/mysql/include -mcpu=pentiumpro -g -O2 -MT MYODBCUtilAllocDataSource.lo -MD -MP -MF .deps/MYODBCUtilAllocDataSource.Tpo -c MYODBCUtilAllocDataSource.c -fPIC -DPIC -o .libs/MYODBCUtilAllocDataSource.o
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from MYODBCUtil.h:38,
from MYODBCUtilAllocDataSource.c:21:
../MYODBC_ODBC.h:8:19: error: ltdl.h: No such file or directory
make[1]: *** [MYODBCUtilAllocDataSource.lo] Error 1
make[1]: Leaving directory `/tmp/mysql-connector-odbc-3.51.27r695/util'
make: *** [all-recursive] Error 1
[root@moran mysql-connector-odbc-3.51.27r695]#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.