[ntp:hackers] Please test this path to 4.2.8

Harlan Stenn stenn at ntp.org
Fri Dec 26 07:39:05 UTC 2014


Mike Nolan writes:
> I guess that is important: My system has gcc 3.2.3 as its compiler.
> It also has Sun WorkShop 6 update 1 C 5.2 2000/09/11
> available, but apparently config chooses gcc

You can override the choice of C compiler on the configure line.

For more information see sntp/m4/ntp_compiler.m4 .  I see we require c89
right now, and based on the issue Brian is seeing with // comments I'm
wondering if we need to bump that requirement to C99, or if it would be
"enough" to require c89 that also understands // .

H
--
> I doubt that there is a "stock" Solaris 8 system in the wild.
> 
> -Mike
> 
> 
> On Thu, Dec 25, 2014 at 04:42:28PM -0500, brian utterback wrote:
> > On a Solaris 8 system with Sun Studio compiler, it fails here:
> > 
> > "authkeys.c", line 60: warning: syntax error:  empty declaration
> > "authkeys.c", line 66: syntax error before or at: /
> > "authkeys.c", line 66: invalid source character: '#'
> > "authkeys.c", line 66: undefined or not a type: define
> > "authkeys.c", line 66: cannot recover from previous errors
> > 
> > The line is commented out with a C++ double slash rather than the C /*
> > */. Later compilers must be more forgiving since this line hasn't
> > changed recently.
> > 
> > Brian
> > 
> > On 12/24/2014 9:06 AM, Mike Nolan wrote:
> > > On an ancient Solaris system, 4.2.8 failed in io.c as previously reported
> > > for other systems. Bug2650 fails much earlier in the make. I don't expect
> > > support of such an old system, but mention it because it fails quite diff
> erently.
> > >
> > > SunOS cuca 5.8 Generic_108528-08 sun4u sparc SUNW,Ultra-30
> > >
> > > on ntp-4.2.8:
> > >
> > > ntp_io.c: In function `is_ip_address':
> > > ntp_io.c:762: warning: cast increases required alignment of target type
> > > ntp_io.c: In function `read_network_packet':
> > > ntp_io.c:3460: union has no member named `_S6_un'
> > >
> > >
> > > on ntp4-4.2.8-bug2650.tar.gz
> > >
> > > Making all in libevent
> > >   GEN      include/event2/event-config.h
> > > make  all-am
> > >   CC       buffer.lo
> > > cc1: unrecognized option `-Wswitch-enum'
> > > cc1: unrecognized option `-Wstrict-aliasing'
> > > *** Error code 1
> > > make: Fatal error: Command failed for target `buffer.lo'
> > > Current working directory /share/radar1/nolan/Downloads/ntp4-4.2.8-bug265
> 0/sntp/libevent
> > >
> > > -------------------------------
> > >
> > > (nolan at rserv.naic.edu 5766) diff myconfiglog ../ntp4-4.2.8-bug2650/myconf
> iglog 
> > > 5a6
> > >> checking whether make supports nested variables... yes
> > > 61a63,64
> > >> checking for ar... ar
> > >> checking the archiver (ar) interface... ar
> > > 80d82
> > > < checking for ar... ar
> > > 217a220,221
> > >> checking for pkg-config... no
> > >> configure: Using libevent tearoff
> > > 581a586
> > >> checking for arc4random_buf... no
> > > 706d710
> > > < checking for pkg-config... no
> > > 768a773
> > >> checking that generated files are newer than configure... done
> > > 807d811
> > > < config.status: config.h is unchanged
> > > 810c814
> > > < === configuring in sntp (/home/nolan/Downloads/ntp-4.2.8/sntp)
> > > ---
> > >> === configuring in sntp (/home/nolan/Downloads/ntp4-4.2.8-bug2650/sntp)
> > > 816a821
> > >> checking whether make supports nested variables... yes
> > > 864a870,871
> > >> checking for ar... ar
> > >> checking the archiver (ar) interface... ar
> > > 1089d1095
> > > < checking for ar... ar
> > > 1265a1272
> > >> checking that generated files are newer than configure... done
> > > 1273d1279
> > > < config.status: config.h is unchanged
> > > 1276c1282
> > > < === configuring in libevent (/home/nolan/Downloads/ntp-4.2.8/sntp/libev
> ent)
> > > ---
> > >> === configuring in libevent (/home/nolan/Downloads/ntp4-4.2.8-bug2650/sn
> tp/libevent)
> > > 1282a1289
> > >> checking whether make supports nested variables... yes
> > > 1569a1577
> > >> checking that generated files are newer than configure... done
> > 
> > -- 
> > Brian Utterback
> > Solaris RPE, Oracle Corporation.
> > Ph:603-262-3916, Em:brian.utterback at oracle.com
> > 
> > _______________________________________________
> > hackers mailing list
> > hackers at lists.ntp.org
> > http://lists.ntp.org/listinfo/hackers
> 
> -- 
> Dr. Michael C. Nolan
> +1 787 878 2612x334 Fax: +1 787 878 1861 nolan at naic.edu
> Arecibo Observatory, HC 3 Box 53995, Arecibo, Puerto Rico 00612 USA
> _______________________________________________
> hackers mailing list
> hackers at lists.ntp.org
> http://lists.ntp.org/listinfo/hackers
> 


More information about the hackers mailing list