Just a first and quick packaging feedback.
----- Build still fail with gcc-4.3
g++ -c -o mysqlpp_beemutex.o -I. -fPIC -DPIC -pthread
-I/usr/include/mysql -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4
-m64 -mtune=generic ./lib/beemutex.cpp
./lib/beemutex.cpp: In constructor
'mysqlpp::BeecryptMutex::BeecryptMutex()':
./lib/beemutex.cpp:81: error: 'strerror' was not declared in this scope
./lib/beemutex.cpp: In member function 'void
mysqlpp::BeecryptMutex::lock()':
./lib/beemutex.cpp:119: error: 'strerror' was not declared in this scope
./lib/beemutex.cpp: In member function 'bool
mysqlpp::BeecryptMutex::trylock()':
./lib/beemutex.cpp:151: error: 'strerror' was not declared in this scope
./lib/beemutex.cpp: In member function 'void
mysqlpp::BeecryptMutex::unlock()':
./lib/beemutex.cpp:175: error: 'strerror' was not declared in this scope
make: *** [mysqlpp_beemutex.o] Error 1
----- Provides Makefile for examples
Here is what i used in my spec :
--- /home/extras/BUILD/mysql++-3.0.0/mysql++.spec 2008-02-20
07:43:28.000000000 +0100
+++ mysql++3.spec 2008-02-20 07:45:04.000000000 +0100
@@ -50,13 +60,18 @@
# Copy example programs to doc directory
%{__mkdir_p} doc/examples
%{__install} -m644 examples/*.{cpp,h} doc/examples/
+%{__install} -m644 config.h doc/examples/
+sed -i -e s@../config.h@stripped@ doc/examples/threads.h
+
# Fix up simple example Makefile to allow it to build on the install
# system, as opposed to the system where the Makefile was created.
+# Only build examples, not test_
%{__sed} -e 's@./examples/@@' \
-e 's@^CPPFLAGS :=.*$@CPPFLAGS := $(shell mysql_config --cflags)@' \
-e 's@^LDFLAGS :=.*$@LDFLAGS := $(shell mysql_config --libs)@' \
- -e 's@ -Ilib -I/usr/include/mysql@@' \
+ -e '/^all:/s/test_[a-z]* //g' \
Makefile.simple > doc/examples/Makefile
Very simple workaround to have a working Makfile for example on install
tree.
Regards