Unix Technical Forum

non-unicode compiling bug

This is a discussion on non-unicode compiling bug within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Hi! I can't build non-unicode version of driver psqlodbc (08.02.0400) for linux. ../configure --with-unixodbc=/usr/local/bin/odbc_config --disable-unicode <cut> configure: error: conditional ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 04:19 PM
=?KOI8-R?Q?=E1=CC=C5=CB=D3=C5=CA_=EC=D5=D4=CF=D7=C9=CE=C9=CE?=
 
Posts: n/a
Default non-unicode compiling bug

Hi!

I can't build non-unicode version of driver psqlodbc (08.02.0400) for linux.

../configure --with-unixodbc=/usr/local/bin/odbc_config --disable-unicode
<cut>
configure: error: conditional "enable_unicode" was never defined.
Usually this means the macro was only invoked conditionally.

With best rgards...
Alex Lutovinin


---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 04:19 PM
Hiroshi Saito
 
Posts: n/a
Default Re: non-unicode compiling bug

Hi.

From: "Алексей Лутовинин" <al@mnppsaturn.ru>


> Hi!
>
> I can't build non-unicode version of driver psqlodbc (08.02.0400) for linux.
>
> ./configure --with-unixodbc=/usr/local/bin/odbc_config --disable-unicode
> <cut>
> configure: error: conditional "enable_unicode" was never defined.
> Usually this means the macro was only invoked conditionally.


Oops, Sorry...
I did not notice the trouble. AM_CONDITIONAL doesn't accept disable.
Please change as follows.

--- configure.ac.org Mon May 14 02:36:54 2007
+++ configure.ac Mon May 14 03:06:57 2007
@@ -170,8 +170,9 @@
[enable_unicode="$enableval"],
[enable_unicode="yes"])

+AM_CONDITIONAL(enable_unicode, [test x$enable_unicode = xyes])
+
if test $enable_unicode = yes; then
- AM_CONDITIONAL(enable_unicode, [test x$enable_unicode = xyes])
AC_DEFINE(UNICODE_SUPPORT, 1,
[build with Unicode support])
AC_CHECK_FUNCS(iswascii)


P.S)
CVS-HEAD correctly understands it. from peter-san.....

Regards,
Hiroshi Saito


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com