[packages/hiphop-php] workaround for symbol error boost::system::system_category

glen glen at pld-linux.org
Sun Oct 6 02:03:49 CEST 2013


commit 37be4b7f47f40d15d821c43a4ba790b459c376d0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Oct 6 03:02:14 2013 +0300

    workaround for symbol error boost::system::system_category

 boost-system-category.patch | 22 ++++++++++++++++++++++
 hiphop-php.spec             |  2 ++
 2 files changed, 24 insertions(+)
---
diff --git a/hiphop-php.spec b/hiphop-php.spec
index 7edd297..8db32f3 100644
--- a/hiphop-php.spec
+++ b/hiphop-php.spec
@@ -25,6 +25,7 @@ Patch1:		libevent14.patch
 Patch3:		system-xhp.patch
 Patch4:		system-libafdt.patch
 Patch5:		system-folly.patch
+Patch6:		boost-system-category.patch
 URL:		http://wiki.github.com/facebook/hiphop-php/
 BuildRequires:	binutils-devel
 BuildRequires:	bison >= 2.3
@@ -75,6 +76,7 @@ Apache and mod_php.
 %prep
 %setup -q -n %{name}-HPHP-%{version} -a1
 %patch5 -p1
+%patch6 -p1
 
 ln -s libevent-1.4.*-stable libevent
 %{__patch} -d libevent -p1 < hphp/third_party/libevent-1.4.14.fb-changes.diff
diff --git a/boost-system-category.patch b/boost-system-category.patch
new file mode 100644
index 0000000..fc5d5c1
--- /dev/null
+++ b/boost-system-category.patch
@@ -0,0 +1,22 @@
+workaround for symbol error boost::system::system_category
+
+/usr/bin/ccache  x86_64-pld-linux-g++  -fno-gcse -fno-omit-frame-pointer -ftemplate-depth-120 -Wall -Woverloaded-virtual -Wno-deprecated -Wno-strict-aliasing -Wno-write-strings -Wno-invalid-offsetof -fno-operator-names -Wno-error=array-bounds -Wno-error=switch -std=gnu++0x -Werror=format-security -Wno-unused-result -Wno-sign-compare -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2  -DNDEBUG    -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc CMakeFiles/gen-class-map.dir/gen-class-map.cpp.o CMakeFiles/gen-class-map.dir/idl.cpp.o  -o gen-class-map -rdynamic -lfolly -lglog ../../../../bin/libdouble-conversion.a -lpthread -ldl
+/usr/bin/ld: CMakeFiles/gen-class-map.dir/gen-class-map.cpp.o: undefined reference to symbol 'boost::system::system_category()'
+/usr/lib64/libboost_system.so.1.54.0: error adding symbols: DSO missing from command line
+collect2: error: ld returned 1 exit status
+make[2]: *** [hphp/tools/bootstrap/gen-class-map] Error 1
+make[2]: Leaving directory `/home/users/glen/rpm/BUILD/x86_64-linux/hiphop-php-HPHP-2.1.0/build'
+
+--- hiphop-php-HPHP-2.1.0/hphp/tools/bootstrap/CMakeLists.txt	2013-10-06 01:35:42.071737427 +0300
++++ hiphop-php-HPHP-2.1.0/hphp/tools/bootstrap/CMakeLists.txt	2013-10-06 01:47:36.638238285 +0300
+@@ -2,7 +2,7 @@
+-target_link_libraries(gen-ext-hhvm folly ${LIBGLOG_LIBRARY} double-conversion ${LIBPTHREAD_LIBRARIES} ${DL_LIB})
++target_link_libraries(gen-ext-hhvm folly ${LIBGLOG_LIBRARY} double-conversion ${LIBPTHREAD_LIBRARIES} -lboost_system ${DL_LIB})
+ 
+ add_executable(gen-infotabs "gen-infotabs.cpp" "idl.cpp")
+-target_link_libraries(gen-infotabs folly ${LIBGLOG_LIBRARY} double-conversion ${LIBPTHREAD_LIBRARIES} ${DL_LIB})
++target_link_libraries(gen-infotabs folly ${LIBGLOG_LIBRARY} double-conversion ${LIBPTHREAD_LIBRARIES} -lboost_system ${DL_LIB})
+ 
+ add_executable(gen-class-map "gen-class-map.cpp" "idl.cpp")
+-target_link_libraries(gen-class-map folly ${LIBGLOG_LIBRARY} double-conversion ${LIBPTHREAD_LIBRARIES} ${DL_LIB})
++target_link_libraries(gen-class-map folly ${LIBGLOG_LIBRARY} double-conversion ${LIBPTHREAD_LIBRARIES} -lboost_system ${DL_LIB})
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hiphop-php.git/commitdiff/1c7ec8177faf90a03f1eb6711cb53159cc0d0dc1



More information about the pld-cvs-commit mailing list