Compiling & Using syslog-ng 1.9.10 on Solaris 10
Hello all, I've finally succedeed in compiling syslog-ng on my new Solaris 10 box using the following tasks: Modifications src/Makefile (Add -lrt) 75c75 < LIBS = -lpthread -lnsl -lsocket -ldoor -ll -L/usr/local/lib -lglib-2.0 -lintl -L/usr/local/lib -levtlog ---
LIBS = -lpthread -lrt -lnsl -lsocket -ldoor -ll -L/usr/local/lib -lglib-2.0 -lintl -L/usr/local/lib -levtlog
Modification src/filter.c (Adding macros): /* Define G_LIKELY() and G_UNLIKELY() so that they are available when * using GLib 1.2 as well. These allow optimization by static branch * prediction with GCC. */ #ifndef G_LIKELY #define G_LIKELY(x) (__builtin_expect(x, 1)) #define G_UNLIKELY(x) (__builtin_expect(x, 0)) #endif /* !G_LIKELY */ But when I start syslog-ng, I have the following error message: Apr 26 09:50:55 sewerrat syslog-ng[752]: syslog-ng starting up; version='1.9.10' Apr 26 09:50:55 sewerrat syslog-ng[752]: Insufficient buffer space for retrieving STREAMS log message; res='ffffffff' Any idea? Best regards, Philippe JOYEZ -- Disclaimer ------------------------------------ Ce message ainsi que les eventuelles pieces jointes constituent une correspondance privee et confidentielle a l'attention exclusive du destinataire designe ci-dessus. Si vous n'etes pas le destinataire du present message ou une personne susceptible de pouvoir le lui delivrer, il vous est signifie que toute divulgation, distribution ou copie de cette transmission est strictement interdite. Si vous avez recu ce message par erreur, nous vous remercions d'en informer l'expediteur par telephone ou de lui retourner le present message, puis d'effacer immediatement ce message de votre systeme. *** This e-mail and any attachments is a confidential correspondence intended only for use of the individual or entity named above. If you are not the intended recipient or the agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender by phone or by replying this message, and then delete this message from your system.
On Wed, 2006-04-26 at 10:06 +0200, Philippe JOYEZ wrote:
Hello all,
I've finally succedeed in compiling syslog-ng on my new Solaris 10 box using the following tasks:
Modifications src/Makefile (Add -lrt) 75c75 < LIBS = -lpthread -lnsl -lsocket -ldoor -ll -L/usr/local/lib -lglib-2.0 -lintl -L/usr/local/lib -levtlog ---
LIBS = -lpthread -lrt -lnsl -lsocket -ldoor -ll -L/usr/local/lib -lglib-2.0 -lintl -L/usr/local/lib -levtlog
Fixed in the patch below.
Modification src/filter.c (Adding macros):
/* Define G_LIKELY() and G_UNLIKELY() so that they are available when * using GLib 1.2 as well. These allow optimization by static branch * prediction with GCC. */ #ifndef G_LIKELY #define G_LIKELY(x) (__builtin_expect(x, 1)) #define G_UNLIKELY(x) (__builtin_expect(x, 0)) #endif /* !G_LIKELY */
I don't understand this one, syslog-ng relies on GLib 2.0 heavily and I doubt it would build with glib 1.2 What is the exact version that you were using?
But when I start syslog-ng, I have the following error message:
Apr 26 09:50:55 sewerrat syslog-ng[752]: syslog-ng starting up; version='1.9.10' Apr 26 09:50:55 sewerrat syslog-ng[752]: Insufficient buffer space for retrieving STREAMS log message; res='ffffffff'
This is caused by the multi-read patches, also added a fix for this. And now here's the just committed patch (available in tomorrow's snapshot): --- orig/configure.in +++ mod/configure.in @@ -126,6 +126,7 @@ fi dnl Checks for library functions. AC_CHECK_LIB(door, door_create) AC_CHECK_LIB(socket, socket) +AC_CHECK_LIB(rt, nanosleep) AC_CHECK_LIB(nsl, gethostbyname) AC_CHECK_LIB(regex, regexec) --- orig/src/afstreams.c +++ mod/src/afstreams.c @@ -134,7 +134,7 @@ afstreams_sd_init(LogPipe *s, GlobalConf close(fd); return FALSE; } - self->reader = log_reader_new(streams_read_new(fd), LR_LOCAL, s, &self->reader_options); + self->reader = log_reader_new(streams_read_new(fd), LR_LOCAL | LR_NOMREAD, s, &self->reader_options); log_pipe_append(self->reader, s); if (self->door_filename) -- Bazsi
participants (2)
-
Balazs Scheidler
-
Philippe JOYEZ