Skip to Content.
Sympa Menu

freetds - Re: [freetds] AIX 6.1 make failure

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Kevin Coyle" <Kevin.Coyle AT richardson.ca>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] AIX 6.1 make failure
  • Date: Tue, 29 May 2012 11:33:55 -0500

I set CFLAGS=-qcpluscmt and configure worked fine, thank you. However I had
not set LD_LIBRARY_PATH environment variable. Now that I have, when I run:

CFLAGS=-qcpluscmt ./configure

or

CFLAGS=-qcpluscmt ./configure --disable-shared

I get:
wpgdt1.richardson.ca[/home/kcoyle/freetds-0.91]$ CFLAGS=-qcpluscmt
./configure --disable-shared
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking build system type... powerpc-ibm-aix5.3.0.0
checking host system type... powerpc-ibm-aix5.3.0.0
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... cc
checking whether the C compiler works... no
configure: error: in `/home/kcoyle/freetds-0.91':
configure: error: C compiler cannot create executables
See `config.log' for more details.

The config.log contains:

configure:3764: cc -qversion >&5
C for AIX version 6.0.0.0configure:3775: $? = 249
configure:3795: checking whether the C compiler works
configure:3817: cc -qcpluscmt conftest.c >&5
Could not load program /usr/vac/exe/xlcentry:
Could not load module /usr/lib/libC128.a(shr.o).
Dependent module /usr/local/lib/libC.a(shrcore.o) could not be loaded.
Member shrcore.o is not found in archive
Could not load module xlcentry.
Dependent module /usr/lib/libC128.a(shr.o) could not be loaded.
Could not load module .
configure:3821: $? = 255
configure:3859: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "FreeTDS"
| #define PACKAGE_TARNAME "freetds"
| #define PACKAGE_VERSION "0.91"
| #define PACKAGE_STRING "FreeTDS 0.91"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "freetds"
| #define VERSION "0.91"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3864: error: in `/home/kcoyle/freetds-0.91':
configure:3867: error: C compiler cannot create executables
See `config.log' for more details.

Any help would be appreciated.
Thanks

>>> Frediano Ziglio <freddy77 AT gmail.com> 5/28/2012 10:28 AM >>>
If the line is

// FIXME: These are defined as size_t, but should be TDS_SMALLINT.

I think your compiler doesn't really like C++ comments... remove that
line and try again

Frediano


2012/5/25 Kevin Coyle <Kevin.Coyle AT richardson.ca>:
> I have downloaded and freetds-0.91 and when I run ./configure I get no
> errors. However when I try to make I get the following:
>
> Making all in include
> make all-am
> echo '#define FREETDS_SYSCONFDIR "/usr/local/etc"'
> >freetds_sysconfdir.h
> Target "all-am" is up to date.
> Making all in src
> Making all in replacements
> source='iconv.c' object='iconv.lo' libtool=yes DEPDIR=.deps
> depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool --tag=CC
> --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -o iconv.lo
> iconv.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -M iconv.c
> -DPIC -o .libs/iconv.o
> "iconv.c", line 484.7: 1506-356 (W) Compilation unit is empty.
> source='gettimeofday.c' object='gettimeofday.lo' libtool=yes
> DEPDIR=.deps depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool
> --tag=CC --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I.
> -I../../include -I../../include -I../../src/replacements
> -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1
> -D_THREAD_SAFE -g -c -o gettimeofday.lo gettimeofday.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -M
> gettimeofday.c -DPIC -o .libs/gettimeofday.o
> "gettimeofday.c", line 73.7: 1506-356 (W) Compilation unit is empty.
> source='fakepoll.c' object='fakepoll.lo' libtool=yes DEPDIR=.deps
> depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool --tag=CC
> --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -o fakepoll.lo
> fakepoll.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -M fakepoll.c
> -DPIC -o .libs/fakepoll.o
> "fakepoll.c", line 198.23: 1506-356 (W) Compilation unit is empty.
> source='asprintf.c' object='asprintf.lo' libtool=yes DEPDIR=.deps
> depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool --tag=CC
> --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -o asprintf.lo
> asprintf.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -M asprintf.c
> -DPIC -o .libs/asprintf.o
> source='vasprintf.c' object='vasprintf.lo' libtool=yes DEPDIR=.deps
> depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool --tag=CC
> --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -o vasprintf.lo
> vasprintf.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -M vasprintf.c
> -DPIC -o .libs/vasprintf.o
> source='readpassphrase.c' object='readpassphrase.lo' libtool=yes
> DEPDIR=.deps depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool
> --tag=CC --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I.
> -I../../include -I../../include -I../../src/replacements
> -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1
> -D_THREAD_SAFE -g -c -o readpassphrase.lo readpassphrase.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -M
> readpassphrase.c -DPIC -o .libs/readpassphrase.o
> source='strlcpy.c' object='strlcpy.lo' libtool=yes DEPDIR=.deps
> depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool --tag=CC
> --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -o strlcpy.lo
> strlcpy.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -M strlcpy.c
> -DPIC -o .libs/strlcpy.o
> source='strlcat.c' object='strlcat.lo' libtool=yes DEPDIR=.deps
> depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool --tag=CC
> --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -o strlcat.lo
> strlcat.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -I../../src/replacements -D_FREETDS_LIBRARY_SOURCE
> -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -D_THREAD_SAFE -g -c -M strlcat.c
> -DPIC -o .libs/strlcat.o
> /bin/sh ../../libtool --tag=CC --mode=link cc -qlanglvl=extc89
> -D_THREAD_SAFE -g -o libreplacements.la iconv.lo gettimeofday.lo
> fakepoll.lo asprintf.lo vasprintf.lo readpassphrase.lo strlcpy.lo
> strlcat.lo -lpthreads
> libtool: link: rm -fr .libs/libreplacements.a .libs/libreplacements.la
> libtool: link: ar cru .libs/libreplacements.a .libs/iconv.o
> .libs/gettimeofday.o .libs/fakepoll.o .libs/asprintf.o .libs/vasprintf.o
> .libs/readpassphrase.o .libs/strlcpy.o .libs/strlcat.o
> libtool: link: ranlib .libs/libreplacements.a
> libtool: link: ( cd ".libs" && rm -f "libreplacements.la" && ln -s
> "../libreplacements.la" "libreplacements.la" )
> Target "all" is up to date.
> Making all in tds
> make all-recursive
> Making all in unittests
> Target "all" is up to date.
> source='mem.c' object='mem.lo' libtool=yes DEPDIR=.deps depmode=aix
> /bin/sh ../../depcomp /bin/sh ../../libtool --tag=CC --mode=compile cc
> -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include -I../../include
> -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1
> -D_THREAD_SAFE -g -c -o mem.lo mem.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
> -DDEBUG=1 -D_THREAD_SAFE -g -c -M mem.c -DPIC -o .libs/mem.o
> source='token.c' object='token.lo' libtool=yes DEPDIR=.deps
> depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool --tag=CC
> --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
> -DDEBUG=1 -D_THREAD_SAFE -g -c -o token.lo token.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
> -DDEBUG=1 -D_THREAD_SAFE -g -c -M token.c -DPIC -o .libs/token.o
> source='util.c' object='util.lo' libtool=yes DEPDIR=.deps
> depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool --tag=CC
> --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
> -DDEBUG=1 -D_THREAD_SAFE -g -c -o util.lo util.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
> -DDEBUG=1 -D_THREAD_SAFE -g -c -M util.c -DPIC -o .libs/util.o
> source='login.c' object='login.lo' libtool=yes DEPDIR=.deps
> depmode=aix /bin/sh ../../depcomp /bin/sh ../../libtool --tag=CC
> --mode=compile cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
> -DDEBUG=1 -D_THREAD_SAFE -g -c -o login.lo login.c
> libtool: compile: cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../include
> -I../../include -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE
> -DDEBUG=1 -D_THREAD_SAFE -g -c -M login.c -DPIC -o .libs/login.o
> "login.c", line 724.9: 1506-046 (S) Syntax error.
> "login.c", line 724.19: 1506-045 (S) Undeclared identifier These.
> "login.c", line 766.20: 1506-045 (S) Undeclared identifier user_name_len.
> make: The error code from the last command is 1.
>
>
> Stop.
> make: The error code from the last command is 1.
>
>
> Stop.
> make: The error code from the last command is 2.
>
>
> Stop.
> make: The error code from the last command is 1.
>
>
> Stop.
> make: The error code from the last command is 1.
>
>
> Stop.
>
> Any ideas on what I can do?
>
> Thanks
>
> The foregoing message, together with any attachments, is confidential and
> intended for the addressee only. If you received this message in error,
> please delete all copies of this message and promptly notify us of our
> error. Thank you.
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds

The foregoing message, together with any attachments, is confidential and
intended for the addressee only. If you received this message in error,
please delete all copies of this message and promptly notify us of our error.
Thank you.



Archive powered by MHonArc 2.6.24.

Top of Page