Skip to Content.
Sympa Menu

freetds - RE: [freetds] Status

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Status
  • Date: Tue, 9 Nov 2004 10:57:19 +0100

>
> Brian Bruns wrote:
>
> > I'm still having problem building shared libs on AIX. static works
> > fine. Switching to gnu nm didn't fix the problem, definately a
> > libtool issue, but I'd like to have a workaround anyway.
>
> Did you supply any switches on the 'configure' command ? I just took
> fresh CVS, ran 'autogen.sh' and 'make' and got some shared libraries
> on AIX-5.1 with GCC-3.3.2 from the "AIX toolbox":
>
> osprey: 14:12:17 /usr/local/src/freetds> ldd
> ./src/tds/.libs/libtds.so.3
> ./src/tds/.libs/libtds.so.3
> /usr/lib/libcrypt.a(shr.o)
> /usr/lib/libc.a(shr.o)
>
>
> Yeah, later I run into trouble, but this is something different:
>
> make[2]: Entering directory `/usr/local/src/freetds/src/apps'
> if gcc -mcpu=604e -mtune=604e -mpowerpc-gpopt -mpowerpc-gfxopt
> --DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> --I/opt/gnu/include -I/usr/local/include -I/opt/freeware/include
> --D_FREETDS_LIBRARY_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1
> --Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -O3
> --MT bsqldb.o -MD -MP -MF ".deps/bsqldb.Tpo" \ c -o
> bsqldb.o `test -f
> -'bsqldb.c' || echo './'`bsqldb.c; \
> then mv -f ".deps/bsqldb.Tpo" ".deps/bsqldb.Po"; \
> else rm -f ".deps/bsqldb.Tpo"; exit 1; \
> fi
> In file included from bsqldb.c:48:
> /usr/include/regex.h:174: error: conflicting types for `regex'
> /usr/include/libgen.h:42: error: previous declaration of `regex'
> /usr/include/regex.h:175: error: conflicting types for `regcmp'
> /usr/include/libgen.h:41: error: previous declaration of `regcmp'
> make[2]: *** [bsqldb.o] Error 1
>

Fixed in CVS. Old Unix versions define these functions in libgen.h,
newer in regex.h. It seems that AIX define in two places but with
different prototypes so I replace regex code using standard C and remove
regex.h include.

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page