Re: [Cppcms-users] Some build questions
Brought to you by:
artyom-beilis
From: Stanimir M. <sta...@zo...> - 2009-02-06 15:20:29
|
Note that it is a clean Ubuntu 8.10 with all last automatic updates. Then followed all your instructions to install the dependencies and build steps. The requested outputs are included bellow. On Fri, Feb 6, 2009 at 4:54 PM, Artyom <art...@ya...> wrote: > > Hello, > >> The good news is that the dependencies in the documentation >> were very >> helpful to me, because i am a new comer to the Linux world >> (Ubuntu >> 8.10). After running the specified commands up to the >> "make" >> everything was fine. During the "make" unresolved >> reference for strcmp >> error was fixed by adding #include <string.h> in the >> global_config.h >> and then the same error for rand_r with #include >> <cstdlib> to the >> encryptor.cpp. Hope this is the right way? It could be >> wrong because i >> am not aware of the details using autotools yet. > > Thanks, > > Yes you absolutly right, I hadn't tested CppCMS with gcc-4.3 recently > and it is much more restrictive. > > I have just fixed this in SVN trunk. > > >> The last error which bothered me is a link problem: >> >> libtool: link: g++ -Wall -I./transtext -g -O2 -o >> .libs/hello_world.fcgi hello_world_fcgi-hello_world.o >> hello_world_fcgi-hello_world_view1.o >> hello_world_fcgi-hello_world_view2.o ./.libs/libcppcms.so >> -lboost_signals -lboost_iostreams -lboost_regex -ldl >> /usr/lib/libcgicc.so /lib/libgcrypt.so >> /usr/lib/libfcgi++.so >> /usr/lib/libfcgi.so -lnsl /usr/lib/libmm.so >> /work/cppcms/transtext/.libs/libcppcmstranstext.so >> transtext/.libs/libcppcmstranstext.so >> ./.libs/libcppcms.so: undefined reference to >> `sqlite3_column_blob' >> > > That is strange. > > Can you give me the tail of configure test. What is recognized > and what isn't. > user@ubuntu:/work/cppcms$ sudo ./configure [sudo] password for user: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... (cached) yes checking whether g++ accepts -g... (cached) yes checking dependency style of g++... (cached) gcc3 checking how to run the C++ preprocessor... g++ -E checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for library containing pthread_sigmask... -lpthread Check: process shared mutex... ok checking for main in -lmm... yes checking for main in -lfcgi++... yes checking for main in -lgcrypt... yes checking for sqlite3_open in -lsqlite3... yes C++0x auto... not supported C++0x decltype... not supported g++ typeof... ok Useful BOOST_TYPEOF... ok checking fastcgi/fcgiapp.h usability... no checking fastcgi/fcgiapp.h presence... no checking for fastcgi/fcgiapp.h ... no checking asio.hpp usability... no checking asio.hpp presence... no checking for asio.hpp... no checking boost/asio.hpp usability... yes checking boost/asio.hpp presence... yes checking for boost/asio.hpp... yes checking for main in -lboost_system... yes checking for main in -lcgicc... yes checking for dlopen in -ldl... yes checking for library containing socket... none required checking for library containing gethostbyname... none required checking for main in -lboost_regex... yes checking for main in -lboost_iostreams... yes checking for main in -lboost_signals... yes configure: creating ./config.status config.status: creating Makefile config.status: creating transtext/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands > At first point, in order to continue you may just > reconfigure it with --disable-sqlite > > ./configure --disable-sqlite > > > In order to solve the problem: > > Can you tell what sqlite packages are installed (output of): > > dpkg -l '*sqlite*' > user@ubuntu:/work/cppcms$ dpkg -l '*sqlite*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ un libdbd-sqlite <none> (no description available) ii libmono-sqlite 1.9.1+dfsg-4ub Mono Sqlite library ii libsqlite0 2.8.17-4build1 SQLite shared library ii libsqlite3-0 3.5.9-3 SQLite 3 shared library ii libsqlite3-dev 3.5.9-3 SQLite 3 development files un python-pysqlit <none> (no description available) ii sqlite 2.8.17-4build1 command line interface for SQLite un sqlite-doc <none> (no description available) ii sqlite3 3.5.9-3 A command line interface for SQLite 3 un sqlite3-doc <none> (no description available) > Including versions. > > Can you provide output of > > ldd .libs/libcppcms.so > user@ubuntu:/work/cppcms$ ldd .libs/libcppcms.so linux-gate.so.1 => (0xb7f87000) libboost_signals.so.1.35.0 => /usr/lib/libboost_signals.so.1.35.0 (0xb7e9f000) libboost_iostreams.so.1.35.0 => /usr/lib/libboost_iostreams.so.1.35.0 (0xb7e93000) libboost_regex.so.1.35.0 => /usr/lib/libboost_regex.so.1.35.0 (0xb7df2000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7dee000) libcgicc.so.5 => /usr/lib/libcgicc.so.5 (0xb7dc8000) libgcrypt.so.11 => /lib/libgcrypt.so.11 (0xb7d5f000) libfcgi++.so.0 => /usr/lib/libfcgi++.so.0 (0xb7d5a000) libfcgi.so.0 => /usr/lib/libfcgi.so.0 (0xb7d51000) libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7d37000) libmm.so.14 => /usr/lib/libmm.so.14 (0xb7d32000) libcppcmstranstext.so.0 => /work/cppcms/transtext/.libs/libcppcmstranstext.so.0 (0xb7d1d000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7c2f000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7c09000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7aab000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7a9b000) libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb7a8a000) libz.so.1 => /usr/lib/libz.so.1 (0xb7a74000) libicudata.so.38 => /usr/lib/libicudata.so.38 (0xb6f9d000) libicui18n.so.38 => /usr/lib/libicui18n.so.38 (0xb6e46000) libicuuc.so.38 => /usr/lib/libicuuc.so.38 (0xb6d1d000) /lib/ld-linux.so.2 (0xb7f88000) libgpg-error.so.0 => /lib/libgpg-error.so.0 (0xb6d19000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb6d00000) user@ubuntu:/work/cppcms$ > Thanks, > Artyom > > > > > > Greetings, Stanimir |