syslog_ng 3.3.4 make error on HPUX HPPA 11.11
Hi, I am trying to compile syslog-ng 3.3.4 version on an HPUX HPPA 11.11 machine. The configure options I used were. ./configure --enable-dynamic-linking --prefix=/opt/soe/local/syslog-ng-3.3.4 Compiler options: compiler : gcc -std=gnu99 compiler options : -g -O2 -Wall -pthread -U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/opt/soe/local/syslog-ng-3.3.4/eventlog/include/eventlog -I/usr/local/include -I$(top_srcdir)/lib/ivykis/lib/include -I$(top_builddir)/lib/ivykis/lib/include -I$(top_srcdir)/lib/ivykis/modules/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 linker flags : -lcl prefix : /opt/soe/local/syslog-ng-3.3.4 linking mode : dynamic __thread keyword : no Submodules: ivykis : internal libmongo-client : internal Features: Debug symbols : no GCC profiling : no Memtrace : no IPV6 support : yes spoof-source support : no tcp-wrapper support : no Linux capability support : no PCRE support : yes Env wrapper support : no systemd support : no (unit dir: none) Modules: Module search path : /opt/soe/local/syslog-ng-3.3.4/lib/syslog-ng Default module list : affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat Sun STREAMS support (module): no SSL support (module) : no SQL support (module) : no PACCT module (EXPERIMENTAL) : no MongoDB destination (module): yes JSON support (module) : no (using no) The make though fails with the below error. /bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -g -O2 -o client client.o ../libivykis.la -lpthread libtool: link: gcc -Wall -g -O2 -o client client.o ../.libs/libivykis.a -lpthread /usr/ccs/bin/ld: Unsatisfied symbols: pthread_sigmask (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_init (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_destroy (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_unlock (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_lock (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) /usr/ccs/bin/ld: (Warning) Linker features were used that may not be supported in future releases. The +vallcompatwarnings option can be used to display more details, and the ld(1) man page contains additional information. This warning can be suppressed with the +vnocompatwarnings option. collect2: ld returned 1 exit status make[7]: *** [client] Error 1 make[7]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis/lib/test' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis/lib' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis' make[4]: *** [all] Error 2 make[4]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib' make[2]: *** [all] Error 2. I have compiled glib-2.16.5 statically and eventlog_0.2.12. make[2]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/compile/syslog/syslog-ng-3.3.4' make: *** [all] Error 2. Please help me fix this. I have tried tweaking with the comfigure options but could no tget anywhere. Regards, Rakesh
On Tue, May 29, 2012 at 12:18:10PM +0530, Rakesh Rajasekharan wrote:
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -g -O2 -o client client.o ../libivykis.la -lpthread libtool: link: gcc -Wall -g -O2 -o client client.o ../.libs/libivykis.a -lpthread /usr/ccs/bin/ld: Unsatisfied symbols: pthread_sigmask (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_init (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_destroy (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_unlock (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_lock (first referenced in ../.libs/libivykis.a(iv_main.o)) (data)
Can you send me a copy of your actual libpthread.{a,so} ?
Can anyone please advice me on the below issue. I think , the problem is that libpthread.a is no tgetting located which has all o fhte below symbols defined. If that is the case, is there a way , I can do that. libpthread.a resides under /usr/lib. Thanks, Rakesh On Tue, May 29, 2012 at 12:18 PM, Rakesh Rajasekharan < rakesh.rajasekharan@gmail.com> wrote:
Hi,
I am trying to compile syslog-ng 3.3.4 version on an HPUX HPPA 11.11 machine. The configure options I used were.
./configure --enable-dynamic-linking --prefix=/opt/soe/local/syslog-ng-3.3.4
Compiler options: compiler : gcc -std=gnu99 compiler options : -g -O2 -Wall -pthread -U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/opt/soe/local/syslog-ng-3.3.4/eventlog/include/eventlog -I/usr/local/include -I$(top_srcdir)/lib/ivykis/lib/include -I$(top_builddir)/lib/ivykis/lib/include -I$(top_srcdir)/lib/ivykis/modules/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 linker flags : -lcl prefix : /opt/soe/local/syslog-ng-3.3.4 linking mode : dynamic __thread keyword : no Submodules: ivykis : internal libmongo-client : internal Features: Debug symbols : no GCC profiling : no Memtrace : no IPV6 support : yes spoof-source support : no tcp-wrapper support : no Linux capability support : no PCRE support : yes Env wrapper support : no systemd support : no (unit dir: none) Modules: Module search path : /opt/soe/local/syslog-ng-3.3.4/lib/syslog-ng Default module list : affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat Sun STREAMS support (module): no SSL support (module) : no SQL support (module) : no PACCT module (EXPERIMENTAL) : no MongoDB destination (module): yes JSON support (module) : no (using no) The make though fails with the below error.
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -g -O2 -o client client.o ../libivykis.la -lpthread libtool: link: gcc -Wall -g -O2 -o client client.o ../.libs/libivykis.a -lpthread /usr/ccs/bin/ld: Unsatisfied symbols: pthread_sigmask (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_init (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_destroy (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_unlock (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_lock (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) /usr/ccs/bin/ld: (Warning) Linker features were used that may not be supported in future releases. The +vallcompatwarnings option can be used to display more details, and the ld(1) man page contains additional information. This warning can be suppressed with the +vnocompatwarnings option. collect2: ld returned 1 exit status make[7]: *** [client] Error 1 make[7]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis/lib/test' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis/lib' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis' make[4]: *** [all] Error 2 make[4]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib' make[2]: *** [all] Error 2.
I have compiled glib-2.16.5 statically and eventlog_0.2.12. make[2]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/compile/syslog/syslog-ng-3.3.4' make: *** [all] Error 2.
Please help me fix this. I have tried tweaking with the comfigure options but could no tget anywhere.
Regards, Rakesh
Greetings, HPUX B.11.11 lacks proper pthread support out of the box, you need to install either the PHCO_33282 or PHCO_37940 patchset and all their dependent patchsets to fix this problem. Sadly they are no longer available from HP without a support contract. To list all installed patches issue the following command: # swlist -a patch_state *,c=patch The smaller problem that ivykis' autoconfuse doesn't check for these pthread_* functions, but expects them to exist. On Tue, May 29, 2012 at 12:18:10PM +0530, Rakesh Rajasekharan wrote:
Hi,
I am trying to compile syslog-ng 3.3.4 version on an HPUX HPPA 11.11 machine. The configure options I used were.
./configure --enable-dynamic-linking --prefix=/opt/soe/local/syslog-ng-3.3.4
Compiler options: compiler : gcc -std=gnu99 compiler options : -g -O2 -Wall -pthread -U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE -D_REENTRANT -I/usr/local/include/ glib-2.0 -I/usr/local/lib/glib-2.0/include -I/opt/soe/local/syslog-ng-3.3.4/ eventlog/include/eventlog -I/usr/local/include -I$(top_srcdir)/lib/ ivykis/lib/include -I$(top_builddir)/lib/ivykis/lib/include -I$(top_srcdir)/lib /ivykis/modules/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS= 64 linker flags : -lcl prefix : /opt/soe/local/syslog-ng-3.3.4 linking mode : dynamic __thread keyword : no Submodules: ivykis : internal libmongo-client : internal Features: Debug symbols : no GCC profiling : no Memtrace : no IPV6 support : yes spoof-source support : no tcp-wrapper support : no Linux capability support : no PCRE support : yes Env wrapper support : no systemd support : no (unit dir: none) Modules: Module search path : /opt/soe/local/syslog-ng-3.3.4/lib/syslog-ng Default module list : affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat Sun STREAMS support (module): no SSL support (module) : no SQL support (module) : no PACCT module (EXPERIMENTAL) : no MongoDB destination (module): yes JSON support (module) : no (using no)
The make though fails with the below error.
/bin/sh ../../libtool --tag=CC --mode=link gcc -Wall -g -O2 -o client client.o ../libivykis.la -lpthread libtool: link: gcc -Wall -g -O2 -o client client.o ../.libs/libivykis.a -lpthread /usr/ccs/bin/ld: Unsatisfied symbols: pthread_sigmask (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_init (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_destroy (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_unlock (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) pthread_mutex_lock (first referenced in ../.libs/libivykis.a(iv_main.o)) (data) /usr/ccs/bin/ld: (Warning) Linker features were used that may not be supported in future releases. The +vallcompatwarnings option can be used to display more details, and the ld(1) man page contains additional information. This warning can be suppressed with the +vnocompatwarnings option. collect2: ld returned 1 exit status make[7]: *** [client] Error 1 make[7]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis/lib/ test' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis/lib' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis' make[4]: *** [all] Error 2 make[4]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib/ivykis' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib' make[2]: *** [all] Error 2.
I have compiled glib-2.16.5 statically and eventlog_0.2.12. make[2]: Leaving directory `/compile/syslog/syslog-ng-3.3.4/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/compile/syslog/syslog-ng-3.3.4' make: *** [all] Error 2.
Please help me fix this. I have tried tweaking with the comfigure options but could no tget anywhere.
Regards, Rakesh
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-- Pal Tamas/Folti folti@balabit.hu
On Wed, May 30, 2012 at 12:02:50PM +0200, Pal Tamas wrote:
The smaller problem that ivykis' autoconfuse doesn't check for these pthread_* functions, but expects them to exist.
Upstream configure.ac has this check: AC_SEARCH_LIBS([pthread_atfork], [pthread], [], AC_MSG_ERROR(pthreads support is required to build ivykis.)) (It used to check for pthread_create, but on Linux that would lead to the earlier -lrt dependency (for clock_gettime()) implicitly pulling in -lpthread but not libpthread_nonshared.a.)
Hello Pal, I was able to get the PHCO_33282 patch and applied it on my 11.11 machine. PHCO_37940 is fo rthe 11.23 HPUX versions hence can't install that. # swlist -a patch_state *,c=patch |grep PHCO_33282 # PHCO_33282 PHCO_33282.C-MIN-32ALIB applied PHCO_33282.C-MIN-64ALIB applied PHCO_33282.CORE-64SLIB applied PHCO_33282.CORE-SHLIBS applied PHCO_33282.PAUX-ENG-A-MAN applied # But, even after applying this, I still get the same errors regarding pthread. I am curious to know if I should actually be compiling on this 11.11 machine at the first place. I mean, is the syslog-ng 3.3.4 compatible with the 11.11 version. The previous version that I was using on this machine is 3.0.7. Is there a place I can check the compatible OS's . Thanks & Regards, Rakesh On Wed, May 30, 2012 at 3:51 PM, Lennert Buytenhek <buytenh@wantstofly.org>wrote:
On Wed, May 30, 2012 at 12:02:50PM +0200, Pal Tamas wrote:
The smaller problem that ivykis' autoconfuse doesn't check for these pthread_* functions, but expects them to exist.
Upstream configure.ac has this check:
AC_SEARCH_LIBS([pthread_atfork], [pthread], [], AC_MSG_ERROR(pthreads support is required to build ivykis.))
(It used to check for pthread_create, but on Linux that would lead to the earlier -lrt dependency (for clock_gettime()) implicitly pulling in -lpthread but not libpthread_nonshared.a.)
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
On Thu, May 31, 2012 at 02:13:28PM +0530, Rakesh Rajasekharan wrote:
Hello Pal,
I was able to get the PHCO_33282 patch and applied it on my 11.11 machine. PHCO_37940 is fo rthe 11.23 HPUX versions hence can't install that.
# swlist -a patch_state *,c=patch |grep PHCO_33282 # PHCO_33282 PHCO_33282.C-MIN-32ALIB applied PHCO_33282.C-MIN-64ALIB applied PHCO_33282.CORE-64SLIB applied PHCO_33282.CORE-SHLIBS applied PHCO_33282.PAUX-ENG-A-MAN applied # But, even after applying this, I still get the same errors regarding pthread.
I am curious to know if I should actually be compiling on this 11.11 machine at the first place. I mean, is the syslog-ng 3.3.4 compatible with the 11.11 version. The previous version that I was using on this machine is 3.0.7. Is there a place I can check the compatible OS's . Hi,
dug into the problem a bit more, syslog-ng OSE 3.3 (probably 3.4 too) needs some porting work before it can be compiled under HP-UX. The underlying problem is that syslog-ng has been re-written to be multi-threaded, modular application in 3.2, from it's original single threaded monolithic architecure. The rewrite added new dependencies (ivykis) and other required features from the compilers (Thread-local storage support), which made porting to older systems a challenge, although the work has been already done, but not every piece has been added to syslog-ng OSE from the PE branch and not publicly documented. What I managed to solve for now: - need the following patches: PHCO_24402 1.0 libc cumulative header file patch PHCO_38279 1.0 libc cumulative patch PHKL_31918 1.0 fsadm;ACL;locking order;8K mount;readdir PHSS_30049 1.0 ld(1) and linker tools cumulative patch - download and install GCC for HPUX[1] and make sure it's location (/opt/hp-gcc/bin) is in PATH, prepeding every other gcc location you have. - edit configure.in and remove all occurences of -Wl,-whole-archive and -Wl,-no-whole-archive and regenerate configure with autoconf 2.68. If you don't have autoconf 2.68, edit directly configure and remove the strings. - add the following to lib/compat.h: #ifndef CLOCK_MONOTONIC #define CLOCK_MONOTONIC CLOCK_REALTIME #endif - cd lib/ivykis and compile, build and install the bundled ivykis by hand. - re-run your configure command with the following options added: --with-ivykis=system --disable-mongodb Hopefully it compiles properly, but I too tired to check it now. Good luck, [1]: http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c10... -- Pal Tamas/Folti folti@balabit.hu
participants (3)
-
Lennert Buytenhek
-
Pal Tamas
-
Rakesh Rajasekharan