[opensuse-packaging] Building bobcat, error in sendmail-devel?
Hi all, I'm still trying to build bobcat[1] and make it in an RPM. It always keeps hanging on the same error. This error has to do with a package included in openSUSE. I was hoping any one knows a workaround for this. The buildlog can be found here[2]. But to make it easier here are the error lines: Creating shared library libbobcat.so g++ --std=c++0x -O2 -g -Wall -isystem tmp -fPIC -shared -Wl,--as-needed,-z,defs,-soname,libbobcat.so.3 -o tmp/lib/libbobcat.so.3.16.00 */os/*.o -lX11 -lssl -lcrypto -lreadline -lmilter -L/usr/lib/libmilter /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libmilter.a(listener.o): In function `mi_listener': /home/abuild/rpmbuild/BUILD/sendmail-8.14.7/obj.Linux.3.7.10-1.1-default.x86_64/libmilter/listener.c:941: undefined reference to `pthread_create' /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libmilter.a(handler.o): In function `mi_handle_session': /home/abuild/rpmbuild/BUILD/sendmail-8.14.7/obj.Linux.3.7.10-1.1-default.x86_64/libmilter/handler.c:42: undefined reference to `pthread_detach' /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libmilter.a(signal.o): In function `mi_spawn_signal_thread': /home/abuild/rpmbuild/BUILD/sendmail-8.14.7/obj.Linux.3.7.10-1.1-default.x86_64/libmilter/signal.c:174: undefined reference to `pthread_sigmask' /home/abuild/rpmbuild/BUILD/sendmail-8.14.7/obj.Linux.3.7.10-1.1-default.x86_64/libmilter/signal.c:180: undefined reference to `pthread_create' If I'm not mistaking this error has to do with something from sendmail that is missing. I hope someone can help in any way possible. Daniël Huisman [1] http://bobcat.sourceforge.net/ [2] https://build.opensuse.org/package/live_build_log/home:Drunken/bobcat/openSU... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Daniël Huisman
/home/abuild/rpmbuild/BUILD/sendmail-8.14.7/obj.Linux.3.7.10-1.1-default.x86_64/libmilter/listener.c:941: undefined reference to `pthread_create'
If you want to use threads or a library that uses threads you need to link -lpthread. This is a static-only library, so no way to record dependencies except through pkg-config (which the sendmail package doesn't support). Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday 2014-03-06 15:29, Andreas Schwab wrote:
Daniël Huisman
writes: /home/abuild/rpmbuild/BUILD/sendmail-8.14.7/obj.Linux.3.7.10-1.1-default.x86_64/libmilter/listener.c:941: undefined reference to `pthread_create'
If you want to use threads or a library that uses threads you need to link -lpthread. This is a static-only library, so no way to record dependencies except through pkg-config (which the sendmail package doesn't support).
Or by way of .la files, but we delete them as well :^) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El 06/03/14 10:34, Daniël Huisman escribió:
Creating shared library libbobcat.so g++ --std=c++0x -O2 -g -Wall -isystem tmp -fPIC -shared
Where are the other CXXFLAGS ? ..
-Wl,--as-needed,-z,defs,-soname,libbobcat.so.3 -o tmp/lib/libbobcat.so.3.16.00 */os/*.o -lX11 -lssl -lcrypto -lreadline -lmilter -L/usr/lib/libmilter
link and compile with -pthread -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
op 06-03-14 15:51, Cristian Rodríguez schreef:
El 06/03/14 10:34, Daniël Huisman escribió:
Creating shared library libbobcat.so g++ --std=c++0x -O2 -g -Wall -isystem tmp -fPIC -shared
Where are the other CXXFLAGS ? ..
-Wl,--as-needed,-z,defs,-soname,libbobcat.so.3 -o tmp/lib/libbobcat.so.3.16.00 */os/*.o -lX11 -lssl -lcrypto -lreadline -lmilter -L/usr/lib/libmilter
link and compile with -pthread
Is this some thing I have to add to the compiler? So it's not something I can add to the spec file. Bit of a noob when it comes to spec files. Daniël -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Daniël Huisman
op 06-03-14 15:51, Cristian Rodríguez schreef:
El 06/03/14 10:34, Daniël Huisman escribió:
Creating shared library libbobcat.so g++ --std=c++0x -O2 -g -Wall -isystem tmp -fPIC -shared
Where are the other CXXFLAGS ? ..
-Wl,--as-needed,-z,defs,-soname,libbobcat.so.3 -o tmp/lib/libbobcat.so.3.16.00 */os/*.o -lX11 -lssl -lcrypto -lreadline -lmilter -L/usr/lib/libmilter
link and compile with -pthread
Is this some thing I have to add to the compiler? So it's not something I can add to the spec file. Bit of a noob when it comes to spec files.
Add it to RPM_OPT_FLAGS. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Andreas Schwab
-
Cristian Rodríguez
-
Daniël Huisman
-
Jan Engelhardt