[Bug 168] New: Solaris 10 make failure after successful configure
https://bugzilla.balabit.com/show_bug.cgi?id=168 Summary: Solaris 10 make failure after successful configure Product: syslog-ng Version: 3.3.x Platform: Other OS/Version: Solaris Status: NEW Severity: blocker Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: david.j.fenske@usps.gov Type of the Report: bug Estimated Hours: 0.0 1. Download, gunzip, and de-tar syslog-ng-3.3.4 2. PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 3. LD_LIBRARY_PATH=/usr/local/lib 4. ./configure 5. make make all-recursive Making all in lib make: Fatal error in reader: Makefile, line 993: Unexpected end of line seen Current working directory /djftools/syslog/source/syslog-ng-3.3.4/lib *** Error code 1 The following command caused the error: fail= failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='lib modules syslog-ng scripts tests doc contrib scl debian tgz2build build'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' Current working directory /djftools/syslog/source/syslog-ng-3.3.4 *** Error code 1 make: Fatal error: Command failed for target `all' -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=168 --- Comment #1 from David Fenske <david.j.fenske@usps.gov> 2012-03-06 22:04:26 --- Created an attachment (id=54) --> (https://bugzilla.balabit.com/attachment.cgi?id=54) configure log file -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=168 --- Comment #2 from David Fenske <david.j.fenske@usps.gov> 2012-03-06 22:06:13 --- Created an attachment (id=55) --> (https://bugzilla.balabit.com/attachment.cgi?id=55) Last output from configure showing success -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=168 David Fenske <david.j.fenske@usps.gov> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david.j.fenske@usps.gov Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=168 Gergely Nagy <algernon@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |algernon@balabit.hu --- Comment #3 from Gergely Nagy <algernon@balabit.hu> 2012-03-07 12:47:15 --- Can you try this with GNU Make, instead of Solaris' stock make? I'm reasonably sure that we have a couple of gnuisms in the makefiles, and as such, failiure to compile with non-gnu make is to be expected. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=168 --- Comment #4 from David Fenske <david.j.fenske@usps.gov> 2012-03-07 17:34:38 --- Used "gmake" and made some progress. However received failure (detailed gmake output attached shortly): bin/bash ../../libtool --tag=CC --mode=link gcc -Wall -g -O2 -D_REENTRANT -D_POSIX_C_SOURCE=199506L -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -o client client.o ../libivykis.la -lrt -lpthread -lsocket libtool: link: gcc -Wall -g -O2 -D_REENTRANT -D_POSIX_C_SOURCE=199506L -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -o client client.o ../.libs/libivykis.a -lrt -lpthread -lsocket ld: fatal: relocation error: R_SPARC_GOT22: file ../.libs/libivykis.a(iv_timer.o): symbol clock_source: relocation illegal for TLS symbol collect2: ld returned 1 exit status gmake[7]: *** [client] Error 1 gmake[7]: Leaving directory `/djftools/syslog/source/syslog-ng-3.3.4/lib/ivykis/lib/test' gmake[6]: *** [all-recursive] Error 1 gmake[6]: Leaving directory `/djftools/syslog/source/syslog-ng-3.3.4/lib/ivykis/lib' gmake[5]: *** [all-recursive] Error 1 gmake[5]: Leaving directory `/djftools/syslog/source/syslog-ng-3.3.4/lib/ivykis' gmake[4]: *** [all] Error 2 gmake[4]: Leaving directory `/djftools/syslog/source/syslog-ng-3.3.4/lib/ivykis' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory `/djftools/syslog/source/syslog-ng-3.3.4/lib' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/djftools/syslog/source/syslog-ng-3.3.4/lib' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/djftools/syslog/source/syslog-ng-3.3.4' gmake: *** [all] Error 2 Found references on the web that state that ifdef's need to be defined for Solaris (sparc) -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=168 --- Comment #5 from David Fenske <david.j.fenske@usps.gov> 2012-03-07 17:37:11 --- Created an attachment (id=56) --> (https://bugzilla.balabit.com/attachment.cgi?id=56) Screen output from running gmake -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=168 Tamás Pál <folti@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |folti@balabit.hu --- Comment #6 from Tamás Pál <folti@balabit.hu> 2012-03-08 11:36:45 --- (In reply to comment #4)
Used "gmake" and made some progress. However received failure (detailed gmake output attached shortly):
bin/bash ../../libtool --tag=CC --mode=link gcc -Wall -g -O2 -D_REENTRANT -D_POSIX_C_SOURCE=199506L -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -o client client.o ../libivykis.la -lrt -lpthread -lsocket libtool: link: gcc -Wall -g -O2 -D_REENTRANT -D_POSIX_C_SOURCE=199506L -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -o client client.o ../.libs/libivykis.a -lrt -lpthread -lsocket ld: fatal: relocation error: R_SPARC_GOT22: file ../.libs/libivykis.a(iv_timer.o): symbol clock_source: relocation illegal for TLS symbol collect2: ld returned 1 exit status <snip>
You are trying to compile syslog-ng with the old gcc 3.4.6 bundled with Solaris 10, which doesn't support TLS (Thread Local Storage) properly. You need to build a more recent (4.5 or 4.6) gcc, following the steps outlined in thos blog: http://jblopen.com/node/16 -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=168 --- Comment #7 from David Fenske <david.j.fenske@usps.gov> 2012-03-08 15:40:22 --- The "syslog-ng Open Source Edition 3.3 Administrator Guide" needs to be updated with the following: 1. For Solaris 10, page 44, 3.2, step 8 needs to be annotated with "for Solaris 10, gmake should be used instead of make" 2. For Solaris 10, page 43, 3.2, step 3, the "gcc C compiler (at least version 2.7.2)," needs to be annotated to say "(4.5 or 4.6 for Solaris 10)". Thanks for the help on this. I'll be building a 4.6 gcc shortly. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=168 Gergely Nagy <algernon@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |normal --- Comment #8 from Gergely Nagy <algernon@balabit.hu> 2012-04-20 13:41:31 --- Lowering the severity, since this is appears to be a documentation bug. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=168 Robert Fekete <frobert@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |frobert@balabit.hu Resolution| |FIXED Status|ASSIGNED |RESOLVED --- Comment #9 from Robert Fekete <frobert@balabit.hu> 2012-07-02 16:22:17 --- I've updated the docs a while ago, just forgot to close the bug. @David: Thank you very much for the detailed pointers on which steps to update in the docs, it's been a great help. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla@bugzilla.balabit.com