freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Kanneboina, Venkat" <VenkatKanneboina AT ca.slr.com>
- To: "'freetds AT franklin.oit.unc.edu'" <freetds AT franklin.oit.unc.edu>
- Cc: "'LowdenJK AT bernstein.com'" <LowdenJK AT bernstein.com>, "'John.Wilson AT savvis.net'" <John.Wilson AT savvis.net>
- Subject: RE: Problem building freetds --- gcc location
- Date: Mon, 28 Oct 2002 13:37:06 -0800
Title: RE: RE: Problem building freetds --- gcc location
Hi James
I have tried with setting CC=/usr/local/bin/gcc , it did not work.
As advised, I have given a portion of the output of the configure command here:
Please take a look and advise.
Thanks much
Venkat
Script started on Mon Oct 28 13:16:29 2002
# ./configure --prefix=/mis2/freetds-0.60 --with-tdsver=7.0 --enable-msdblib^M
......
checking whether make sets ${MAKE}... (cached) yes^M
checking for working aclocal... missing^M
checking for working autoconf... missing^M
checking for working automake... missing^M
checking for working autoheader... missing^M
checking for working makeinfo... missing^M
checking for gcc... (cached) cc^M
checking whether the C compiler (cc ) works... yes^M
checking whether the C compiler (cc ) is a cross-compiler... no^M
checking whether we are using GNU C... (cached) no^M
checking whether cc accepts -g... (cached) no^M
checking how to run the C preprocessor... (cached) cc -E^M
checking whether make sets ${MAKE}... (cached) yes^M
checking for non-GNU ld... (cached) /usr/bin/ld^M
checking if the linker (/usr/bin/ld) is GNU ld... (cached) no^M
checking for /usr/bin/ld option to reload object files... (cached) -r^M
checking for BSD-compatible nm... (cached) /usr/bin/nm -p^M
checking whether ln -s works... (cached) yes^M
checking for executable suffix... (cached) no^M
loading cache ./config.cache within ltconfig^M
checking for objdir... .libs^M
checking for cc option to produce PIC... none^M
checking if cc static flag -Wl,-a -Wl,archive works... (cached) yes^M
finding the maximum length of command line arguments... (cached) 393217^M
checking if cc supports -c -o file.o... (cached) yes^M
checking whether the linker (/usr/bin/ld) supports shared libraries... yes^M
checking how to hardcode library paths into programs... relink^M
..................
done^M
# exit^M
script done on Mon Oct 28 13:17:06 2002
*************************************
Venkat,
See line 869 or so of configure:
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
I think this might output of a more recent version of autoconf, but is $CC
set to anything, and/or does setting it to /usr/local/bin/gcc help?
If you post the 20 or so lines of configure's output leading up to the first
error, that might shed some light on what's going on. script(1) is your
friend here.
Regards,
--jkl
-----Original Message-----
From: Kanneboina, Venkat
Sent: Monday, October 28, 2002 11:48 AM
To: 'freetds AT franklin.oit.unc.edu'
Cc: 'John.Wilson AT savvis.net'
Subject: RE: Problem building freetds --- gcc location
Hi John
I do have root on this server.
I did install gcc at /usr/local/bin. And the PATH variable was set to include the /usr/local/bin/ directory also. But, the "configure" script of free-tds does not seem to recognize this gcc. I am looking at the log file, and there are entries as given below:
configure:992: checking whether the C compiler (cc ) works
configure:1008: cc -o conftest conftest.c 1>&5
.......
The above log entries indicate that configure is trying to use "cc" instead of "gcc", is this right?
Can you suggest what could be going wrong here and how can I point configure to locate gcc.
One more point is that I have 2 versions of perl running on this system. One is 4.0 and the other is 5.6.1. Does this cause any issue?
Thanks
Venkat
***************************************************************************
Venkat,
I assume you have root on this server. If you don't already have gcc
installed, then you might consider installing it in /usr/local. I've not
installed gcc for a while, but I think that is the default location.
Regardless of where you install it, make sure the PATH environment variable
is set to look in /usr/local/bin, or whatever ~/bin dir you install it in.
The FreeTDS Makefile generated by the Makefile.PL will use this path to find
gcc.
jd
-----Original Message-----
From: Kanneboina, Venkat
Sent: Friday, October 25, 2002 18:43
To: TDS Development Group
Subject: [freetds] Problem building freetds --- gcc location
Hi All,
I am building freetds on HP box.
Where should I install the gcc?
Is it supposed to be available in a specific location with reference to the
freetds files?
When I give the "make" command, it is failing.
Looks like it is unable to detect the presence of gcc?
Do I need to set any variable to indicate the location of gcc?
Please advise
Thanks in advance
Venkat
-
Problem building freetds --- gcc location,
Kanneboina, Venkat, 10/25/2002
- <Possible follow-up(s)>
- RE: Problem building freetds --- gcc location, Wilson, John, 10/25/2002
- RE: Problem building freetds --- gcc location, Kanneboina, Venkat, 10/28/2002
- RE: Problem building freetds --- gcc location, Lowden, James K, 10/28/2002
- RE: Problem building freetds --- gcc location, Kanneboina, Venkat, 10/28/2002
- RE: Problem building freetds --- gcc location, Lowden, James K, 10/28/2002
- RE: Problem building freetds --- gcc location, Castellano, Nicholas, 10/29/2002
- RE: Problem building freetds --- gcc location, VenkatKanneboina, 10/29/2002
- RE: Problem building freetds --- gcc location, Michael Peppler, 10/29/2002
Archive powered by MHonArc 2.6.24.