[ls-support] Problems with AMD64 build on Ubuntu.
  • I'm having some trouble getting the livesupport/campcaster code to build on
    an AMD64 ubuntu box (a dual core Opteron running "dapper").

    Has anyone had any luck with this? Any hints about how you did it?

    I've tried the instructions over here:

    http://code.campware.org/projects/livesupport/wiki/DevelopmentEnvironment

    Currently the build ("./bin/setupDevelopmentEnvironment.sh --apache-group=www-data") crashes like so:

    make[4]: Entering directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404/src'
    if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT statement.lo -MD -MP -MF ".deps/statement.Tpo" \
    -c -o statement.lo `test -f 'statement.cpp' || echo './'`statement.cpp; \
    then mv -f ".deps/statement.Tpo" ".deps/statement.Plo"; \
    else rm -f ".deps/statement.Tpo"; exit 1; \
    fi
    g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT statement.lo -MD -MP -MF .deps/statement.Tpo -c statement.cpp -fPIC -DPIC -o .libs/statement.o
    statement.cpp: In member function 'int odbc::Statement::getUpdateCount()':
    statement.cpp:676: error: cannot convert 'SQLINTEGER*' to 'SQLLEN*' for argument '2' to 'SQLRETURN SQLRowCount(void*, SQLLEN*)'
    make[4]: *** [statement.lo] Error 1
    make[4]: Leaving directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404/src'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404'
    make[1]: *** [tmp/all.stamp] Error 2
    make[1]: Leaving directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1/src/tools/libodbc++/libodbc++-0.2.3-20050404'
    make: *** [tmp/tools_setup.stamp] Error 2
    make: Leaving directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1'



    _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support
  • 6 Comments sorted by
  • Please check that you are using the latest sources. This bug has
    already been reported here:
    http://code.campware.org/projects/campcaster/ticket/1834
    and it has been fixed. If you are absolutely sure that you are using
    the latest version, please open a new ticket here:
    http://code.campware.org/projects/campcaster/newticket
    and upload the _complete_ output of the setupDevelopmentEnvironment.sh
    script as an attachment to it. To open a ticket, you need to log in as
    "guest", with password "campware".

    Ferenc

    Joe Brenner wrote:
    > I'm having some trouble getting the livesupport/campcaster code to build on
    > an AMD64 ubuntu box (a dual core Opteron running "dapper").
    >
    > Has anyone had any luck with this? Any hints about how you did it?
    >
    > I've tried the instructions over here:
    >
    > http://code.campware.org/projects/livesupport/wiki/DevelopmentEnvironment
    >
    > Currently the build ("./bin/setupDevelopmentEnvironment.sh --apache-group=www-data") crashes like so:

    _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support
  • Joe Brenner wrote:

    > I'm having some trouble getting the livesupport/campcaster code to build on
    > an AMD64 ubuntu box (a dual core Opteron running "dapper").
    >
    > Has anyone had any luck with this? Any hints about how you did it?
    >
    > I've tried the instructions over here:
    >
    > http://code.campware.org/projects/livesupport/wiki/DevelopmentEnvironment

    Ah, but I forgot to mention that rather than working with the trunk version of
    the code, I've been using the tar balls for the "1.1b1" release:

    livesupport-1.1b1.tar.bz2
    livesupport-libraries-1.1b1.tar.bz2

    Is there any reason to think I might have better luck with an svn build?


    > Currently the build ("./bin/setupDevelopmentEnvironment.sh --apache-group=www-data") crashes
    > like so:
    >
    > make[4]: Entering directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404/src'
    > if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT statement.lo -MD -MP -MF ".deps/statement.Tpo" \
    > -c -o statement.lo `test -f 'statement.cpp' || echo './'`statement.cpp; \
    > then mv -f ".deps/statement.Tpo" ".deps/statement.Plo"; \
    > else rm -f ".deps/statement.Tpo"; exit 1; \
    > fi
    > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT statement.lo -MD -MP -MF .deps/statement.Tpo -c statement.cpp -fPIC -DPIC -o .libs/statement.o
    > statement.cpp: In member function 'int odbc::Statement::getUpdateCount()':
    > statement.cpp:676: error: cannot convert 'SQLINTEGER*' to 'SQLLEN*' for argument '2' to 'SQLRETURN SQLRowCount(void*, SQLLEN*)'
    > make[4]: *** [statement.lo] Error 1
    > make[4]: Leaving directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404/src'
    > make[3]: *** [all-recursive] Error 1
    > make[3]: Leaving directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404'
    > make[2]: *** [all] Error 2
    > make[2]: Leaving directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404'
    > make[1]: *** [tmp/all.stamp] Error 2
    > make[1]: Leaving directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1/src/tools/libodbc++/libodbc++-0.2.3-20050404'
    > make: *** [tmp/tools_setup.stamp] Error 2
    > make: Leaving directory `/home/doom/End/Sys/Campcaster/livesupport-1.1b1'
    _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support
  • Joe Brenner wrote:
    > Ah, but I forgot to mention that rather than working with the trunk version of
    > the code, I've been using the tar balls for the "1.1b1" release:
    >
    > livesupport-1.1b1.tar.bz2
    > livesupport-libraries-1.1b1.tar.bz2
    >
    > Is there any reason to think I might have better luck with an svn build?

    Yes: 1.1b1 is based on revision 2274; this bug was fixed in revision 2316.

    Ferenc

    http://code.campware.org/projects/campcaster/log/tags/livesupport-1.1b1
    http://code.campware.org/projects/campcaster/changeset/2316
    _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support
  • Ferenc Gerlits wrote:

    > Joe Brenner wrote:

    > > Ah, but I forgot to mention that rather than working with the trunk
    > > version of the code, I've been using the tar balls for the "1.1b1"
    > > release:

    > > livesupport-1.1b1.tar.bz2
    > > livesupport-libraries-1.1b1.tar.bz2

    > > Is there any reason to think I might have better luck with an svn build?

    > Yes: 1.1b1 is based on revision 2274; this bug was fixed in revision 2316.

    Cool, simple enough. Thanks much.

    _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support
  • Joe Brenner wrote:

    > Ferenc Gerlits wrote:
    >
    > > Joe Brenner wrote:
    >
    > > > Ah, but I forgot to mention that rather than working with the trunk
    > > > version of the code, I've been using the tar balls for the "1.1b1"
    > > > release:
    >
    > > > livesupport-1.1b1.tar.bz2
    > > > livesupport-libraries-1.1b1.tar.bz2
    >
    > > > Is there any reason to think I might have better luck with an svn build?
    >
    > > Yes: 1.1b1 is based on revision 2274; this bug was fixed in revision 2316.
    >
    > Cool, simple enough. Thanks much.
    >

    I'm afraid that using the trunk code out of svn didn't get me much
    farther. Any other ideas?

    At present, the build is dying for me like so:


    g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT callablestatement.lo -MD -MP -MF .deps/callablestatement.Tpo -c callablestatement.cpp -fPIC -DPIC -o .libs/callablestatement.o
    if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT resultset.lo -MD -MP -MF ".deps/resultset.Tpo" \
    -c -o resultset.lo `test -f 'resultset.cpp' || echo './'`resultset.cpp; \
    then mv -f ".deps/resultset.Tpo" ".deps/resultset.Plo"; \
    else rm -f ".deps/resultset.Tpo"; exit 1; \
    fi
    g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT resultset.lo -MD -MP -MF .deps/resultset.Tpo -c resultset.cpp -fPIC -DPIC -o .libs/resultset.o
    resultset.cpp: In member function 'std::istream* odbc::ResultSet::getAsciiStream(int)':
    resultset.cpp:1337: error: no matching function for call to 'odbc::DataStream::DataStream(odbc::ResultSet* const, void*&, int&, int, long int&)'
    datastream.h:105: note: candidates are: odbc::DataStream::DataStream(odbc::ErrorHandler*, void*, int, int, SQLINTEGER&)
    datastream.h:99: note: odbc::DataStream::DataStream(const odbc::DataStream&)
    make[4]: *** [resultset.lo] Error 1
    make[4]: Leaving directory `/home/doom/End/Sys/Campcaster/caca-120406/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404/src'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/doom/End/Sys/Campcaster/caca-120406/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/doom/End/Sys/Campcaster/caca-120406/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404'
    make[1]: *** [tmp/all.stamp] Error 2
    make[1]: Leaving directory `/home/doom/End/Sys/Campcaster/caca-120406/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404'
    make: *** [tmp/tools_setup.stamp] Error 2
    make: Leaving directory `/home/doom/End/Sys/Campcaster/caca-120406/campcaster'

    _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support
  • Thank you. The bug has been filed as
    http://code.campware.org/projects/campcaster/ticket/2077

    Please check back periodically to see when it gets fixed.

    Ferenc
    _______________________________________________
    ls-support mailing list
    ls-support@lists.campware.org
    http://lists.campware.org/mailman/listinfo/ls-support