08.04.0100 build error on Fedora 11
08.04.0100 build error on Fedora 11
am 28.07.2009 15:01:15 von devrim
--=-mqYPseUFTbrHTSjfR/56
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hi,
I'm getting the message below on Fedora 11, which has unixODBC 2.2.14 and g=
cc 4.4.0:
==================== =====3D=
==================== =====3D=
==================== =====3D=
====================
/bin/sh ./libtool --tag=3DCC --mode=3Dcompile gcc -DHAVE_CONFIG_H -I. -=
I/usr/include -I/usr/include -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SO=
URCE=3D2 -fexceptions -fstack-protector --param=3Dssp-buffer-size=3D4 -m32 =
-march=3Di386 -mtune=3Dgeneric -fasynchronous-unwind-tables -MT odbcapi30.l=
o -MD -MP -MF .deps/odbcapi30.Tpo -c -o odbcapi30.lo odbcapi30.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -W=
all -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-prote=
ctor --param=3Dssp-buffer-size=3D4 -m32 -march=3Di386 -mtune=3Dgeneric -fas=
ynchronous-unwind-tables -MT odbcapi30.lo -MD -MP -MF .deps/odbcapi30.Tpo -=
c odbcapi30.c -fPIC -DPIC -o .libs/odbcapi30.o
odbcapi30.c:115: error: conflicting types for 'SQLColAttribute'
/usr/include/sql.h:600: note: previous declaration of 'SQLColAttribute' was=
here
odbcapi30.c: In function 'SQLFetchScroll':
odbcapi30.c:198: warning: pointer targets in initialization differ in signe=
dness
odbcapi30.c:223: warning: pointer targets in passing argument 4 of 'PGAPI_E=
xtendedFetch' differ in signedness
pgapifunc.h:186: note: expected 'SQLUINTEGER *' but argument is of type 'SQ=
LINTEGER *'
make[2]: *** [odbcapi30.lo] Error 1
make[2]: Leaving directory `/home/devrim/rpm/BUILD/psqlodbc-08.04.0100'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/devrim/rpm/BUILD/psqlodbc-08.04.0100'
error: Bad exit status from /var/tmp/rpm-tmp.4qU2Xs (%build)
==================== =====3D=
==================== =====3D=
==================== =====3D=
====================
Regards,
--=20
Devrim GÃNDÃZ, RHCE
Command Prompt - http://www.CommandPrompt.com=20
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org
--=-mqYPseUFTbrHTSjfR/56
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEABECAAYFAkpu9pkACgkQtl86P3SPfQ6ObgCgxevo16kD8xDeL5E0KQVB 5++Z
jPwAoOKgsTkpiEGk9HSxZDm0+eyKfRT6
=wyW6
-----END PGP SIGNATURE-----
--=-mqYPseUFTbrHTSjfR/56--
Re: 08.04.0100 build error on Fedora 11
am 30.07.2009 05:59:00 von Hiroshi Saito
Hi Davrim-san.
Sorry very late reaction....
> Hi,
>
> I'm getting the message below on Fedora 11, which has unixODBC 2.2.14 a=
nd gcc 4.4.0:
>
> ==================== =====
==================== =====3D=
==================== =====3D=
==================== =3D
> /bin/sh ./libtool --tag=3DCC --mode=3Dcompile
> gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wall -O2 -=
g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2
> -fexceptions -fstack-protector --param=3Dssp-buffer-size=3D4 -m32 -marc=
h=3Di386 -mtune=3Dgeneric -fasynchronous-unwind-tables
> -MT odbcapi30.lo -MD -MP -MF .deps/odbcapi30.Tpo -c -o odbcapi30.lo odb=
capi30.c
> libtool: compile:
> gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wall -O2 -g -pip=
e -Wall -Wp,-D_FORTIFY_SOURCE=3D2
> -fexceptions -fstack-protector --param=3Dssp-buffer-size=3D4 -m32 -marc=
h=3Di386 -mtune=3Dgeneric -fasynchronous-unwind-tables
> -MT odbcapi30.lo -MD -MP -MF .deps/odbcapi30.Tpo -c odbcapi30.c -fPIC =
-DPIC -o .libs/odbcapi30.o
> odbcapi30.c:115: error: conflicting types for 'SQLColAttribute'
> /usr/include/sql.h:600: note: previous declaration of 'SQLColAttribute'=
was here
> odbcapi30.c: In function 'SQLFetchScroll':
> odbcapi30.c:198: warning: pointer targets in initialization differ in s=
ignedness
> odbcapi30.c:223: warning: pointer targets in passing argument 4 of 'PGA=
PI_ExtendedFetch' differ=20
> in
> signedness
> pgapifunc.h:186: note: expected 'SQLUINTEGER *' but argument is of type=
'SQLINTEGER *'
> make[2]: *** [odbcapi30.lo] Error 1
> make[2]: Leaving directory `/home/devrim/rpm/BUILD/psqlodbc-08.04.0100'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/devrim/rpm/BUILD/psqlodbc-08.04.0100'
> error: Bad exit status from /var/tmp/rpm-tmp.4qU2Xs (%build)
> ==================== =====
==================== =====3D=
==================== =====3D=
==================== =3D
>
> Regards,
>
> --=20
> Devrim GÃNDÃZ, RHCE
> Command Prompt - http://www.CommandPrompt.com
> devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
> http://www.gunduz.org
>
Ummm, I was testing using 2.2.11 as a stable version....
As far as I know, 2.2.14 had some problems. Then, your problem is also on=
e
of them. the following is the information. However, #if which put the mar=
k on
the specific version may be desired. Probably, Inoue-san may have a good
idea. It desires to be adjusted for the following version.
== unixODBC-2.2.14 ==
SQLRETURN SQL_API SQLColAttribute(SQLHSTMT StatementHandle,
SQLUSMALLINT ColumnNumber, SQLUSM=
ALLINT
FieldIdentifier,
SQLPOINTER CharacterAttribute, SQ=
LSMALLI
NT BufferLength,
SQLSMALLINT *StringLength, SQLLEN=
*Numer
icAttribute
/* spec says (SQLPOINTER) not (SQLEN*) - PAH */ );
== unixODBC-2.2.11 ==
SQLRETURN SQL_API SQLColAttribute (SQLHSTMT StatementHandle,
SQLUSMALLINT ColumnNumber, SQLUSM=
ALLINT
FieldIdentifier,
SQLPOINTER CharacterAttribute, SQ=
LSMALLI
NT BufferLength,
SQLSMALLINT *StringLength, SQLPOI=
NTER Nu
mericAttribute /* spec says (SQLPOINTER) not (SQLEN*) - PAH */ );
== unixODBC ==
#elif defined(WITH_UNIXODBC) || defined(WIN32)
SQLPOINTER NumericAttribute
#else
SQLLEN *NumericAttribute
#endif
==/
Regards,
Hiroshi Saito=20
--=20
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Re: 08.04.0100 build error on Fedora 11
am 09.08.2009 21:45:29 von devrim
--=-WSUdakSW9TeE1BkaQzCC
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Thu, 2009-07-30 at 12:59 +0900, Hiroshi Saito wrote:
>=20
> Ummm, I was testing using 2.2.11 as a stable version....
> As far as I know, 2.2.14 had some problems. Then, your problem is also
> one of them. the following is the information. However, #if which put
> the mark on the specific version may be desired. Probably, Inoue-san
> may have a good idea. It desires to be adjusted for the following
> version.
Was this issue addressed?
--=20
Devrim GÃNDÃZ, RHCE
Command Prompt - http://www.CommandPrompt.com=20
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org
--=-WSUdakSW9TeE1BkaQzCC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEABECAAYFAkp/J1cACgkQtl86P3SPfQ4O6QCfVUiLu9DWHABmVkMzlJht eWc1
CacAoLbqfFjfHzBoAJnXkNjbH/lw69Gv
=XiTq
-----END PGP SIGNATURE-----
--=-WSUdakSW9TeE1BkaQzCC--
Re: 08.04.0100 build error on Fedora 11
am 10.08.2009 16:58:51 von Hiroshi Saito
This is a multi-part message in MIME format.
------=_NextPart_000_010D_01CA1A16.829CD780
Content-Type: text/plain;
format=flowed;
charset="UTF-8";
reply-type=original
Content-Transfer-Encoding: quoted-printable
Hi Devrim-san.
I propose this after some tests. then, I will want to apply it, if someon=
e do not
have an objection in this ptach, either and if your condition is good.
Regards,
Hiroshi Saito
----- Original Message -----=20
From: "Devrim GÃNDÃZ"
>> Ummm, I was testing using 2.2.11 as a stable version....
>> As far as I know, 2.2.14 had some problems. Then, your problem is also
>> one of them. the following is the information. However, #if which put
>> the mark on the specific version may be desired. Probably, Inoue-san
>> may have a good idea. It desires to be adjusted for the following
>> version.
>
> Was this issue addressed?=20
------=_NextPart_000_010D_01CA1A16.829CD780
Content-Type: application/octet-stream;
name="psqlodbc_SQLLEN_patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="psqlodbc_SQLLEN_patch"
*** configure.ac.orig Mon Aug 10 22:52:25 2009=0A=
--- configure.ac Mon Aug 10 23:08:05 2009=0A=
***************=0A=
*** 69,74 ****=0A=
--- 69,90 ----=0A=
[Define to 1 to build with unixODBC support])=0A=
AC_DEFINE(SQL_WCHART_CONVERT, [],=0A=
[Define to use wchar_t as SQLWCHAR in unixODBC])=0A=
+ AC_CACHE_CHECK([unixODBC SQLLEN must be version 2.2.14 ],=0A=
+ func_sqlcolattribute_sqllen,=0A=
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM(=0A=
+ [[#include >=0A=
+ SQLRETURN SQL_API SQLColAttribute=0A=
+ (SQLHSTMT StatementHandle,SQLUSMALLINT ColumnNumber,=0A=
+ SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttribute,=0A=
+ SQLSMALLINT BufferLength, SQLSMALLINT *StringLength,
=
+ SQLLEN *NumercAttribute);]],=0A=
+ [[]])],=0A=
+ func_sqlcolattribute_sqllen=3Dyes,=0A=
+ func_sqlcolattribute_sqllen=3Dno)])=0A=
+ if test $func_sqlcolattribute_sqllen =3D yes; then=0A=
+ AC_DEFINE(SQLCOLATTRIBUTE_SQLLEN, 1,=0A=
+ [Define to 1 if SQLColAttribute use SQLLEN])=0A=
+ fi=0A=
fi=0A=
=0A=
=0A=
*** odbcapi30.c.orig Mon Aug 10 23:02:40 2009=0A=
--- odbcapi30.c Mon Aug 10 23:05:35 2009=0A=
***************=0A=
*** 118,129 ****=0A=
SQLPOINTER CharacterAttribute,=0A=
SQLSMALLINT BufferLength,=0A=
SQLSMALLINT *StringLength,=0A=
! #if defined(_WIN64)=0A=
SQLLEN *NumericAttribute=0A=
- #elif defined(WITH_UNIXODBC) || defined(WIN32)=0A=
- SQLPOINTER NumericAttribute=0A=
#else=0A=
! SQLLEN *NumericAttribute=0A=
#endif=0A=
)=0A=
{=0A=
--- 118,127 ----=0A=
SQLPOINTER CharacterAttribute,=0A=
SQLSMALLINT BufferLength,=0A=
SQLSMALLINT *StringLength,=0A=
! #if defined(_WIN64) || defined(SQLCOLATTRIBUTE_SQLLEN)=0A=
SQLLEN *NumericAttribute=0A=
#else=0A=
! SQLPOINTER NumericAttribute=0A=
#endif=0A=
)=0A=
{=0A=
*** odbcapi30w.c.orig Mon Aug 10 23:06:18 2009=0A=
--- odbcapi30w.c Mon Aug 10 23:07:29 2009=0A=
***************=0A=
*** 262,271 ****=0A=
SQLPOINTER pCharAttr,=0A=
SQLSMALLINT cbCharAttrMax,
=
SQLSMALLINT *pcbCharAttr,=0A=
! #if defined(WITH_UNIXODBC) || (defined(WIN32) && ! defined(_WIN64))=0A=
! SQLPOINTER pNumAttr=0A=
! #else=0A=
SQLLEN *pNumAttr=0A=
#endif=0A=
)=0A=
{=0A=
--- 262,271 ----=0A=
SQLPOINTER pCharAttr,=0A=
SQLSMALLINT cbCharAttrMax,
=
SQLSMALLINT *pcbCharAttr,=0A=
! #if defined(_WIN64) || defined(SQLCOLATTRIBUTE_SQLLEN)=0A=
SQLLEN *pNumAttr=0A=
+ #else=0A=
+ SQLPOINTER pNumAttr=0A=
#endif=0A=
)=0A=
{=0A=
------=_NextPart_000_010D_01CA1A16.829CD780
Content-Type: text/plain
Content-Disposition: inline
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
--=20
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
------=_NextPart_000_010D_01CA1A16.829CD780--