2010/4/13 Mateusz Loskot <[email protected]>

> Sergey Nikulov wrote:
> > Hi Mateusz,
> >
> > I trying to build latest master branch of soci git repository on my
> > Fedora 12 box (g++ (GCC) 4.4.3 20100127 (Red Hat 4.4.3-4)) and have some
> > issues.
>
> Hi Sergey,
>
> Thanks for testing the CMake build.
> I have moved to new place and I'm still waiting for broadband,
> so I could not complete the CMake works. I hope to do it within next days.
>
> > 1) FindOracle.cmake explicitly required ORACLE_HOME environment
> > variable. I think it should be less restrictive (I've attached patch as
> > example) and not produce fatal error.
>
> Sure, I have no problem with making it less restrictive. I will test
> your patch and apply.
>
> > 2) Linking error:
> > [ser...@fedya build]$ make
> > Linking CXX shared library ../lib/libsoci_core.so
> > [ 40%] Built target soci_core
> >
> > [ 81%] Built target soci_core-static
> > [ 84%] Building CXX object
> > backends/empty/test/CMakeFiles/test_empty.dir/test-empty.cpp.o
> > Linking CXX executable ../../../bin/test_empty
> >
> > CMakeFiles/test_empty.dir/test-empty.cpp.o:(.rodata+0x0): undefined
> > reference to `soci::empty'
> > collect2: ld returned 1 exit status
> > make[2]: *** [bin/test_empty] Error 1
> > make[1]: *** [backends/empty/test/CMakeFiles/test_empty.dir/all] Error 2
> > make: *** [all] Error 2
> >
> > Could you please advice how it should be solved?
>
> It looks build of the test of empty backend is missing some linker
> flags. I'll check it ASAP.
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Soci-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/soci-users
>

Here the log with VERBOSE=1 (maybe it helps with 2 error)

[ser...@fedya build]$ make VERBOSE=1
/usr/bin/cmake -H/home/sergey/work/oss/soci/src
-B/home/sergey/work/oss/soci/build --check-build-system
CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start
/home/sergey/work/oss/soci/build/CMakeFiles
/home/sergey/work/oss/soci/build/CMakeFiles/progress.make
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/sergey/work/oss/soci/build'
make -f core/CMakeFiles/soci_core.dir/build.make
core/CMakeFiles/soci_core.dir/depend
make[2]: Entering directory `/home/sergey/work/oss/soci/build'
cd /home/sergey/work/oss/soci/build && /usr/bin/cmake -E cmake_depends "Unix
Makefiles" /home/sergey/work/oss/soci/src
/home/sergey/work/oss/soci/src/core /home/sergey/work/oss/soci/build
/home/sergey/work/oss/soci/build/core
/home/sergey/work/oss/soci/build/core/CMakeFiles/soci_core.dir/DependInfo.cmake
--color=
make[2]: Leaving directory `/home/sergey/work/oss/soci/build'
make -f core/CMakeFiles/soci_core.dir/build.make
core/CMakeFiles/soci_core.dir/build
make[2]: Entering directory `/home/sergey/work/oss/soci/build'
make[2]: Nothing to be done for `core/CMakeFiles/soci_core.dir/build'.
make[2]: Leaving directory `/home/sergey/work/oss/soci/build'
/usr/bin/cmake -E cmake_progress_report
/home/sergey/work/oss/soci/build/CMakeFiles  1 2 3 4 5 6 7 8 9 10 11 12 13
14 15 16 17 18
[ 40%] Built target soci_core
make -f core/CMakeFiles/soci_core-static.dir/build.make
core/CMakeFiles/soci_core-static.dir/depend
make[2]: Entering directory `/home/sergey/work/oss/soci/build'
cd /home/sergey/work/oss/soci/build && /usr/bin/cmake -E cmake_depends "Unix
Makefiles" /home/sergey/work/oss/soci/src
/home/sergey/work/oss/soci/src/core /home/sergey/work/oss/soci/build
/home/sergey/work/oss/soci/build/core
/home/sergey/work/oss/soci/build/core/CMakeFiles/soci_core-static.dir/DependInfo.cmake
--color=
make[2]: Leaving directory `/home/sergey/work/oss/soci/build'
make -f core/CMakeFiles/soci_core-static.dir/build.make
core/CMakeFiles/soci_core-static.dir/build
make[2]: Entering directory `/home/sergey/work/oss/soci/build'
make[2]: Nothing to be done for
`core/CMakeFiles/soci_core-static.dir/build'.
make[2]: Leaving directory `/home/sergey/work/oss/soci/build'
/usr/bin/cmake -E cmake_progress_report
/home/sergey/work/oss/soci/build/CMakeFiles  19 20 21 22 23 24 25 26 27 28
29 30 31 32 33 34 35 36
[ 81%] Built target soci_core-static
make -f backends/empty/test/CMakeFiles/test_empty.dir/build.make
backends/empty/test/CMakeFiles/test_empty.dir/depend
make[2]: Entering directory `/home/sergey/work/oss/soci/build'
cd /home/sergey/work/oss/soci/build && /usr/bin/cmake -E cmake_depends "Unix
Makefiles" /home/sergey/work/oss/soci/src
/home/sergey/work/oss/soci/src/backends/empty/test
/home/sergey/work/oss/soci/build
/home/sergey/work/oss/soci/build/backends/empty/test
/home/sergey/work/oss/soci/build/backends/empty/test/CMakeFiles/test_empty.dir/DependInfo.cmake
--color=
make[2]: Leaving directory `/home/sergey/work/oss/soci/build'
make -f backends/empty/test/CMakeFiles/test_empty.dir/build.make
backends/empty/test/CMakeFiles/test_empty.dir/build
make[2]: Entering directory `/home/sergey/work/oss/soci/build'
Linking CXX executable ../../../bin/test_empty
cd /home/sergey/work/oss/soci/build/backends/empty/test && /usr/bin/cmake -E
cmake_link_script CMakeFiles/test_empty.dir/link.txt --verbose=1
/usr/lib/ccache/c++     -fPIC CMakeFiles/test_empty.dir/test-empty.cpp.o  -o
../../../bin/test_empty -rdynamic ../../../lib/libsoci_core.so -ldl
-lboost_date_time-mt -Wl,-rpath,/home/sergey/work/oss/soci/build/lib
CMakeFiles/test_empty.dir/test-empty.cpp.o:(.rodata+0x0): undefined
reference to `soci::empty'
collect2: ld returned 1 exit status
make[2]: *** [bin/test_empty] Error 1
make[2]: Leaving directory `/home/sergey/work/oss/soci/build'
make[1]: *** [backends/empty/test/CMakeFiles/test_empty.dir/all] Error 2
make[1]: Leaving directory `/home/sergey/work/oss/soci/build'
make: *** [all] Error 2
[ser...@fedya build]$


-- 
Best Regards,
Sergey Nikulov
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to