[syslog-ng]compile fail on FreeBSD 4.4-RC

Hedberg, Eric ehedberg@stockwalkgroup.com
Fri, 21 Sep 2001 10:09:58 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C142AF.7A5BEF80
Content-Type: text/plain;
	charset="iso-8859-1"

Ran into the same issue with 1.5.8 as well. Essentially:

In nscache.h insert above the other includes:

#include <sys/types.h>
#include <sys/socket.h>

and in nscache.c, comment out:

#include <netdb.h>
#include <netinet/in.h>

And it should build.
> -----Original Message-----
> From: Ilya [mailto:mail@krel.org]
> Sent: Thursday, September 20, 2001 10:04 PM
> To: syslog-ng@lists.balabit.hu
> Subject: Re: [syslog-ng]compile fail on FreeBSD 4.4-RC
> 
> 
> stavke was not available at the time. and surely 4.4 RC is 
> more stable than
> current
> anyways, it gives same result on Stable now. seems to me its 
> ipv6 related
> is there way to turn off ipv6 support during syslog-ng compilation?
> 
> 
> ----- Original Message -----
> From: "Brad Arlt" <arlt@cpsc.ucalgary.ca>
> To: <syslog-ng@lists.balabit.hu>
> Sent: Thursday, September 20, 2001 3:16 PM
> Subject: Re: [syslog-ng]compile fail on FreeBSD 4.4-RC
> 
> 
> > On Thu, Sep 20, 2001 at 12:04:56AM -0400, Ilya wrote:
> > > any ideas?
> >
> > Since RC means release cantidate (I think/hope), my vote is the same
> > as the compilers
> >
> > nscache.c:247: This may be due to a compiler bug or to 
> impossible asm
> > nscache.c:247: statements or clauses.
> >
> > There really shouldn't be *any* syntax errors in system 
> files, unless
> > they are included after syslog-ng or libol header files (which could
> > propigate errors in them to the system files via the magic of parse
> > errors).  This smacks of compiler/cpp/header file problems to me.
> >
> > Either try a known good version of syslog-ng (1.4.x?) or try FreeBSD
> > 4.4-STABLE or FreeBSD-Current.
> >
> > >
> gcc -DHAVE_CONFIG_H -I. -I/usr/tmp/syslog-ng-1.5.10/src -I.   
>   -g -O2 -Wall
> > >  -I/usr/local/include/libol -D_GNU_SOURCE -c nscache.c
> > > In file included from nscache.c:55:
> > > /usr/include/netinet/in.h:233: syntax error before `in_addr_t'
> > > /usr/include/netinet/in.h:285: syntax error before `u_char'
> > > In file included from /usr/include/netinet/in.h:475,
> > >                  from nscache.c:55:
> > > /usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
> > > /usr/include/netinet6/in6.h:610: syntax error before `*'
> > > /usr/include/netinet6/in6.h:612: syntax error before `*'
> > > /usr/include/netinet6/in6.h:612: warning: data definition 
> has no type or
> > > storage class
> > > /usr/include/netinet6/in6.h:613: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:614: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:629: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:634: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
> > > nscache.c: In function `nscache_new':
> > > nscache.c:112: structure has no member named `s_addr'
> > > nscache.c: In function `nscache_lookup':
> > > nscache.c:178: structure has no member named `s_addr'
> > > nscache.c:183: structure has no member named `s_addr'
> > > nscache.c:183: structure has no member named `s_addr'
> > > nscache.c:245: structure has no member named `s_addr'
> > > nscache.c:245: structure has no member named `s_addr'
> > > nscache.c:247: fixed or forbidden register 0 (ax) was 
> spilled for class
> > > AREG.
> > > nscache.c:247: This may be due to a compiler bug or to 
> impossible asm
> > > nscache.c:247: statements or clauses.
> > > nscache.c:247: This is the instruction:
> > > (insn 56 55 58 (parallel[
> > >             (set (reg:SI 2 %ecx)
> > >                 (udiv:SI (reg/v:SI 2 %ecx)
> > >                     (reg:SI 1 %edx)))
> > >             (set (reg:SI 1 %edx)
> > >                 (umod:SI (reg/v:SI 2 %ecx)
> > >                     (reg:SI 1 %edx)))
> > >         ] ) 243 {udivmodsi4} (insn_list 49 (insn_list 55 (nil)))
> > >     (expr_list:REG_DEAD (reg/v:SI 2 %ecx)
> > >         (expr_list:REG_DEAD (reg:SI 1 %edx)
> > >             (expr_list:REG_UNUSED (reg:SI 2 %ecx)
> > >                 (nil)))))
> > > *** Error code 1
> > >
> > > Stop in /usr/tmp/syslog-ng-1.5.10/src.
> > >
> > >
> > > _______________________________________________
> > > syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> > > https://lists.balabit.hu/mailman/listinfo/syslog-ng
> > 
> --------------------------------------------------------------
> ------------
> --
> >    __o Bradley Arlt   Email: arlt@cpsc.ucalgary.ca         o__
> >  _ \<_     WWW: www.acs.ucalgary.ca/~bdarlt   _>/ _
> > (_)/(_)  -Eat well, sleep peacefully, drink lots, and ride 
> like hell.
> (_)\(_)
> >
> > _______________________________________________
> > syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> > https://lists.balabit.hu/mailman/listinfo/syslog-ng
> >
> 
> 
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> 

