can't compile syslog in HP-UX 11.23
I get errors when running "make" for syslog-ng1.6.6 on HP-UX 11.23 maybe it's because that "ld" in HP-UX can't excute "-Bstatic" and "-Bdynamic" option. does anyone who succeeded in installing syslog in HP-UX 11i? I do not know how to solve this problem I need help /usr/local/bin/gcc -g -O2 -Wall -I/home/libol-0.3.15/src -D_GNU_SOURCE -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o macros.o getopt.o getopt1.o -lnsl /home/libol-0.3.15/src/.libs/libol.a -lnsl -lxnet -Wl,-Bstatic -ll -lwrap -Wl,-Bdynamic ld: Bad keyword argument: static Fatal error. collect2: ld returned 1 exit status *** Error exit code 1 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop.
On Thu, 2005-04-14 at 18:42 +0900, XX XXXX wrote:
I get errors when running "make" for syslog-ng1.6.6 on HP-UX 11.23 maybe it's because that "ld" in HP-UX can't excute "-Bstatic" and "-Bdynamic" option. does anyone who succeeded in installing syslog in HP-UX 11i? I do not know how to solve this problem I need help
/usr/local/bin/gcc -g -O2 -Wall -I/home/libol-0.3.15/src -D_GNU_SOURCE -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o macros.o getopt.o getopt1.o -lnsl /home/libol-0.3.15/src/.libs/libol.a -lnsl -lxnet -Wl,-Bstatic -ll -lwrap -Wl,-Bdynamic ld: Bad keyword argument: static Fatal error. collect2: ld returned 1 exit status
I have committed the patch below to improve ld argument detection. If you apply it syslog-ng should compile fine, however it might link to -ll and -lwrap dynamically. To improve the situation I'd need some information on HP's linker as I currently have no access to a HP-UX machine. Can you send me an "ld -V" output and point me a direction where I can find a manpage for HP's ld ? --- syslog-ng/ChangeLog:1.80.4.32 Sat Apr 9 12:49:53 2005 +++ syslog-ng/ChangeLog Fri Apr 15 10:24:11 2005 @@ -1,3 +1,10 @@ +2005-04-15 Balazs Scheidler <bazsi@bzorp.balabit> + + * configure.in: added detection code for ld static linking + arguments (-Bstatic and -Bdynamic) which currently works for + Solaris/Linux. On other platforms syslog-ng might link to some + libraries dynamically. + 2005-04-08 Balazs Scheidler <bazsi@bzorp.balabit> * configure.in: bumped to version 1.6.7 Index: syslog-ng/configure.in diff -u syslog-ng/configure.in:1.72.4.14 syslog-ng/configure.in:1.72.4.15 --- syslog-ng/configure.in:1.72.4.14 Sat Apr 9 12:49:53 2005 +++ syslog-ng/configure.in Fri Apr 15 10:24:11 2005 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.72.4.14 2005/04/09 10:49:53 bazsi Exp $ +dnl $Id: configure.in,v 1.72.4.15 2005/04/15 08:24:11 bazsi Exp $ dnl Process this file with autoconf to produce a configure script. AC_INIT(src/affile.c) @@ -286,11 +286,22 @@ AC_MSG_RESULT(no) fi +AC_MSG_CHECKING(how to enable static linking for certain libraries) +ldversion=`ld -V | head -1` +if echo $ldversion | egrep "GNU|Solaris" > /dev/null; then + LD_START_STATIC="-Wl,-Bstatic" + LD_END_STATIC="-Wl,-Bdynamic" + AC_MSG_RESULT(GNU or Solaris) +else + LD_START_STATIC="" + LD_END_STATIC="" + AC_MSG_RESULT([no clues, linking everything dynamically, please send appropriate ld arguments to syslog-ng@lists.balabit.hu]) +fi AC_MSG_CHECKING(libol version >= $LIBOL_REQ_MAJOR.$LIBOL_REQ_MINOR.$LIBOL_REQ_PATCH) if test "$with_libol" = ""; then - if test ! -x `which libol-config` ; then + if test ! -x "`which libol-config`" ; then AC_ERROR([libol-config not found, either install libol or supply its location with --with-libol]) fi LIBOL_VERSION=`libol-config --version` @@ -333,7 +344,7 @@ if test "$enable_full_static" = "yes"; then LIBS="-static $LIBS $LEXLIB $LIBWRAP_LIBS $LIBNET_LIBS $LIBOL_LIBS" else - LIBS="$LIBS $LIBOL_LIBS -Wl,-Bstatic $LEXLIB $LIBWRAP_LIBS $LIBNET_LIBS -Wl,-Bdynamic" + LIBS="$LIBS $LIBOL_LIBS $LD_START_STATIC $LEXLIB $LIBWRAP_LIBS $LIBNET_LIBS $LD_END_STATIC" fi AC_SUBST(YFLAGS) -- Bazsi
Thank You Bazsi for your consideration :) I'll apply it as soon as possible "ld -V" output is as follows ld: 92453-07 linker ld HP Itanium(R) B.12.23 PBO 040721 (IPF/IPF) ld: No input files Fatal error. And You can find a manpage for HP's ld below http://docs.hp.com/en/B2355-60105/ld_ia.1.html - Orignal Message - .On Thu, 2005-04-14 at 18:42 +0900, XX XXXX wrote: .> I get errors when running "make" for syslog-ng1.6.6 on HP-UX 11.23 .> maybe it's because that "ld" in HP-UX can't excute "-Bstatic" and "-Bdynamic" .> option. .> does anyone who succeeded in installing syslog in HP-UX 11i? .> I do not know how to solve this problem .> I need help .> .> /usr/local/bin/gcc -g -O2 -Wall -I/home/libol-0.3.15/src -D_GNU_SOURCE .> -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o .> cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o .> afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o .> syslog-names.o macros.o getopt.o getopt1.o -lnsl /home/libol-0.3.15/src/.libs/libol.a .> -lnsl -lxnet -Wl,-Bstatic -ll -lwrap -Wl,-Bdynamic .> ld: Bad keyword argument: static .> Fatal error. .> collect2: ld returned 1 exit status . .I have committed the patch below to improve ld argument detection. If .you apply it syslog-ng should compile fine, however it might link to -ll .and -lwrap dynamically. To improve the situation I'd need some .information on HP's linker as I currently have no access to a HP-UX .machine. . .Can you send me an "ld -V" output and point me a direction where I can .find a manpage for HP's ld ? . .--- syslog-ng/ChangeLog:1.80.4.32 Sat Apr 9 12:49:53 2005 .+++ syslog-ng/ChangeLog Fri Apr 15 10:24:11 2005 .@@ -1,3 +1,10 @@ .+2005-04-15 Balazs Scheidler <bazsi@bzorp.balabit> .+ .+ * configure.in: added detection code for ld static linking .+ arguments (-Bstatic and -Bdynamic) which currently works for .+ Solaris/Linux. On other platforms syslog-ng might link to some .+ libraries dynamically. .+ . 2005-04-08 Balazs Scheidler <bazsi@bzorp.balabit> . . * configure.in: bumped to version 1.6.7 .Index: syslog-ng/configure.in .diff -u syslog-ng/configure.in:1.72.4.14 syslog-ng/configure.in:1.72.4.15 .--- syslog-ng/configure.in:1.72.4.14 Sat Apr 9 12:49:53 2005 .+++ syslog-ng/configure.in Fri Apr 15 10:24:11 2005 .@@ -1,4 +1,4 @@ .-dnl $Id: configure.in,v 1.72.4.14 2005/04/09 10:49:53 bazsi Exp $ .+dnl $Id: configure.in,v 1.72.4.15 2005/04/15 08:24:11 bazsi Exp $ . dnl Process this file with autoconf to produce a configure script. . AC_INIT(src/affile.c) . .@@ -286,11 +286,22 @@ . AC_MSG_RESULT(no) . fi . .+AC_MSG_CHECKING(how to enable static linking for certain libraries) .+ldversion=`ld -V | head -1` .+if echo $ldversion | egrep "GNU|Solaris" > /dev/null; then .+ LD_START_STATIC="-Wl,-Bstatic" .+ LD_END_STATIC="-Wl,-Bdynamic" .+ AC_MSG_RESULT(GNU or Solaris) .+else .+ LD_START_STATIC="" .+ LD_END_STATIC="" .+ AC_MSG_RESULT([no clues, linking everything dynamically, please .send appropriate ld arguments to syslog-ng@lists.balabit.hu]) .+fi . . AC_MSG_CHECKING(libol version >= $LIBOL_REQ_MAJOR.$LIBOL_REQ_MINOR.$LIBOL_REQ_PATCH) . . if test "$with_libol" = ""; then .- if test ! -x `which libol-config` ; then .+ if test ! -x "`which libol-config`" ; then . AC_ERROR([libol-config not found, either install libol or .supply its location with --with-libol]) . fi . LIBOL_VERSION=`libol-config --version` .@@ -333,7 +344,7 @@ . if test "$enable_full_static" = "yes"; then . LIBS="-static $LIBS $LEXLIB $LIBWRAP_LIBS $LIBNET_LIBS $LIBOL_LIBS" . else .- LIBS="$LIBS $LIBOL_LIBS -Wl,-Bstatic $LEXLIB $LIBWRAP_LIBS $LIBNET_LIBS . -Wl,-Bdynamic" .+ LIBS="$LIBS $LIBOL_LIBS $LD_START_STATIC $LEXLIB $LIBWRAP_LIBS $LIBNET_LIBS . $LD_END_STATIC" . fi . AC_SUBST(YFLAGS) . . . .-- .Bazsi . . ._______________________________________________ .syslog-ng maillist - syslog-ng@lists.balabit.hu .https://lists.balabit.hu/mailman/listinfo/syslog-ng .Frequently asked questions at http://www.campin.net/syslog-ng/faq.html . . . .
On Mon, 2005-04-18 at 17:26 +0900, XX XXXX wrote:
Thank You Bazsi for your consideration :) I'll apply it as soon as possible
"ld -V" output is as follows
ld: 92453-07 linker ld HP Itanium(R) B.12.23 PBO 040721 (IPF/IPF) ld: No input files Fatal error.
Can you check if applying this patch autodetects you ld options correctly? diff -u -r1.72.4.15 configure.in --- configure.in 15 Apr 2005 08:24:11 -0000 1.72.4.15 +++ configure.in 18 Apr 2005 09:08:09 -0000 @@ -292,6 +292,10 @@ LD_START_STATIC="-Wl,-Bstatic" LD_END_STATIC="-Wl,-Bdynamic" AC_MSG_RESULT(GNU or Solaris) +elif echo $ldversion | egrep "HP" > /dev/null; then + LD_START_STATIC="-a archive" + LD_END_STATIC="-a shared_archive" + AC_MSG_RESULT(HP-UX) else LD_START_STATIC="" LD_END_STATIC="" I've committed this patch, so it should be available in tomorrow's snapshot. -- Bazsi
I applied the patch that you submitted, Bazsi But I got many warnings in 'yy__' things when I did 'make' and also when I did 'make install', I got the same warnings (The binary file 'syslog-ng' was created, but I could'nt start syslog-ng properly) For your information, Before I 've posted my problems on mailing-list in the first time I 've modified the 'configure' file once (deleted the ' -Wl,-Bstatic' '-Wl,-Bdynamic' ld options in line 7455 just like below) => LIBS="$LIBS $LIBOL_LIBS $LEXLIB $LIBWRAP_LIBS $LIBNET_LIBS " and once I've used 'enable_full_static' option when running 'configure' In the above two cases, I got the same problems like applying the patch submitted Really thanks for your consideration once more, though I 've got another problems And errors(warnings) are belows ----- warning when running 'make' --------------- /usr/local/bin/gcc -g -O2 -Wall -I/home/libol-0.3.15/src -D_GNU_SOURCE - o test_nscache test_nscache.o ../nscache.o -lnsl /home/libol- 0.3.15/src/.libs/libol.a -lnsl -lxnet -ll -lwrap ld: (Warning) Unsatisfied symbol "yyleng" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yylenguc" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyinput" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyunput" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyolsp" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yytext" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyoutput" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yytextuc" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyextra" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyfnd" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyprevious" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yylex" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yylsp" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyout" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "deny_severity" in file /usr/lib/hpux32/libwrap.so ld: (Warning) Unsatisfied symbol "allow_severity" in file /usr/lib/hpux32/libwrap.so ld: (Warning) Unsatisfied symbol "yylstate" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yytextarr" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyback" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "rfc931_timeout" in file /usr/lib/hpux32/libwrap.so 20 warnings. ----------- warning when running 'make install' --------------- Making install in . /usr/local/bin/gcc -g -O2 -Wall -I/home/libol-0.3.15/src - D_GNU_SOURCE -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o macros.o getopt.o getopt1.o - lnsl /home/libol-0.3.15/src/.libs/libol.a -lnsl -lxnet -ll -lwrap ld: (Warning) Unsatisfied symbol "yylenguc" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyinput" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyunput" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyolsp" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyoutput" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yytextuc" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyextra" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyfnd" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyprevious" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yylsp" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "deny_severity" in file /usr/lib/hpux32/libwrap.so ld: (Warning) Unsatisfied symbol "allow_severity" in file /usr/lib/hpux32/libwrap.so ld: (Warning) Unsatisfied symbol "yylstate" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yytextarr" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyback" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "rfc931_timeout" in file /usr/lib/hpux32/libwrap.so 16 warnings. /bin/sh /home/syslog-ng-1.6.7/mkinstalldirs /usr/local/sbin .././install-sh -c syslog-ng /usr/local/sbin/syslog-ng Making install in tests /usr/local/bin/gcc -g -O2 -Wall -I/home/libol-0.3.15/src - D_GNU_SOURCE -o test_nscache test_nscache.o ../nscache.o -lnsl /home/libol-0.3.15/src/.libs/libol.a -lnsl -lxnet -ll -lwrap ld: (Warning) Unsatisfied symbol "yyleng" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yylenguc" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyinput" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyunput" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyolsp" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yytext" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyoutput" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yytextuc" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyextra" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyfnd" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyprevious" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yylex" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yylsp" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyout" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "deny_severity" in file /usr/lib/hpux32/libwrap.so ld: (Warning) Unsatisfied symbol "allow_severity" in file /usr/lib/hpux32/libwrap.so ld: (Warning) Unsatisfied symbol "yylstate" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yytextarr" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "yyback" in file /usr/lib/hpux32/libl.so ld: (Warning) Unsatisfied symbol "rfc931_timeout" in file /usr/lib/hpux32/libwrap.so 20 warnings. ----------- warning when starting 'syslog-ng' --------------- # /sbin/init.d/syslog-ng start /usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yylsp' in load module '/usr/lib/hpux32/libl.so.1'. /usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yyolsp' in load module '/usr/lib/hpux32/libl.so.1'. /usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yyfnd' in load module '/usr/lib/hpux32/libl.so.1'. /usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yytextuc' in load module '/usr/lib/hpux32/libl.so.1'. /usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yylenguc' in load module '/usr/lib/hpux32/libl.so.1'. /usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yylstate' in load module '/usr/lib/hpux32/libl.so.1'. /usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yyprevious' in load module '/usr/lib/hpux32/libl.so.1'. /usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yytextarr' in load module '/usr/lib/hpux32/libl.so.1'. /usr/lib/hpux32/dld.so: Unsatisfied data symbol 'yyextra' in load module '/usr/lib/hpux32/libl.so.1'. /sbin/init.d/syslog-ng[89]: 19984 Killed EXIT CODE: 137 -----Original Message----- From: syslog-ng-admin@lists.balabit.hu [mailto:syslog-ng- admin@lists.balabit.hu] On Behalf Of Balazs Scheidler Sent: Monday, April 18, 2005 6:09 PM To: syslog-ng@lists.balabit.hu Subject: Re: Re: [syslog-ng]can't compile syslog in HP-UX 11.23 On Mon, 2005-04-18 at 17:26 +0900, XX XXXX wrote:
Thank You Bazsi for your consideration :) I'll apply it as soon as possible
"ld -V" output is as follows
ld: 92453-07 linker ld HP Itanium(R) B.12.23 PBO 040721 (IPF/IPF) ld: No input files Fatal error.
Can you check if applying this patch autodetects you ld options correctly?
On Tue, 2005-04-19 at 16:00 +0900, skywalk2@netian.com wrote:
I applied the patch that you submitted, Bazsi But I got many warnings in 'yy__' things when I did 'make' and also when I did 'make install', I got the same warnings (The binary file 'syslog-ng' was created, but I could'nt start syslog-ng properly)
For your information, Before I 've posted my problems on mailing-list in the first time I 've modified the 'configure' file once (deleted the ' -Wl,-Bstatic' '-Wl,-Bdynamic' ld options in line 7455 just like below) => LIBS="$LIBS $LIBOL_LIBS $LEXLIB $LIBWRAP_LIBS $LIBNET_LIBS "
and once I've used 'enable_full_static' option when running 'configure'
In the above two cases, I got the same problems like applying the patch submitted
As I see from the link command line no option was added to it, e.g. it linked without trying to link statically. This happened either because you did not rerun the configure script, or not regenerated it using autoconf. The other problems are that for some reason your libl.so library does not seem to match the lexing code in syslog-ng. Although libl.so on other platforms seems to be ok, maybe on HP-UX this is not the case. Could you try installing GNU flex and verify that syslog-ng links to libfl.{so,a} instead of libl.so ? -- Bazsi
participants (3)
-
Balazs Scheidler
-
skywalk2@netian.com
-
�� �ͱ