Hi,
thanks for the report. Its no serious problem:
src/cmake/SociUtilities.cmake:299
math(EXPR padding_len 35-${varlen})
The padding (35) here is to small for the
SOCI_POSTGRESQL_TEST_POSTGRESQL1_CONNSTR string of length 40
increase it to 40 or higher to fix the problem (or wait until a solution
gets checked in)
Best Regards,
Julian Taylor
On Sun, Nov 14, 2010 at 6:07 PM, Markus Mahlberg <[email protected]
> wrote:
> Hello List.
>
> When trying to configure ec19564b2f0994b3960acf891643d92fc224b453 with
> MacPort's PostgreSQL 8.4 using
>
> > cmake -DPOSTGRESQL_INCLUDE_DIR=/opt/local/include/postgresql84/
> -DPOSTGRESQL_LIBRARIES=/opt/local/lib/postgresql84/ -DPOSTGRESQL=ON
> -DSOCI_ODBC=OFF -DSOCI_ORACLE=OFF -DSOCI_MYSQL=OFF src/
>
>
> the output indicates an error:
>
> > -- The C compiler identification is GNU
> > -- The CXX compiler identification is GNU
> > -- Checking whether C compiler has -isysroot
> > -- Checking whether C compiler has -isysroot - yes
> > -- Checking whether C compiler supports OSX deployment target flag
> > -- Checking whether C compiler supports OSX deployment target flag - yes
> > -- Check for working C compiler: /usr/bin/gcc
> > -- Check for working C compiler: /usr/bin/gcc -- works
> > -- Detecting C compiler ABI info
> > -- Detecting C compiler ABI info - done
> > -- Checking whether CXX compiler has -isysroot
> > -- Checking whether CXX compiler has -isysroot - yes
> > -- Checking whether CXX compiler supports OSX deployment target flag
> > -- Checking whether CXX compiler supports OSX deployment target flag -
> yes
> > -- Check for working CXX compiler: /usr/bin/c++
> > -- Check for working CXX compiler: /usr/bin/c++ -- works
> > -- Detecting CXX compiler ABI info
> > -- Detecting CXX compiler ABI info - done
> > --
> > -- Configuring SOCI:
> > --
> > -- SOCI_VERSION = 3.1.0
> > -- SOCI_ABI_VERSION = 3.1.0
> > -- SOCI_TESTS = ON
> > --
> > -- Looking for SOCI dependencies:
> > --
> > -- Boost:
> > -- Boost_RELEASE_VERSION = 1.44.0
> > -- Boost_INCLUDE_DIR = /opt/local/include
> > -- Boost_LIBRARIES =
> /opt/local/lib/libboost_date_time-mt.dylib
> > --
> > -- MySQL:
> > -- WARNING:
> > -- MySQL not found, some libraries or features will be disabled.
> > -- See the documentation for MySQL or manually set these variables:
> > -- MYSQL_INCLUDE_DIR = MYSQL_INCLUDE_DIR-NOTFOUND
> > -- MYSQL_LIBRARIES = MYSQL_LIBRARY-NOTFOUND
> > --
> > -- ODBC:
> > -- ODBC_INCLUDE_DIRECTORIES = /usr/include
> > -- ODBC_LIBRARIES = /usr/lib/libiodbc.dylib
> > --
> > -- Oracle:
> > -- WARNING:
> > -- Oracle not found, some libraries or features will be disabled.
> > -- See the documentation for Oracle or manually set these variables:
> > -- ORACLE_INCLUDE_DIR =
> > -- ORACLE_LIBRARIES =
> > --
> > -- PostgreSQL:
> > -- POSTGRESQL_INCLUDE_DIR = /opt/local/include/postgresql84
> > -- POSTGRESQL_LIBRARIES = /opt/local/lib/postgresql84
> > -- POSTGRESQL_VERSION = unknown
> > --
> > -- SQLite3:
> > -- SQLITE3_INCLUDE_DIR = /usr/include
> > -- SQLITE3_LIBRARIES = /usr/lib/libsqlite3.dylib
> > --
> > -- Doxygen:
> > -- WARNING:
> > -- Doxygen not found, some libraries or features will be disabled.
> > -- See the documentation for Doxygen or manually set these variables:
> > -- DOXYGEN_EXECUTABLE = DOXYGEN_EXECUTABLE-NOTFOUND
> > -- DOXYGEN_DOT_EXECUTABLE = DOXYGEN_DOT_EXECUTABLE-NOTFOUND
> > --
> > -- Configuring SOCI core library:
> > --
> > -- SOCI_CORE_TARGET = soci_core
> > -- SOCI_CORE_TARGET_OUTPUT_NAME = soci_core
> > -- SOCI_CORE_DEPENDENCIES = /usr/lib/libdl.dylib
> /opt/local/lib/libboost_date_time-mt.dylib
> > -- WITH_BOOST = ON
> > -- COMPILE_DEFINITIONS = SOCI_ABI_VERSION=3.1.0 HAVE_DL=1
> HAVE_BOOST=1 HAVE_BOOST_DATE_TIME=1
> > --
> > -- Configuring SOCI database backends:
> > --
> > -- Empty - SOCI backend skeleton for development of new backends
> > -- SOCI_EMPTY = ON
> > -- SOCI_EMPTY_TARGET = soci_empty
> > -- SOCI_EMPTY_TARGET_OUTPUT_NAME = soci_empty
> > -- SOCI_EMPTY_HEADERS = soci-empty.h
> > -- COMPILE_DEFINITIONS = SOCI_ABI_VERSION=3.1.0
> HAVE_BOOST=1
> > -- SOCI_EMPTY_TEST_UNIT1_CONNSTR = dummy
> > --
> > -- MySQL - SOCI backend for MySQL database engine
> > -- WARNING:
> > -- Some required dependencies of MySQL backend not found:
> > -- MySQL
> > -- Skipping
> > -- SOCI_MYSQL = OFF
> > --
> > -- ODBC - SOCI backend for ODBC
> > -- ODBC backend disabled, since
> > -- SOCI_ODBC = OFF
> > --
> > -- Oracle - SOCI backend for Oracle 10+
> > -- WARNING:
> > -- Some required dependencies of Oracle backend not found:
> > -- Oracle
> > -- Skipping
> > -- SOCI_ORACLE = OFF
> > --
> > -- PostgreSQL - SOCI backend for PostgreSQL database engine
> > -- SOCI_POSTGRESQL = ON
> > -- SOCI_POSTGRESQL_TARGET = soci_postgresql
> > -- SOCI_POSTGRESQL_TARGET_OUTPUT_NAME = soci_postgresql
> > -- SOCI_POSTGRESQL_HEADERS = soci-postgresql.h common.h
> > -- COMPILE_DEFINITIONS = SOCI_ABI_VERSION=3.1.0
> HAVE_BOOST=1 HAVE_POSTGRESQL=1
> > CMake Error at cmake/SociUtilities.cmake:299 (string):
> > string end index: -5 is out of range 0 - 38
> > Call Stack (most recent call first):
> > cmake/SociBackend.cmake:223 (boost_report_value)
> > backends/postgresql/test/CMakeLists.txt:1 (soci_backend_test)
> >
> >
> > --
> > -- SQLite3 - SOCI backend for SQLite 3 database engine
> > -- SOCI_SQLITE3 = ON
> > -- SOCI_SQLITE3_TARGET = soci_sqlite3
> > -- SOCI_SQLITE3_TARGET_OUTPUT_NAME = soci_sqlite3
> > -- SOCI_SQLITE3_HEADERS = soci-sqlite3.h common.h
> > -- COMPILE_DEFINITIONS = SOCI_ABI_VERSION=3.1.0
> HAVE_BOOST=1 HAVE_SQLITE3=1
> > -- SOCI_SQLITE3_TEST_UNIT1_CONNSTR = soci_test.db
> > --
> > -- Configuring incomplete, errors occurred!
>
> The same error occurs when I define POSTGRESQL_VERSION="8.4.5".
>
> Am I doing something wrong or shall I file a ticket?
>
> BTW: I ran into that error during creating a Port, noticing that 3.0.0 is
> totally outdated.
>
>
> Kind regards,
>
> Markus
>
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> Soci-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/soci-users
>
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users