LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-19-2009, 10:13 AM   #1
nedzer
Member
 
Registered: Dec 2008
Posts: 44

Rep: Reputation: 15
C compiler cannot create executables


Hi,

I've been trying to build MySQL Connector from source without much success

This is so I can isql my data source without the dreaded "Segmentation Fault" error popping up.

After running ./configure this morning

My first error I had this morning
Error => configure: error: Could not use the single thread MySQL client library, please check config.log for errors

Was chatting to a chap from unixODBC support and he suggested
# CC="xlc -q64"
# export CC

This turned out to be red herring, so I reverted back to 32 bit with
# CC="xlc -q32"
# export CC

After whihc I ran ./configure again and now have this error


checking for gcc... xlc -q64
checking for C compiler default output file name... configure: error: C compiler cannot create executables

anyone come across this chestnut before?

Cheers, Ed
 
Old 01-19-2009, 10:36 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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?
 
Old 01-19-2009, 10:39 AM   #3
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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.
 
Old 01-20-2009, 03:37 AM   #4
nedzer
Member
 
Registered: Dec 2008
Posts: 44

Original Poster
Rep: Reputation: 15
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.

I'll have a look at them now just in case

[root@moran mysql-connector-odbc-3.51.27r695]# locate config.log
/home/eberwick/BO_3_1/unixodbc/unixODBC-2.2.14/config.log
/home/eberwick/BO_3_1/unixodbc/unixODBC-2.2.14/libltdl/config.log

Yeah they were all created during the Business Objects install. so not much to go on there.

Any other way I can find out the test program?


Hi alan_ri,

distro - Red Hat linux Ent 5.0

rpm check
kernel-headers-2.6.18-92.1.22.el5
glibc-devel-2.5-24.el5_2.2

By editing my profile do you mean updating my bash_rc file?

As you can tell I'm a complete neophyte.

Cheers, Ed
 
Old 01-20-2009, 04:40 AM   #5
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
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

Last edited by Agrouf; 01-20-2009 at 04:50 AM.
 
Old 01-21-2009, 03:21 AM   #6
nedzer
Member
 
Registered: Dec 2008
Posts: 44

Original Poster
Rep: Reputation: 15
RE : C compiler cannot create executables

Hi Agrouf,

thanks for the post.

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.

I'll then post the config.log

Cheers for replying to my post
 
Old 01-21-2009, 03:35 AM   #7
nedzer
Member
 
Registered: Dec 2008
Posts: 44

Original Poster
Rep: Reputation: 15
RE : C compiler cannot create executables

a bit more info

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

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

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

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /home/eberwick/Desktop/jdk/bin
PATH: /home/eberwick/bin
PATH: /home/eberwick/Desktop/jdk/bin


## ----------- ##
## Core tests. ##
## ----------- ##

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
 
Old 01-21-2009, 03:36 AM   #8
nedzer
Member
 
Registered: Dec 2008
Posts: 44

Original Poster
Rep: Reputation: 15
the rest of config.log


configure:18779: test -z
|| test ! -s conftest.err
configure:18782: $? = 0
configure:18785: test -s conftest
configure:18788: $? = 0
configure:18801: result: yes
configure:19004: checking for uname
configure:19022: found /bin/uname
configure:19035: result: /bin/uname
configure:19045: checking operating system
configure:19059: result: Linux
configure:19234: checking for localtime_r
configure:19291: gcc -o conftest -g -O2 conftest.c -lz >&5
configure:19297: $? = 0
configure:19301: test -z
|| test ! -s conftest.err
configure:19304: $? = 0
configure:19307: test -s conftest
configure:19310: $? = 0
configure:19322: result: yes
configure:19424: checking for mysql_real_query
configure:19481: gcc -o conftest -I/usr/include/mysql -g -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g -O2 conftest.c -lz -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto >&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
configure:19487: $? = 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
| #define HAVE_LIBZ 1
| #define HAVE_LOCALTIME_R 1
| /* end confdefs.h. */
| /* Define mysql_real_query to an innocuous variant, in case <limits.h> declares mysql_real_query.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define mysql_real_query innocuous_mysql_real_query
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char mysql_real_query (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef mysql_real_query
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| {
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char mysql_real_query ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined (__stub_mysql_real_query) || defined (__stub___mysql_real_query)
| choke me
| #else
| char (*f) () = mysql_real_query;
| #endif
| #ifdef __cplusplus
| }
| #endif
|
| int
| main ()
| {
| return f != mysql_real_query;
| ;
| return 0;
| }
configure:19512: result: no
configure:19517: error: Could not use the single thread MySQL client library, please check config.log for errors

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-redhat-linux-gnu
ac_cv_build_alias=i686-redhat-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
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=
ac_cv_env_LDFLAGS_value=
ac_cv_env_MOC_set=
ac_cv_env_MOC_value=
ac_cv_env_QTMAX_set=
ac_cv_env_QTMAX_value=
ac_cv_env_QTMIN_set=
ac_cv_env_QTMIN_value=
ac_cv_env_UIC_set=
ac_cv_env_UIC_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_exeext=
ac_cv_f77_compiler_gnu=yes
ac_cv_func_localtime_r=yes
ac_cv_func_mysql_real_query=no
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-redhat-linux-gnu
ac_cv_host_alias=i686-redhat-linux-gnu
ac_cv_lib_z_compress=yes
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_uname_prog=/bin/uname
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_F77=f95
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_egrep='grep -E'
ac_cv_prog_f77_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-redhat-linux-gnu
ac_cv_target_alias=i686-redhat-linux-gnu
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_LDCXX=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_SED=/bin/sed
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_c_o_F77=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_gnu_ld=yes
lt_cv_prog_gnu_ldcxx=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\'''
lt_cv_sys_max_cmd_len=32768
lt_lt_cv_prog_compiler_c_o='"yes"'
lt_lt_cv_prog_compiler_c_o_CXX='"yes"'
lt_lt_cv_prog_compiler_c_o_F77='"yes"'
lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"'
lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'\''"'
lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"'
mysql_cv_sys_os=Linux

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /tmp/mysql-connector-odbc-3.51.27r695/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /tmp/mysql-connector-odbc-3.51.27r695/missing --run tar'
AR='ar'
AUTOCONF='${SHELL} /tmp/mysql-connector-odbc-3.51.27r695/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/mysql-connector-odbc-3.51.27r695/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/mysql-connector-odbc-3.51.27r695/missing --run automake-1.9'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-I/usr/include/mysql -g -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g -O2'
CONF_COMMAND='./configure '
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
ENABLE_BUNDLES_FALSE=''
ENABLE_BUNDLES_TRUE='#'
EXEEXT=''
EXTRA_LDFLAGS=''
EXTRA_XLIBS=''
F77='f95'
FFLAGS='-g -O2'
IMYODBC_FALSE='#'
IMYODBC_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
IS_DARWIN_FALSE=''
IS_DARWIN_TRUE='#'
LD='/usr/bin/ld'
LDFLAGS=''
LIBOBJS=''
LIBS='-lz -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto'
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIB_X11=''
LN_S='ln -s'
LTDL_LIB='-L/usr/lib -lltdl'
LTLIBOBJS=''
MACHINE_TYPE='i686'
MAKEINFO='${SHELL} /tmp/mysql-connector-odbc-3.51.27r695/missing --run makeinfo'
MOC=''
MYODBCINST_FALSE='#'
MYODBCINST_TRUE=''
MYSQL_LIB='-rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto'
MYSQL_PATH_ARG='--with-mysql-path=/opt/mysql/mysql /usr/local/mysql /usr'
MYSQL_THREADSAFE_LIB='-rdynamic -L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -L/usr/lib -lssl -lcrypto'
OBJEXT='o'
ODBCINSTLINK_FALSE=''
ODBCINSTLINK_TRUE=''
ODBC_DM_LIB=''
ODBC_DM_PATH_ARG=''
PACKAGE='mysql-connector-odbc'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
QTMAX=''
QTMIN=''
QTVERSION=''
QT_CXXFLAGS=''
QT_FALSE=''
QT_LDFLAGS=''
QT_LIBS=''
QT_PATH_ARG=''
QT_TRUE=''
RANLIB='ranlib'
SAVE_CFLAGS=''
SAVE_LDFLAGS=''
SEPARATE_THREAD_SAFE_DRIVER_FALSE='#'
SEPARATE_THREAD_SAFE_DRIVER_TRUE=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
SYSTEM_TYPE='redhat-linux-gnu'
UIC=''
VERSION='3.51.27'
WITH_DEBUG_FALSE=''
WITH_DEBUG_TRUE=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_INCLUDES=''
X_LDFLAGS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_F77='f95'
ac_ct_RANLIB='ranlib'
ac_ct_STRIP='strip'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-redhat-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='redhat'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-redhat-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='redhat'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/tmp/mysql-connector-odbc-3.51.27r695/install-sh'
iodbc_conf=''
isql=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
myodbc_test_dir=''
myodbc_test_linklib=''
myodbc_version='3.51.27'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-redhat-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='redhat'
uname_prog='/bin/uname'
x_includes='NONE'
x_libraries='NONE'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_DLFCN_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_LIBZ 1
#define HAVE_LOCALTIME_R 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE "mysql-connector-odbc"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define STDC_HEADERS 1
#define VERSION "3.51.27"
#define _UNIX_ 1
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;

configure: exit 1
 
Old 01-21-2009, 05:11 AM   #9
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
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
 
Old 01-21-2009, 05:27 AM   #10
nedzer
Member
 
Registered: Dec 2008
Posts: 44

Original Poster
Rep: Reputation: 15
Hi Agrouf,

cheers for finding the error.

I did a locate for 'mysqlclient.so'

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.
 
Old 01-21-2009, 08:39 AM   #11
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
configure --with-mysql-path=/home/eberwick/BO_3_1/bobje/mysql
 
Old 01-21-2009, 09:08 AM   #12
nedzer
Member
 
Registered: Dec 2008
Posts: 44

Original Poster
Rep: Reputation: 15
Agrouf - you're right.

ran that without a bother.
config.status: creating dltest/Makefile
config.status: creating driver/myconf.h
config.status: executing depfiles commands

Success!!

nice one. Apart from thanking you in the post can I in any other way boost your ranking in the forum. If so let me know, only too delighted.
 
Old 01-21-2009, 09:27 AM   #13
nedzer
Member
 
Registered: Dec 2008
Posts: 44

Original Poster
Rep: Reputation: 15
RE : C compiler cannot create executables

after the euphoria of getting the ./configure to run successfully, quickly brought back down to earth when I went about doing the

# make

I looked though the
http://dev.mysql.com/doc/refman/5.0/...urce-unix.html

It's ref came up when coming to the end of the ./configure script.

and it stated when running the ./configure

you should have the following options selected

The final configuration command looks something like this:


shell> ./configure --prefix=/usr/local \
--with-iodbc=/usr/local \
--with-mysql-path=/usr/local/mysql


Thanks again for directing me to the

with-mysql-path=/home/eberwick/BO_3_1/bobje/mysql

part.

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]#
 
Old 01-21-2009, 12:15 PM   #14
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
add this to configure:
--with-ltdl-path=/home/eberwick/BO_3_1/unixodbc/unixODBC-2.2.14/libltdl
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C compiler cannot create executables hemabhala Linux - Newbie 1 06-20-2008 12:50 PM
C compiler cannot create executables cov Amigo 3 05-06-2005 02:18 AM
Compiler cannot create executables? Oxyacetylene Linux - Software 4 11-25-2004 10:29 AM
My C compiler cannot create executables, help rbmako69 Linux - Software 15 06-16-2004 02:22 PM
C compiler cannot create executables inanna Linux - Newbie 1 05-01-2004 01:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration