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.
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.
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?
Thank you.
--
Best Regards,
Sergey
diff --git a/src/cmake/modules/FindOracle.cmake b/src/cmake/modules/FindOracle.cmake
index 28d4092..5ce8778 100644
--- a/src/cmake/modules/FindOracle.cmake
+++ b/src/cmake/modules/FindOracle.cmake
@@ -31,10 +31,7 @@ if(NOT ORACLE_FIND_QUIETLY)
message(STATUS "Searching for Oracle ${Oracle_FIND_VERSION}+ OCI client library")
endif()
-if(NOT DEFINED ENV{ORACLE_HOME})
- message(FATAL_ERROR
- "Missing environment variable ORACLE_HOME with location of Oracle installation")
-endif()
+if(DEFINED ENV{ORACLE_HOME})
set(ORACLE_HOME $ENV{ORACLE_HOME})
@@ -80,3 +77,5 @@ set(ORACLE_LIBRARIES ${ORACLE_LIBRARY})
# if all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ORACLE DEFAULT_MSG ORACLE_LIBRARY ORACLE_INCLUDE_DIR)
+
+endif() # if(DEFINED ENV{ORACLE_HOME})
------------------------------------------------------------------------------
Download Intel® 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