------_=_NextPart_001_01C142AF.7A5BEF80
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">



RE: [syslog-ng]compile fail on FreeBSD 4.4-RC



Ran into the same issue with 1.5.8 as well. Essentially:

In nscache.h insert above the other includes:

#include <sys/types.h>
#include <sys/socket.h>

and in nscache.c, comment out:

#include <netdb.h>
#include <netinet/in.h>

And it should build.
> -----Original Message-----
> From: Ilya [mailto:mail@krel.org]
> Sent: Thursday, September 20, 2001 10:04 PM
> To: syslog-ng@lists.balabit.hu
> Subject: Re: [syslog-ng]compile fail on FreeBSD 4.4-RC
>
>
> stavke was not available at the time. and surely 4.4 RC is
> more stable than
> current
> anyways, it gives same result on Stable now. seems to me its
> ipv6 related
> is there way to turn off ipv6 support during syslog-ng compilation?
>
>
> ----- Original Message -----
> From: "Brad Arlt" <arlt@cpsc.ucalgary.ca>
> To: <syslog-ng@lists.balabit.hu>
> Sent: Thursday, September 20, 2001 3:16 PM
> Subject: Re: [syslog-ng]compile fail on FreeBSD 4.4-RC
>
>
> > On Thu, Sep 20, 2001 at 12:04:56AM -0400, Ilya wrote:
> > > any ideas?
> >
> > Since RC means release cantidate (I think/hope), my vote is the same
> > as the compilers
> >
> > nscache.c:247: This may be due to a compiler bug or to
> impossible asm
> > nscache.c:247: statements or clauses.
> >
> > There really shouldn't be *any* syntax errors in system
> files, unless
> > they are included after syslog-ng or libol header files (which could
> > propigate errors in them to the system files via the magic of parse
> > errors).  This smacks of compiler/cpp/header file problems to me.
> >
> > Either try a known good version of syslog-ng (1.4.x?) or try FreeBSD
> > 4.4-STABLE or FreeBSD-Current.
> >
> > >
> gcc -DHAVE_CONFIG_H -I. -I/usr/tmp/syslog-ng-1.5.10/src -I.  
>   -g -O2 -Wall
> > >  -I/usr/local/include/libol -D_GNU_SOURCE -c nscache.c
> > > In file included from nscache.c:55:
> > > /usr/include/netinet/in.h:233: syntax error before `in_addr_t'
> > > /usr/include/netinet/in.h:285: syntax error before `u_char'
> > > In file included from /usr/include/netinet/in.h:475,
> > >                  from nscache.c:55:
> > > /usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
> > > /usr/include/netinet6/in6.h:610: syntax error before `*'
> > > /usr/include/netinet6/in6.h:612: syntax error before `*'
> > > /usr/include/netinet6/in6.h:612: warning: data definition
> has no type or
> > > storage class
> > > /usr/include/netinet6/in6.h:613: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:614: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:629: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:634: syntax error before `u_int8_t'
> > > /usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
> > > nscache.c: In function `nscache_new':
> > > nscache.c:112: structure has no member named `s_addr'
> > > nscache.c: In function `nscache_lookup':
> > > nscache.c:178: structure has no member named `s_addr'
> > > nscache.c:183: structure has no member named `s_addr'
> > > nscache.c:183: structure has no member named `s_addr'
> > > nscache.c:245: structure has no member named `s_addr'
> > > nscache.c:245: structure has no member named `s_addr'
> > > nscache.c:247: fixed or forbidden register 0 (ax) was
> spilled for class
> > > AREG.
> > > nscache.c:247: This may be due to a compiler bug or to
> impossible asm
> > > nscache.c:247: statements or clauses.
> > > nscache.c:247: This is the instruction:
> > > (insn 56 55 58 (parallel[
> > >             (set (reg:SI 2 %ecx)
> > >                 (udiv:SI (reg/v:SI 2 %ecx)
> > >                     (reg:SI 1 %edx)))
> > >             (set (reg:SI 1 %edx)
> > >                 (umod:SI (reg/v:SI 2 %ecx)
> > >                     (reg:SI 1 %edx)))
> > >         ] ) 243 {udivmodsi4} (insn_list 49 (insn_list 55 (nil)))
> > >     (expr_list:REG_DEAD (reg/v:SI 2 %ecx)
> > >         (expr_list:REG_DEAD (reg:SI 1 %edx)
> > >             (expr_list:REG_UNUSED (reg:SI 2 %ecx)
> > >                 (nil)))))
> > > *** Error code 1
> > >
> > > Stop in /usr/tmp/syslog-ng-1.5.10/src.
> > >
> > >
> > > _______________________________________________
> > > syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> > > https://lists.balabit.hu/mailman/listinfo/syslog-ng
> >
> --------------------------------------------------------------
> ------------
> --
> >    __o Bradley Arlt   Email: arlt@cpsc.ucalgary.ca         o__
> >  _ \<_     WWW: www.acs.ucalgary.ca/~bdarlt   _>/ _
> > (_)/(_)  -Eat well, sleep peacefully, drink lots, and ride
> like hell.
> (_)\(_)
> >
> > _______________________________________________
> > syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> > https://lists.balabit.hu/mailman/listinfo/syslog-ng
> >
>
>
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
>

------_=_NextPart_001_01C142AF.7A5BEF80--