MySQL Forums
Forum List  »  MySQL Workbench

mysql-workbench x86_64 compile from src rpm
Posted by: Sandeep Khanna
Date: July 08, 2009 08:37AM

Since there is no pre-packaged Mandriva x86_64 rpm for mysql-workbench 5.1.16, I tried compiling one from the source rpm available here

Unfortunately, the compilation (rpmbuild -ba ./mysql-workbench.spec.in ) fails with several errors about pthread_rwlock:

g++ -shared -nostdlib /usr/lib/gcc/x86_64-manbo-linux-gnu/4.3.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-manbo-linux-gnu/4.3.2/crtbeginS.o .libs/libctemplate_wb_la-arena.o .libs/libctemplate_wb_la-template.o .libs/libctemplate_wb_la-template_dictionary.o .libs/libctemplate_wb_la-template_modifiers.o .libs/libctemplate_wb_la-template_string.o .libs/libctemplate_wb_la-template_namelist.o .libs/libctemplate_wb_la-template_pathops.o .libs/libctemplate_wb_la-htmlparser.o .libs/libctemplate_wb_la-jsparser.o .libs/libctemplate_wb_la-statemachine.o -L/usr/lib/gcc/x86_64-manbo-linux-gnu/4.3.2 -L/usr/lib/gcc/x86_64-manbo-linux-gnu/4.3.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-manbo-linux-gnu/4.3.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-manbo-linux-gnu/4.3.2/crtendS.o /usr/lib/gcc/x86_64-manbo-linux-gnu/4.3.2/../../../../lib64/crtn.o -pthread -pthread -Wl,--as-needed -Wl,--no-undefined -Wl,-soname -Wl,libctemplate_wb.so.0 -Wl,-retain-symbols-file -Wl,.libs/libctemplate_wb.exp -o .libs/libctemplate_wb.so.0.0.0
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `~Mutex':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:226: undefined reference to `pthread_rwlock_destroy'
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:226: undefined reference to `pthread_rwlock_destroy'
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:226: undefined reference to `pthread_rwlock_destroy'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::ReaderUnlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:234: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::ReaderLock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:233: undefined reference to `pthread_rwlock_rdlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:224: undefined reference to `pthread_rwlock_init'
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:224: undefined reference to `pthread_rwlock_init'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex::ReaderUnlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:234: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template.o: In function `Mutex':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:224: undefined reference to `pthread_rwlock_init'
.libs/libctemplate_wb_la-template.o: In function `~Mutex':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:226: undefined reference to `pthread_rwlock_destroy'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:224: undefined reference to `pthread_rwlock_init'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::ReaderUnlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:234: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::ReaderLock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:233: undefined reference to `pthread_rwlock_rdlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::ReaderLock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:233: undefined reference to `pthread_rwlock_rdlock'
.libs/libctemplate_wb_la-template_dictionary.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template_string.o: In function `Mutex::ReaderUnlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:234: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template_string.o: In function `Mutex::ReaderLock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:233: undefined reference to `pthread_rwlock_rdlock'
.libs/libctemplate_wb_la-template_string.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template_string.o: In function `Mutex::ReaderLock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:233: undefined reference to `pthread_rwlock_rdlock'
.libs/libctemplate_wb_la-template_string.o: In function `Mutex::ReaderUnlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:234: undefined reference to `pthread_rwlock_unlock'
.libs/libctemplate_wb_la-template_string.o: In function `Mutex::Lock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:227: undefined reference to `pthread_rwlock_wrlock'
.libs/libctemplate_wb_la-template_string.o: In function `Mutex':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:224: undefined reference to `pthread_rwlock_init'
.libs/libctemplate_wb_la-template_string.o: In function `Mutex::Unlock()':
/home/sandeepk/rpm/BUILD/mysql-workbench-oss-5.1.16/ext/ctemplate/ctemplate-src/src/base/mutex.h:228: undefined reference to `pthread_rwlock_unlock'
collect2: ld returned 1 exit status
make[4]: *** [libctemplate_wb.la] Error 1

Any ideas?

Options: ReplyQuote


Subject
Views
Written By
Posted
mysql-workbench x86_64 compile from src rpm
4614
July 08, 2009 08:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.