[syslog-ng] compile problem

Chris A. Mattingly chris.mattingly@interpath.net
Wed, 09 Jun 1999 16:42:26 -0400


This is a multi-part message in MIME format.
--------------0BBEFF29B41A568A3E21B391
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Rob Cermak wrote:
> 
> I'd love to trash my current syslogd on Solaris.  I'd like to see
> this work and transmit logging back to a Linux box to collate all
> the messages.
> 
> Let me know if you need anything else...willing to take
> patches to test.
> 
> I'll see what changed between version .22 and .23...
> 
> uname -a
> SunOS magellan1 5.6 Generic_105181-03 sun4m sparc SUNW,SPARCstation-20
> 
> System: Solaris 2.6 /
> # gcc -v
> Reading specs from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.90.29/specs
> gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
> 
> syslog-ng-1.1.23 / libol-0.1.19
> 
> I compiled the prior release fine, but it core dumped
> once it was started and I forced a message to the syslog.
> 
> Compiling the new version I hit this:
> 
> gcc -DHAVE_CONFIG_H -I. -I/h0/cermak/src/syslog-ng-1.1.23/src -I.     -O2
> -Wall -I/usr/local/include/libol -c center.c
> center.c:72: warning: missing braces around initializer for
> `loglock.__pthread_mutex_flags'
> center.c: In function `do_distribute_log':
> center.c:101: warning: implicit declaration of function
> `pthread_lock_mutex'
> center.c:105: warning: implicit declaration of function
> `pthread_unlock_mutex'
> 
> gcc  -O2 -Wall -I/usr/local/include/libol  -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 afinter.o  afuser.o afdoor.o utils.o syslog-names.o
> getopt.c getopt1.c  -lpthread -ldoor  -ll /usr/local/lib/libol.a -lsocket
> -lnsl -lxnet
> Undefined                       first referenced
>  symbol                             in file
> pthread_lock_mutex                  center.o
> pthread_unlock_mutex                center.o
> ld: fatal: Symbol referencing errors. No output written to syslog-ng
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `syslog-ng'
> Current working directory /h0/cermak/src/syslog-ng-1.1.23/src
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'

Is this perhaps a typo?  At least on Solaris, these function
names are called (respectively):

pthread_mutex_lock
pthread_mutex_unlock

-Chris
-- 
Chris Mattingly                      | chris.mattingly@interpath.net
Systems Engineer                     | (919) 253-6365  [tel]
Interpath Communications, Inc.       | (919) 253-7780  [fax]
--------------0BBEFF29B41A568A3E21B391
Content-Type: text/x-vcard; charset=us-ascii;
 name="chris.mattingly.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Chris A. Mattingly
Content-Disposition: attachment;
 filename="chris.mattingly.vcf"

begin:vcard 
n:Mattingly;Chris
tel;fax:(919) 253-7780
tel;work:(919) 253-6365
x-mozilla-html:FALSE
url:http://www.interpath.net/
org:Interpath Communications, Inc.;Internet Services
adr:;;PO Box 13961;RTP;NC;27709-3961;USA
version:2.1
email;internet:chris.mattingly@interpath.net
title:Systems Engineer
x-mozilla-cpt:;8976
fn:Chris Mattingly
end:vcard

--------------0BBEFF29B41A568A3E21B391--