Skip to Content.
Sympa Menu

freetds - Re: [freetds] PHP+MSSQL compile on AIX 5.1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Martin Spott <Martin.Spott AT uni-duisburg.de>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] PHP+MSSQL compile on AIX 5.1
  • Date: Thu, 1 Jul 2004 22:22:59 +0000 (UTC)

"James K. Lowden" wrote:
> On Wed, 30 Jun 2004, Martin Spott wrote:
> >
> > Would anyone mind applying the following patch ? I replaces every
> > occurrence of
> >
> > /**
> >
> > with
> >
> > /*
>
> Respectfully, Martin, no. We need some other kind of replacement.
> Otherwise, we'll have to abandon Doxygen, and I don't want to do that.

Ouch, I already felt there might have been a deeper reson for this
thouroughly use of "/**" but I didn't realize which one ....

> First, is this really the problem?

To be honest: Currently I don't really know, I'm a bit confused. Few
days ago I _obviusly_ had the compiler disagree with "/**", but _after_
posting the patch yesterday I had a second try with an _unmodified_
source tree from current CVS and I got a proper build as well.
I definitely did _not_ change the compiler for several weeks - I really
don't have any clue where the change did come from. Sorry for the
confusion.

There's only one little nit left over: After running 'configure' on my
setup both HAVE_LIBGEN_H and HAVE_REGEX_H are being defined. This leads
to the following result because they appear to be mutually exclusive:

make[2]: Entering directory `/usr/local/src/freetds/src/apps'
source='bsqldb.c' object='bsqldb.o' libtool=no \
depfile='.deps/bsqldb.Po' tmpdepfile='.deps/bsqldb.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
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 -c `test -f bsqldb.c || echo
'./'`bsqldb.c
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


Simply commenting out lines 43 to 45 in bsqldb.c

#if HAVE_LIBGEN_H
#include <libgen.h>
#endif

leads to a proper build. I attached both files in case anyone wants to
have a look at them,

Martin.

begin 444 libgen.h.gz
M'XL("*6-Y$`"`VQI8F=E;BYH`'5276_:,!1]SZ^X*B^`:-*P=@BZ3@LAI9%*
M$B5![9ZBX!ABR3C(=KI6T_[['`P#MLR2)?N<>\[]L*T^?.MV>N,AZ&6;0U-M
M`,&1M:J$50MN$89H76"+DM4&,[,<@#I%+P-0`7?V#7RV[+$U'H%].[D=33[=
M0-\R#*MO0%\YNN$B"@,O2+/`67@3>/:GT8NB-/NX#-S4#X-D`JQB^`\>QO[<
M;]#A2&,:[KH]91A]5^Q3"CZ3F+-<DHKE%*:U(`P+`8L<E<T)W(KO3+#'XSNM
M=BB%F&Q**2#&`O,W7&CBF2#,!"Z45#F2G`JXAHA7.\SE!U1K\*<+';E,8%Z]
MJ:Q;S"0LE<G>2W*"I-(?W*\;9@!%O:,$[>N#BFN#@@A$*U%S#/RD6WW`/''`
MF460H!(7-<6J>B9YCB3\(+)L*M#]&/OI=LB:%7 AT -V5.F!CKW`J.CKJKK,^0\
M*$F=8.;$LT2!^C7ABY`Y*W)>"+/\:G0P*\AZK]E+,K2CM6BV@=^;,<.5>P4_
MS^,@>PTC+\B2<!F[7N:]IEXP\V8/#[9QU*`RYZKM+*,5LN]/[D&817&8AI=Q
MJUQ@EF]QMW=_212$M^(<;]!VUP;C]P;M8"HP6/U3PF9X[3GU]7^9V]E#?E0Q
M(0_0`$S3;"_H,JQ-I(?[3\'G>.O(CU_B[Y?[=7JND\/Q?S2BWW^,R#C_`P``
`
end

begin 444 regex.h.gz
M'XL("*J-Y$`"`W)E9V5X+F@`G5AM<]I($OX\_(JN\E:=35A`.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ZX45Q5)=<&,
M3=V-L\&N&H!,8$:-;;<DBS1,L9T]GK]5><,KK<`FL[8=3GV2/]-%C-,0DS%\
MVW5SO#<?;U=D#E^!,--!I-Z2Z,W)$]&JTK!V-W``L;+B2%KOT<A3XE"0_/Z8
M<2:1Q#)I"@J/=U;5%"N3\Q\DC[P2N5>YS]H>_=U;VJ5#7M]51H[?3O.QN191
M$LEW'RB^IHS&UF0ZGHUK?".5C44%EK?];F&9Y2G,5_..N)!'J_!$5C@_T]U"
MA]@9)"^.V=Q-['H##TZ8)8&^X:[C_JAM+^*4DXU"M@[8JG'@PQU+D;9$^$*L
M^7X9='YTBE'GN9_=3@W]RC+U:V/_VF"8@__@U5KKY"LCO*FRB\H;M$6_D^2O
ME=DI4,;EJ/Y:8^0OPP8P3[U'R?JY@0*KSX4=!WZ</!)OOL3+2XXO'*^+&I.O
MYE?=\LMR9KX0##L0DK2^F^.6.-"2)>\FXB_%4>4I%C=>-S('H2[<ERP4$6NM
M@E!QL:KQ0KB%*JF`]X^*[_BERA8N-"\<-"C%M<\.%'S_J]Q4.(IQ'N>K['A!
MGR]V_&/A%54Y'-P-9L6?6P)_Y2>'O[6H?3^D'M1S03GYJJ-2]D/"(8K=T2W_
:?X%8M887A/&][)2/"(J,EO\/1SNX82P5````
`
end

--
Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page