pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedodbc bug in convert.c
3+ messages / 2 participants
[nested] [flat]
* odbc bug in convert.c
@ 2004-07-16 10:50 Thomas Zehbe <tz@ingenion.de>
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Zehbe @ 2004-07-16 10:50 UTC (permalink / raw)
To: pgsql-odbc
Hello!
I just debugged convert.c because it crashed with a segmentation violation.
The driver version I use is "psqlodbc-07.03.0200" wich i compiled from scratch
with the only option "--with-iodbc". The config.log from ./configure is
attached.
My client system is a SUSE 9.0 LINUX distribution with a "2.4.21-99-athlon"
kernel connected to a PostgreSQL 7.3.4 Server.
This is the code (starting at line 1041, with HAVE_LOCAL_H defined) which
crashed:
<snip>
case SQL_C_FLOAT:
#ifdef HAVE_LOCALE_H
strcpy(saved_locale, setlocale(LC_ALL, NULL));
setlocale(LC_ALL, "C");
#endif /* HAVE_LOCALE_H */
len = 4;
if (bind_size > 0)
*((SFLOAT *) rgbValueBindRow) = (float) atof(neut_str);
else
*((SFLOAT *) rgbValue + bind_row) = (float) atof(neut_str);
#ifdef HAVE_LOCALE_H
setlocale(LC_ALL, saved_locale);
#endif /* HAVE_LOCALE_H */
break;
</snip>
The "strcpy(saved_locale, setlocale(LC_ALL, NULL));" wites 326 bytes to the
"saved_locale" target, wich is only 256 bytes long (defined at line 387).
This results in overwriting the contents of "bind_size", "rgbValueBindRow"
and "rgbValue" which leads to the sigseg.
Defining
char saved_locale[1024];
solved the problem.
BTW Many thanks for your work!
Best regards
Thomas Zehbe
INGENION GmbH
Luther Weg 50
31515 Wunstorf
Tel 05031-902042
Fax 05031-902049
www.ingenion.de
Attachments:
config.log (text/x-log, 21.8K) download
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by psqlodbc configure 07.03.0200, which was
generated by GNU Autoconf 2.57. Invocation command line was
$ ./configure --with-iodbc
## --------- ##
## Platform. ##
## --------- ##
hostname = marvin
uname -m = i686
uname -r = 2.4.21-99-athlon
uname -s = Linux
uname -v = #1 Wed Sep 24 13:34:32 UTC 2003
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /root/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /bin
PATH: /usr/games
PATH: /opt/gnome/bin
PATH: /opt/kde3/bin
PATH: /usr/openwin/bin
PATH: /usr/lib/java/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1500: checking for a BSD-compatible install
configure:1554: result: /usr/bin/install -c
configure:1565: checking whether build environment is sane
configure:1608: result: yes
configure:1641: checking for gawk
configure:1657: found /usr/bin/gawk
configure:1667: result: gawk
configure:1677: checking whether make sets $(MAKE)
configure:1697: result: yes
configure:1864: checking whether to enable maintainer-specific portions of Makefiles
configure:1873: result: no
configure:1967: checking for ODBC version number
configure:1998: result:
configure:2033: checking for style of include used by make
configure:2061: result: GNU
configure:2132: checking for gcc
configure:2148: found /usr/bin/gcc
configure:2158: result: gcc
configure:2402: checking for C compiler version
configure:2405: gcc --version </dev/null >&5
gcc (GCC) 3.3.1 (SuSE Linux)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2408: $? = 0
configure:2410: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)
configure:2413: $? = 0
configure:2415: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2418: $? = 1
configure:2442: checking for C compiler default output
configure:2445: gcc conftest.c >&5
configure:2448: $? = 0
configure:2494: result: a.out
configure:2499: checking whether the C compiler works
configure:2505: ./a.out
configure:2508: $? = 0
configure:2525: result: yes
configure:2532: checking whether we are cross compiling
configure:2534: result: no
configure:2537: checking for suffix of executables
configure:2539: gcc -o conftest conftest.c >&5
configure:2542: $? = 0
configure:2567: result:
configure:2573: checking for suffix of object files
configure:2595: gcc -c conftest.c >&5
configure:2598: $? = 0
configure:2620: result: o
configure:2624: checking whether we are using the GNU C compiler
configure:2649: gcc -c conftest.c >&5
configure:2652: $? = 0
configure:2655: test -s conftest.o
configure:2658: $? = 0
configure:2671: result: yes
configure:2677: checking whether gcc accepts -g
configure:2699: gcc -c -g conftest.c >&5
configure:2702: $? = 0
configure:2705: test -s conftest.o
configure:2708: $? = 0
configure:2719: result: yes
configure:2736: checking for gcc option to accept ANSI C
configure:2797: gcc -c -g -O2 conftest.c >&5
configure:2800: $? = 0
configure:2803: test -s conftest.o
configure:2806: $? = 0
configure:2824: result: none needed
configure:2842: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2845: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2956: checking dependency style of gcc
configure:3024: result: gcc3
configure:3046: checking for strtoll
configure:3096: gcc -o conftest -g -O2 conftest.c >&5
configure:3099: $? = 0
configure:3102: test -s conftest
configure:3105: $? = 0
configure:3116: result: yes
configure:3715: checking for gcc
configure:3741: result: gcc
configure:3985: checking for C compiler version
configure:3988: gcc --version </dev/null >&5
gcc (GCC) 3.3.1 (SuSE Linux)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3991: $? = 0
configure:3993: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)
configure:3996: $? = 0
configure:3998: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:4001: $? = 1
configure:4004: checking whether we are using the GNU C compiler
configure:4051: result: yes
configure:4057: checking whether gcc accepts -g
configure:4099: result: yes
configure:4116: checking for gcc option to accept ANSI C
configure:4204: result: none needed
configure:4222: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:4225: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:4336: checking dependency style of gcc
configure:4404: result: gcc3
configure:4496: checking build system type
configure:4514: result: i686-pc-linux-gnu
configure:4522: checking host system type
configure:4536: result: i686-pc-linux-gnu
configure:4566: checking for ld used by GCC
configure:4629: result: /usr/i586-suse-linux/bin/ld
configure:4638: checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld
GNU ld version 2.14.90.0.5 20030722 (SuSE Linux)
configure:4650: result: yes
configure:4655: checking for /usr/i586-suse-linux/bin/ld option to reload object files
configure:4662: result: -r
configure:4667: checking for BSD-compatible nm
configure:4703: result: /usr/bin/nm -B
configure:4706: checking for a sed that does not truncate output
configure:4788: result: /usr/bin/sed
configure:4791: checking whether ln -s works
configure:4795: result: yes
configure:4802: checking how to recognise dependent libraries
configure:4983: result: pass_all
configure:4995: checking command to parse /usr/bin/nm -B output
configure:5079: gcc -c -g -O2 conftest.c >&5
configure:5082: $? = 0
configure:5086: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' \> conftest.nm
configure:5089: $? = 0
configure:5141: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
configure:5144: $? = 0
configure:5188: result: ok
configure:5197: checking how to run the C preprocessor
configure:5233: gcc -E conftest.c
configure:5239: $? = 0
configure:5271: gcc -E conftest.c
configure:5275:28: ac_nonexistent.h: No such file or directory
configure:5277: $? = 1
configure: failed program was:
| #line 5262 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "psqlodbc"
| #define PACKAGE_TARNAME "psqlodbc"
| #define PACKAGE_VERSION "07.03.0200"
| #define PACKAGE_STRING "psqlodbc 07.03.0200"
| #define PACKAGE_BUGREPORT "pgsql-odbc@postgresql.org"
| #define PACKAGE "psqlodbc"
| #define VERSION "07.03.0200"
| #define DRIVER_CURSOR_IMPLEMENT 1
| #define WITH_IODBC 1
| #define HAVE_STRTOLL 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:5315: result: gcc -E
configure:5340: gcc -E conftest.c
configure:5346: $? = 0
configure:5378: gcc -E conftest.c
configure:5382:28: ac_nonexistent.h: No such file or directory
configure:5384: $? = 1
configure: failed program was:
| #line 5369 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "psqlodbc"
| #define PACKAGE_TARNAME "psqlodbc"
| #define PACKAGE_VERSION "07.03.0200"
| #define PACKAGE_STRING "psqlodbc 07.03.0200"
| #define PACKAGE_BUGREPORT "pgsql-odbc@postgresql.org"
| #define PACKAGE "psqlodbc"
| #define VERSION "07.03.0200"
| #define DRIVER_CURSOR_IMPLEMENT 1
| #define WITH_IODBC 1
| #define HAVE_STRTOLL 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:5427: checking for egrep
configure:5437: result: grep -E
configure:5442: checking for ANSI C header files
configure:5468: gcc -c -g -O2 conftest.c >&5
configure:5471: $? = 0
configure:5474: test -s conftest.o
configure:5477: $? = 0
configure:5566: gcc -o conftest -g -O2 conftest.c >&5
configure:5569: $? = 0
configure:5571: ./conftest
configure:5574: $? = 0
configure:5589: result: yes
configure:5613: checking for sys/types.h
configure:5630: gcc -c -g -O2 conftest.c >&5
configure:5633: $? = 0
configure:5636: test -s conftest.o
configure:5639: $? = 0
configure:5650: result: yes
configure:5613: checking for sys/stat.h
configure:5630: gcc -c -g -O2 conftest.c >&5
configure:5633: $? = 0
configure:5636: test -s conftest.o
configure:5639: $? = 0
configure:5650: result: yes
configure:5613: checking for stdlib.h
configure:5630: gcc -c -g -O2 conftest.c >&5
configure:5633: $? = 0
configure:5636: test -s conftest.o
configure:5639: $? = 0
configure:5650: result: yes
configure:5613: checking for string.h
configure:5630: gcc -c -g -O2 conftest.c >&5
configure:5633: $? = 0
configure:5636: test -s conftest.o
configure:5639: $? = 0
configure:5650: result: yes
configure:5613: checking for memory.h
configure:5630: gcc -c -g -O2 conftest.c >&5
configure:5633: $? = 0
configure:5636: test -s conftest.o
configure:5639: $? = 0
configure:5650: result: yes
configure:5613: checking for strings.h
configure:5630: gcc -c -g -O2 conftest.c >&5
configure:5633: $? = 0
configure:5636: test -s conftest.o
configure:5639: $? = 0
configure:5650: result: yes
configure:5613: checking for inttypes.h
configure:5630: gcc -c -g -O2 conftest.c >&5
configure:5633: $? = 0
configure:5636: test -s conftest.o
configure:5639: $? = 0
configure:5650: result: yes
configure:5613: checking for stdint.h
configure:5630: gcc -c -g -O2 conftest.c >&5
configure:5633: $? = 0
configure:5636: test -s conftest.o
configure:5639: $? = 0
configure:5650: result: yes
configure:5613: checking for unistd.h
configure:5630: gcc -c -g -O2 conftest.c >&5
configure:5633: $? = 0
configure:5636: test -s conftest.o
configure:5639: $? = 0
configure:5650: result: yes
configure:5676: checking dlfcn.h usability
configure:5689: gcc -c -g -O2 conftest.c >&5
configure:5692: $? = 0
configure:5695: test -s conftest.o
configure:5698: $? = 0
configure:5708: result: yes
configure:5712: checking dlfcn.h presence
configure:5723: gcc -E conftest.c
configure:5729: $? = 0
configure:5748: result: yes
configure:5784: checking for dlfcn.h
configure:5791: result: yes
configure:5989: checking for ranlib
configure:6005: found /usr/bin/ranlib
configure:6016: result: ranlib
configure:6069: checking for strip
configure:6085: found /usr/bin/strip
configure:6096: result: strip
configure:6306: checking for objdir
configure:6317: result: .libs
configure:6334: checking for gcc option to produce PIC
configure:6480: result: -fPIC
configure:6484: checking if gcc PIC flag -fPIC works
configure:6508: gcc -c -g -O2 -fPIC -DPIC conftest.c >&5
configure:6511: $? = 0
configure:6514: test -s conftest.o
configure:6517: $? = 0
configure:6555: result: yes
configure:6571: checking if gcc static flag -static works
configure:6596: gcc -o conftest -g -O2 -static conftest.c >&5
configure:6599: $? = 0
configure:6602: test -s conftest
configure:6605: $? = 0
configure:6621: result: yes
configure:6633: checking if gcc supports -c -o file.o
configure:6656: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
configure:6677: result: yes
configure:6682: checking if gcc supports -c -o file.lo
configure:6710: gcc -c -g -O2 -c -o conftest.lo conftest.c >&5
configure:6713: $? = 0
configure:6716: test -s conftest.lo
configure:6719: $? = 0
configure:6741: result: yes
configure:6772: checking if gcc supports -fno-rtti -fno-exceptions
configure:6795: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c >&5
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
configure:6798: $? = 0
configure:6801: test -s conftest.o
configure:6804: $? = 0
configure:6821: result: yes
configure:6832: checking whether the linker (/usr/i586-suse-linux/bin/ld) supports shared libraries
configure:7527: result: yes
configure:7532: checking how to hardcode library paths into programs
configure:7556: result: immediate
configure:7561: checking whether stripping libraries is possible
configure:7566: result: yes
configure:7577: checking dynamic linker characteristics
configure:7984: result: GNU/Linux ld.so
configure:7989: checking if libtool supports shared libraries
configure:7991: result: yes
configure:7994: checking whether to build shared libraries
configure:8015: result: yes
configure:8018: checking whether to build static libraries
configure:8022: result: no
configure:8696: checking whether -lc should be explicitly linked in
configure:8704: gcc -c -g -O2 conftest.c >&5
configure:8707: $? = 0
configure:8721: gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1
configure:8724: $? = 0
configure:8737: result: no
configure:9325: checking locale.h usability
configure:9338: gcc -c -g -O2 conftest.c >&5
configure:9341: $? = 0
configure:9344: test -s conftest.o
configure:9347: $? = 0
configure:9357: result: yes
configure:9361: checking locale.h presence
configure:9372: gcc -E conftest.c
configure:9378: $? = 0
configure:9397: result: yes
configure:9433: checking for locale.h
configure:9440: result: yes
configure:9453: checking for uint8
configure:9478: gcc -c -g -O2 conftest.c >&5
configure: In function `main':
configure:9520: error: `uint8' undeclared (first use in this function)
configure:9520: error: (Each undeclared identifier is reported only once
configure:9520: error: for each function it appears in.)
configure:9520: error: parse error before ')' token
configure:9481: $? = 1
configure: failed program was:
| #line 9458 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "psqlodbc"
| #define PACKAGE_TARNAME "psqlodbc"
| #define PACKAGE_VERSION "07.03.0200"
| #define PACKAGE_STRING "psqlodbc 07.03.0200"
| #define PACKAGE_BUGREPORT "pgsql-odbc@postgresql.org"
| #define PACKAGE "psqlodbc"
| #define VERSION "07.03.0200"
| #define DRIVER_CURSOR_IMPLEMENT 1
| #define WITH_IODBC 1
| #define HAVE_STRTOLL 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_LOCALE_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| if ((uint8 *) 0)
| return 0;
| if (sizeof (uint8))
| return 0;
| ;
| return 0;
| }
configure:9498: result: no
configure:9509: checking for int timezone
configure:9532: gcc -o conftest -g -O2 conftest.c >&5
configure:9535: $? = 0
configure:9538: test -s conftest
configure:9541: $? = 0
configure:9552: result: yes
configure:9701: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by psqlodbc config.status 07.03.0200, which was
generated by GNU Autoconf 2.57. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on marvin
config.status:673: creating Makefile
config.status:777: creating config.h
config.status:1016: executing depfiles commands
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_func_strtoll=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_locale_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep='grep -E'
ac_cv_prog_make_make_set=yes
ac_cv_type_uint8=no
am_cv_CC_dependencies_compiler_type=gcc3
lt_cv_archive_cmds_need_lc=no
lt_cv_compiler_c_o=yes
lt_cv_compiler_o_lo=yes
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file='/lib/libc.so.6 /lib/libc-*.so'
lt_cv_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\'''
lt_cv_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern char \1;/p'\'''
lt_cv_ld_reload_flag=-r
lt_cv_path_LD=/usr/i586-suse-linux/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_SED=/usr/bin/sed
lt_cv_prog_cc_can_build_shared=yes
lt_cv_prog_cc_no_builtin=
lt_cv_prog_cc_pic=' -fPIC'
lt_cv_prog_cc_pic_works=yes
lt_cv_prog_cc_shlib=
lt_cv_prog_cc_static=-static
lt_cv_prog_cc_static_works=yes
lt_cv_prog_cc_wl=-Wl,
lt_cv_prog_gnu_ld=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p'\'''
pgac_cv_var_int_timezone=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /opt/psqlodbc-07.03.0200/missing --run aclocal-1.7'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /opt/psqlodbc-07.03.0200/missing --run tar'
AUTOCONF='${SHELL} /opt/psqlodbc-07.03.0200/missing --run autoconf'
AUTOHEADER='${SHELL} /opt/psqlodbc-07.03.0200/missing --run autoheader'
AUTOMAKE='${SHELL} /opt/psqlodbc-07.03.0200/missing --run automake-1.7'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /opt/psqlodbc-07.03.0200/missing --run makeinfo'
OBJEXT='o'
PACKAGE='psqlodbc'
PACKAGE_BUGREPORT='pgsql-odbc@postgresql.org'
PACKAGE_NAME='psqlodbc'
PACKAGE_STRING='psqlodbc 07.03.0200'
PACKAGE_TARNAME='psqlodbc'
PACKAGE_VERSION='07.03.0200'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='07.03.0200'
ac_ct_CC='gcc'
ac_ct_RANLIB='ranlib'
ac_ct_STRIP='strip'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='${prefix}'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/opt/psqlodbc-07.03.0200/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
odbcinst_ini_dir='${sysconfdir}'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
with_iodbc_FALSE='#'
with_iodbc_TRUE=''
with_unixodbc_FALSE=''
with_unixodbc_TRUE='#'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define DRIVER_CURSOR_IMPLEMENT 1
#define HAVE_DLFCN_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_INT_TIMEZONE
#define HAVE_LOCALE_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_STRTOLL 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE "psqlodbc"
#define PACKAGE_BUGREPORT "pgsql-odbc@postgresql.org"
#define PACKAGE_NAME "psqlodbc"
#define PACKAGE_STRING "psqlodbc 07.03.0200"
#define PACKAGE_TARNAME "psqlodbc"
#define PACKAGE_VERSION "07.03.0200"
#define STDC_HEADERS 1
#define VERSION "07.03.0200"
#define WITH_IODBC 1
configure: exit 0
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: odbc bug in convert.c
@ 2004-07-16 20:38 Peter Eisentraut <peter_e@gmx.net>
parent: Thomas Zehbe <tz@ingenion.de>
1 sibling, 0 replies; 3+ messages in thread
From: Peter Eisentraut @ 2004-07-16 20:38 UTC (permalink / raw)
To: tz@ingenion.de; pgsql-odbc
Thomas Zehbe wrote:
> The "strcpy(saved_locale, setlocale(LC_ALL, NULL));" wites 326 bytes
> to the "saved_locale" target, wich is only 256 bytes long (defined at
> line 387).
How is it possible for a locale name to be 326 bytes long? What is the
actual value that is copied?
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: odbc bug in convert.c
@ 2004-07-20 08:31 Peter Eisentraut <peter_e@gmx.net>
parent: Thomas Zehbe <tz@ingenion.de>
1 sibling, 0 replies; 3+ messages in thread
From: Peter Eisentraut @ 2004-07-20 08:31 UTC (permalink / raw)
To: tz@ingenion.de; pgsql-odbc
Thomas Zehbe wrote:
> This is the code (starting at line 1041, with HAVE_LOCAL_H defined)
> which crashed:
> <snip>
> case SQL_C_FLOAT:
> #ifdef HAVE_LOCALE_H
> strcpy(saved_locale, setlocale(LC_ALL, NULL));
> setlocale(LC_ALL, "C");
> #endif /* HAVE_LOCALE_H */
I've changed this to do dynamic allocation. Please try again with CVS
tip.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2004-07-20 08:31 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-07-16 10:50 odbc bug in convert.c Thomas Zehbe <tz@ingenion.de>
2004-07-16 20:38 ` Peter Eisentraut <peter_e@gmx.net>
2004-07-20 08:31 ` Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox