From owner-svn-ports-head@freebsd.org Sat Jul 14 14:10:34 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9D6EF102C4C1; Sat, 14 Jul 2018 14:10:33 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C5637AD85; Sat, 14 Jul 2018 14:10:33 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2D25F1FFB3; Sat, 14 Jul 2018 14:10:33 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6EEAXuw050096; Sat, 14 Jul 2018 14:10:33 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6EEATNf050078; Sat, 14 Jul 2018 14:10:29 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201807141410.w6EEATNf050078@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sat, 14 Jul 2018 14:10:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r474640 - head/net/xorp/files X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: head/net/xorp/files X-SVN-Commit-Revision: 474640 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jul 2018 14:10:34 -0000 Author: pi Date: Sat Jul 14 14:10:29 2018 New Revision: 474640 URL: https://svnweb.freebsd.org/changeset/ports/474640 Log: net/xorp: fix build PR: 217152 Submitted by: Walter Schwarzenfeld Reported by: O. Hartmann Approved by: hrs (maintainer timeout) Added: head/net/xorp/files/patch-cplfile.c (contents, props changed) head/net/xorp/files/patch-element.hh (contents, props changed) head/net/xorp/files/patch-expand.c (contents, props changed) head/net/xorp/files/patch-getline.c (contents, props changed) head/net/xorp/files/patch-history.c (contents, props changed) head/net/xorp/files/patch-homedir.c (contents, props changed) head/net/xorp/files/patch-io__ip__socket.cc (contents, props changed) head/net/xorp/files/patch-lex.boot.cc (contents, props changed) head/net/xorp/files/patch-lex.opcmd.cc (contents, props changed) head/net/xorp/files/patch-lex.tplt.cc (contents, props changed) head/net/xorp/files/patch-lex.yy__policy__backend__parser.cc (contents, props changed) head/net/xorp/files/patch-lex.yy__policy__parser.cc (contents, props changed) head/net/xorp/files/patch-netstream__access.h (contents, props changed) head/net/xorp/files/patch-pathutil.c (contents, props changed) head/net/xorp/files/patch-pcache.c (contents, props changed) head/net/xorp/files/patch-popen.cc (contents, props changed) head/net/xorp/files/patch-strptime.c (contents, props changed) head/net/xorp/files/patch-y.boot__tab.cc (contents, props changed) head/net/xorp/files/patch-y.opcmd__tab.cc (contents, props changed) head/net/xorp/files/patch-y.tplt__tab.cc (contents, props changed) Modified: head/net/xorp/files/patch-SConstruct head/net/xorp/files/patch-libproto__packet.cc Modified: head/net/xorp/files/patch-SConstruct ============================================================================== --- head/net/xorp/files/patch-SConstruct Sat Jul 14 12:25:39 2018 (r474639) +++ head/net/xorp/files/patch-SConstruct Sat Jul 14 14:10:29 2018 (r474640) @@ -1,4 +1,4 @@ ---- SConstruct.orig 2012-01-11 17:56:10 UTC +--- SConstruct.orig 2018-07-11 16:37:51 UTC +++ SConstruct @@ -162,22 +162,13 @@ if (len(COMMAND_LINE_TARGETS) == 0): @@ -25,11 +25,55 @@ variables = vars) prefix = env['prefix'] -@@ -880,6 +871,7 @@ env.AppendUnique(CFLAGS = [ - '-Wcast-align', +@@ -853,20 +844,6 @@ if env['enable_boost']: + + # Some platforms have alignment warnings that cannot easily be + # fixed, so we can't enable Werror for them. +-if ((build != "i386-pc-mingw32") and +- (host_cpu == "i686" or +- host_cpu == "i386" or +- host_cpu == "x86_64")): +- env.AppendUnique(CFLAGS = [ +- '-Werror', +- ]) +- env.AppendUnique(CXXFLAGS = [ +- '-Werror', +- ]) +-else: +- print "WARNING: Detected funky platform, will not enable -Werror compile option: ", host_cpu +- +- + # NOTE: gcc specific flags. + env.AppendUnique(CFLAGS = [ + '-W', +@@ -874,12 +851,14 @@ env.AppendUnique(CFLAGS = [ + '-Wwrite-strings', + '-Wbad-function-cast', + '-Wmissing-prototypes', +- '-Wcast-qual', ++ '-Wno-cast-qual', ++ '-Wno-sign-compare', + '-Wmissing-declarations', + '-Wpointer-arith', +- '-Wcast-align', '-Wstrict-prototypes', '-Wnested-externs', + '-Wno-unused-function', ++ '-Wno-unused-parameter', + '-pipe', + ]) + +@@ -887,11 +866,10 @@ env.AppendUnique(CXXFLAGS = [ + '-W', + '-Wall', + '-Wwrite-strings', +- '-Wcast-qual', ++ '-Wno-cast-qual', ++ '-Wno-sign-compare', + '-Wpointer-arith', +- '-Wcast-align', + '-Woverloaded-virtual', +- '-ftemplate-depth-25', '-pipe', ]) Added: head/net/xorp/files/patch-cplfile.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-cplfile.c Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,35 @@ +--- cli/libtecla/cplfile.c.orig 2018-07-11 16:49:26 UTC ++++ cli/libtecla/cplfile.c +@@ -314,7 +314,7 @@ int _cf_complete_file(WordCompletion *cp + * might be the start of the last component, and mark the character + * that follows it as the start of the name that is to be completed. + */ +- if(nleft >= FS_DIR_SEP_LEN && ++ if((unsigned long)(nleft) >= FS_DIR_SEP_LEN && + strncmp(lptr + seglen, FS_DIR_SEP, FS_DIR_SEP_LEN)==0) { + word_start = (lptr + seglen) - line + FS_DIR_SEP_LEN; + }; +@@ -394,12 +394,12 @@ int _cf_complete_file(WordCompletion *cp + /* + * Prevent extra directory separators from being added. + */ +- if(nleft >= FS_DIR_SEP_LEN && ++ if((unsigned long)(nleft) >= FS_DIR_SEP_LEN && + strcmp(cf->path->name, FS_ROOT_DIR) == 0 && + strncmp(lptr, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) { + lptr += FS_DIR_SEP_LEN; + nleft -= FS_DIR_SEP_LEN; +- } else if(vlen > FS_DIR_SEP_LEN && ++ } else if((unsigned long)(vlen) > FS_DIR_SEP_LEN && + strcmp(value + vlen - FS_DIR_SEP_LEN, FS_DIR_SEP)==0) { + cf->path->name[vlen-FS_DIR_SEP_LEN] = '\0'; + }; +@@ -781,7 +781,7 @@ static char *cf_read_name(CompleteFile * + * Get the environment variable name that follows the dollar. + */ + for(sptr=string,namlen=0; +- namlen < nmax && (slen-namlen < FS_DIR_SEP_LEN || ++ namlen < nmax && ((unsigned long)(slen-namlen) < FS_DIR_SEP_LEN || + strncmp(sptr, FS_DIR_SEP, FS_DIR_SEP_LEN) != 0); + namlen++) { + nambuf[namlen] = *sptr++; Added: head/net/xorp/files/patch-element.hh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-element.hh Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,11 @@ +--- policy/common/element.hh.orig 2018-07-03 02:07:04 UTC ++++ policy/common/element.hh +@@ -24,6 +24,7 @@ + #define __POLICY_COMMON_ELEMENT_HH__ + + ++#pragma clang diagnostic ignored "-Wundefined-var-template" + + #include "libxorp/ipv4.hh" + #include "libxorp/ipv6.hh" + Added: head/net/xorp/files/patch-expand.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-expand.c Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,11 @@ +--- cli/libtecla/expand.c.orig 2018-07-11 16:57:16 UTC ++++ cli/libtecla/expand.c +@@ -322,7 +322,7 @@ FileExpansion *ef_expand_file(ExpandFile + * If the caller specified that the whole of path[] be matched, + * work out the corresponding length. + */ +- if(pathlen < 0 || pathlen > strlen(path)) ++ if(pathlen < 0 || (unsigned long)(pathlen) > strlen(path)) + pathlen = strlen(path); + /* + * Discard previous expansion results. Added: head/net/xorp/files/patch-getline.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-getline.c Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,56 @@ +--- cli/libtecla/getline.c.orig 2018-07-11 18:33:06 UTC ++++ cli/libtecla/getline.c +@@ -2180,7 +2180,7 @@ static int gl_add_char_to_line(GetLine * + * If not, simply return, leaving it up to the calling program + * to check for the absence of a newline character. + */ +- if((gl->insert || buff_curpos >= gl->ntotal) && gl->ntotal >= gl->linelen) ++ if((gl->insert || buff_curpos >= gl->ntotal) && (unsigned long)(gl->ntotal) >= gl->linelen) + return 0; + /* + * Are we adding characters to the line (ie. inserting or appending)? +@@ -2310,7 +2310,7 @@ static int gl_add_string_to_line(GetLine + * If not, simply return, leaving it up to the calling program + * to check for the absence of a newline character. + */ +- if(gl->ntotal + buff_slen > gl->linelen) ++ if((unsigned long)((gl->ntotal + buff_slen)) > gl->linelen) + return 0; + /* + * Move the characters that follow the cursor in the buffer by +@@ -4581,7 +4581,7 @@ static KT_KEY_FN(gl_complete_word) + /* + * Will there be space for the expansion in the line buffer? + */ +- if(gl->ntotal + nextra < gl->linelen) { ++ if((unsigned long)((gl->ntotal + nextra)) < gl->linelen) { + /* + * Make room to insert the filename extension. + */ +@@ -4726,7 +4726,7 @@ static KT_KEY_FN(gl_expand_filename) + /* + * Will there be space for the expansion in the line buffer? + */ +- if(gl->ntotal + nextra >= gl->linelen) { ++ if((unsigned long)((gl->ntotal + nextra)) >= gl->linelen) { + fprintf(stderr, "\r\nInsufficient room in line for file expansion.\r\n"); + redisplay = 1; + } else { +@@ -7104,7 +7104,7 @@ static int gl_interpret_char(GetLine *gl + * input line buffer, and watch for the end of the line. + */ + if(gl->editor == GL_NO_EDITOR) { +- if(gl->ntotal >= gl->linelen) { ++ if((unsigned long)(gl->ntotal) >= gl->linelen) { + ret = 0; + goto ret_label; + } +@@ -7813,7 +7813,7 @@ int gl_group_history(GetLine *gl, unsign + /* + * If the group isn't being changed, do nothing. + */ +- if(_glh_get_group(gl->glh) == id) ++ if((unsigned int)((_glh_get_group(gl->glh))) == id) + return 0; + /* + * Establish the new group. Added: head/net/xorp/files/patch-history.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-history.c Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,48 @@ +--- cli/libtecla/history.c.orig 2018-07-11 18:08:59 UTC ++++ cli/libtecla/history.c +@@ -253,7 +253,7 @@ int _glh_add_history(GlHistory *glh, con + /* + * If the line is too big to fit in the buffer, truncate it. + */ +- if(nchar > glh->buflen) ++ if((unsigned long)(nchar) > glh->buflen) + nchar = glh->buflen; + /* + * Is the line empty? +@@ -272,7 +272,7 @@ int _glh_add_history(GlHistory *glh, con + * don't add it again, unless explicitly told to. + */ + if(!force && +- list->tail && strlen(glh->buffer + list->tail->start) == nchar-1 && ++ list->tail && strlen(glh->buffer + list->tail->start) == (unsigned long)((nchar-1)) && + strncmp(line, glh->buffer + list->tail->start, nchar-1)==0) + return 0; + /* +@@ -311,7 +311,7 @@ int _glh_add_history(GlHistory *glh, con + * at the end of the buffer, then shift the remaining contents + * of the buffer to the end of the buffer. + */ +- if(start + nchar >= glh->buflen) { ++ if(start + (unsigned long)(nchar) >= glh->buflen) { + GlLineNode *last; /* The last line in the buffer */ + GlLineNode *ln; /* A member of the list of line locations */ + int shift; /* The shift needed to move the contents of the */ +@@ -1897,15 +1897,15 @@ static GlLineNode *_glh_find_id(GlHistor + /* + * Search forwards from 'node'? + */ +- if(node->id < id) { +- while(node && node->id != id) ++ if((unsigned long)(node->id) < id) { ++ while(node && (unsigned long)(node->id) != id) + node = node->next; + glh->id_node = node ? node : glh->list.tail; + /* + * Search backwards from 'node'? + */ + } else { +- while(node && node->id != id) ++ while(node && (unsigned long)(node->id) != id) + node = node->prev; + glh->id_node = node ? node : glh->list.head; + }; Added: head/net/xorp/files/patch-homedir.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-homedir.c Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,11 @@ +--- cli/libtecla/homedir.c.orig 2018-07-11 18:41:32 UTC ++++ cli/libtecla/homedir.c +@@ -146,7 +146,7 @@ HomeDir *_new_HomeDir(void) + * a pathname, increase its length. + */ + pathlen = _pu_pathname_dim(); +- if(pathlen > home->buflen) ++ if(pathlen > (unsigned long)(home->buflen)) + home->buflen = pathlen; + /* + * Allocate a work buffer. Added: head/net/xorp/files/patch-io__ip__socket.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-io__ip__socket.cc Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,16 @@ +--- fea/data_plane/io/io_ip_socket.cc.orig 2018-07-10 15:49:50 UTC ++++ fea/data_plane/io/io_ip_socket.cc +@@ -2293,10 +2293,10 @@ IoIpSocket::send_packet(const string& if + // + struct sockaddr_in sin; + src_address.copy_out(sin); +- if (bind(_proto_socket_out, ++ bind(_proto_socket_out, + reinterpret_cast(&sin), +- sizeof(sin)) +- < 0) { ++ sizeof(sin)); ++ if ( reinterpret_cast(&sin) < ((void*)0)) { + error_msg = c_format("raw socket bind(%s) failed: %s", + cstring(src_address), XSTRERROR); + XLOG_ERROR("%s", error_msg.c_str()); Added: head/net/xorp/files/patch-lex.boot.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-lex.boot.cc Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,119 @@ +--- rtrmgr/lex.boot.cc.orig 2018-07-12 14:00:49 UTC ++++ rtrmgr/lex.boot.cc +@@ -9674,9 +9674,9 @@ YY_MALLOC_DECL + + YY_DECL + { +- register yy_state_type yy_current_state; +- register char *yy_cp, *yy_bp; +- register int yy_act; ++ yy_state_type yy_current_state; ++ char *yy_cp, *yy_bp; ++ int yy_act; + + #line 242 "boot.ll" + +@@ -9723,7 +9723,7 @@ YY_DECL + yy_match: + do + { +- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; ++ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; +@@ -10246,9 +10246,9 @@ case YY_STATE_EOF(arith): + + static int yy_get_next_buffer() + { +- register char *dest = yy_current_buffer->yy_ch_buf; +- register char *source = yytext_ptr; +- register int number_to_move, i; ++ char *dest = yy_current_buffer->yy_ch_buf; ++ char *source = yytext_ptr; ++ int number_to_move, i; + int ret_val; + + if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) +@@ -10378,14 +10378,14 @@ static int yy_get_next_buffer() + + static yy_state_type yy_get_previous_state() + { +- register yy_state_type yy_current_state; +- register char *yy_cp; ++ yy_state_type yy_current_state; ++ char *yy_cp; + + yy_current_state = yy_start; + + for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) + { +- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); ++ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; +@@ -10417,10 +10417,10 @@ static yy_state_type yy_try_NUL_trans( y + yy_state_type yy_current_state; + #endif + { +- register int yy_is_jam; +- register char *yy_cp = yy_c_buf_p; ++ int yy_is_jam; ++ char *yy_cp = yy_c_buf_p; + +- register YY_CHAR yy_c = 1; ++ YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; +@@ -10441,14 +10441,14 @@ yy_state_type yy_current_state; + + #ifndef YY_NO_UNPUT + #ifdef YY_USE_PROTOS +-static void yyunput( int c, register char *yy_bp ) ++static void yyunput( int c, char *yy_bp ) + #else + static void yyunput( c, yy_bp ) + int c; +-register char *yy_bp; ++char *yy_bp; + #endif + { +- register char *yy_cp = yy_c_buf_p; ++ char *yy_cp = yy_c_buf_p; + + /* undo effects of setting up yytext */ + *yy_cp = yy_hold_char; +@@ -10456,10 +10456,10 @@ register char *yy_bp; + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ +- register int number_to_move = yy_n_chars + 2; +- register char *dest = &yy_current_buffer->yy_ch_buf[ ++ int number_to_move = yy_n_chars + 2; ++ char *dest = &yy_current_buffer->yy_ch_buf[ + yy_current_buffer->yy_buf_size + 2]; +- register char *source = ++ char *source = + &yy_current_buffer->yy_ch_buf[number_to_move]; + + while ( source > yy_current_buffer->yy_ch_buf ) +@@ -10921,7 +10921,7 @@ yyconst char *s2; + int n; + #endif + { +- register int i; ++ int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; + } +@@ -10935,7 +10935,7 @@ static int yy_flex_strlen( s ) + yyconst char *s; + #endif + { +- register int n; ++ int n; + for ( n = 0; s[n]; ++n ) + ; + Added: head/net/xorp/files/patch-lex.opcmd.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-lex.opcmd.cc Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,119 @@ +--- rtrmgr/lex.opcmd.cc.orig 2018-07-12 13:48:34 UTC ++++ rtrmgr/lex.opcmd.cc +@@ -640,9 +640,9 @@ YY_MALLOC_DECL + + YY_DECL + { +- register yy_state_type yy_current_state; +- register char *yy_cp, *yy_bp; +- register int yy_act; ++ yy_state_type yy_current_state; ++ char *yy_cp, *yy_bp; ++ int yy_act; + + #line 31 "op_commands.ll" + +@@ -689,7 +689,7 @@ YY_DECL + yy_match: + do + { +- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; ++ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; +@@ -1085,9 +1085,9 @@ case YY_STATE_EOF(string): + + static int yy_get_next_buffer() + { +- register char *dest = yy_current_buffer->yy_ch_buf; +- register char *source = yytext_ptr; +- register int number_to_move, i; ++ char *dest = yy_current_buffer->yy_ch_buf; ++ char *source = yytext_ptr; ++ int number_to_move, i; + int ret_val; + + if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) +@@ -1217,14 +1217,14 @@ static int yy_get_next_buffer() + + static yy_state_type yy_get_previous_state() + { +- register yy_state_type yy_current_state; +- register char *yy_cp; ++ yy_state_type yy_current_state; ++ char *yy_cp; + + yy_current_state = yy_start; + + for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) + { +- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); ++ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; +@@ -1256,10 +1256,10 @@ static yy_state_type yy_try_NUL_trans( y + yy_state_type yy_current_state; + #endif + { +- register int yy_is_jam; +- register char *yy_cp = yy_c_buf_p; ++ int yy_is_jam; ++ char *yy_cp = yy_c_buf_p; + +- register YY_CHAR yy_c = 1; ++ YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; +@@ -1280,14 +1280,14 @@ yy_state_type yy_current_state; + + #ifndef YY_NO_UNPUT + #ifdef YY_USE_PROTOS +-static void yyunput( int c, register char *yy_bp ) ++static void yyunput( int c, char *yy_bp ) + #else + static void yyunput( c, yy_bp ) + int c; +-register char *yy_bp; ++char *yy_bp; + #endif + { +- register char *yy_cp = yy_c_buf_p; ++ char *yy_cp = yy_c_buf_p; + + /* undo effects of setting up yytext */ + *yy_cp = yy_hold_char; +@@ -1295,10 +1295,10 @@ register char *yy_bp; + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ +- register int number_to_move = yy_n_chars + 2; +- register char *dest = &yy_current_buffer->yy_ch_buf[ ++ int number_to_move = yy_n_chars + 2; ++ char *dest = &yy_current_buffer->yy_ch_buf[ + yy_current_buffer->yy_buf_size + 2]; +- register char *source = ++ char *source = + &yy_current_buffer->yy_ch_buf[number_to_move]; + + while ( source > yy_current_buffer->yy_ch_buf ) +@@ -1760,7 +1760,7 @@ yyconst char *s2; + int n; + #endif + { +- register int i; ++ int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; + } +@@ -1774,7 +1774,7 @@ static int yy_flex_strlen( s ) + yyconst char *s; + #endif + { +- register int n; ++ int n; + for ( n = 0; s[n]; ++n ) + ; + Added: head/net/xorp/files/patch-lex.tplt.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-lex.tplt.cc Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,119 @@ +--- rtrmgr/lex.tplt.cc.orig 2018-07-12 13:54:23 UTC ++++ rtrmgr/lex.tplt.cc +@@ -8789,9 +8789,9 @@ YY_MALLOC_DECL + + YY_DECL + { +- register yy_state_type yy_current_state; +- register char *yy_cp, *yy_bp; +- register int yy_act; ++ yy_state_type yy_current_state; ++ char *yy_cp, *yy_bp; ++ int yy_act; + + #line 230 "template.ll" + +@@ -8838,7 +8838,7 @@ YY_DECL + yy_match: + do + { +- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; ++ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; +@@ -9471,9 +9471,9 @@ case YY_STATE_EOF(string): + + static int yy_get_next_buffer() + { +- register char *dest = yy_current_buffer->yy_ch_buf; +- register char *source = yytext_ptr; +- register int number_to_move, i; ++ char *dest = yy_current_buffer->yy_ch_buf; ++ char *source = yytext_ptr; ++ int number_to_move, i; + int ret_val; + + if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) +@@ -9603,14 +9603,14 @@ static int yy_get_next_buffer() + + static yy_state_type yy_get_previous_state() + { +- register yy_state_type yy_current_state; +- register char *yy_cp; ++ yy_state_type yy_current_state; ++ char *yy_cp; + + yy_current_state = yy_start; + + for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) + { +- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); ++ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; +@@ -9642,10 +9642,10 @@ static yy_state_type yy_try_NUL_trans( y + yy_state_type yy_current_state; + #endif + { +- register int yy_is_jam; +- register char *yy_cp = yy_c_buf_p; ++ int yy_is_jam; ++ char *yy_cp = yy_c_buf_p; + +- register YY_CHAR yy_c = 1; ++ YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; +@@ -9666,14 +9666,14 @@ yy_state_type yy_current_state; + + #ifndef YY_NO_UNPUT + #ifdef YY_USE_PROTOS +-static void yyunput( int c, register char *yy_bp ) ++static void yyunput( int c, char *yy_bp ) + #else + static void yyunput( c, yy_bp ) + int c; +-register char *yy_bp; ++char *yy_bp; + #endif + { +- register char *yy_cp = yy_c_buf_p; ++ char *yy_cp = yy_c_buf_p; + + /* undo effects of setting up yytext */ + *yy_cp = yy_hold_char; +@@ -9681,10 +9681,10 @@ register char *yy_bp; + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ +- register int number_to_move = yy_n_chars + 2; +- register char *dest = &yy_current_buffer->yy_ch_buf[ ++ int number_to_move = yy_n_chars + 2; ++ char *dest = &yy_current_buffer->yy_ch_buf[ + yy_current_buffer->yy_buf_size + 2]; +- register char *source = ++ char *source = + &yy_current_buffer->yy_ch_buf[number_to_move]; + + while ( source > yy_current_buffer->yy_ch_buf ) +@@ -10146,7 +10146,7 @@ yyconst char *s2; + int n; + #endif + { +- register int i; ++ int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; + } +@@ -10160,7 +10160,7 @@ static int yy_flex_strlen( s ) + yyconst char *s; + #endif + { +- register int n; ++ int n; + for ( n = 0; s[n]; ++n ) + ; + Added: head/net/xorp/files/patch-lex.yy__policy__backend__parser.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-lex.yy__policy__backend__parser.cc Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,87 @@ +--- policy/backend/lex.yy_policy_backend_parser.cc.orig 2018-07-10 15:46:56 UTC ++++ policy/backend/lex.yy_policy_backend_parser.cc +@@ -728,9 +728,9 @@ extern int yy_policy_backend_parserlex ( + */ + YY_DECL + { +- register yy_state_type yy_current_state; +- register char *yy_cp, *yy_bp; +- register int yy_act; ++ yy_state_type yy_current_state; ++ char *yy_cp, *yy_bp; ++ int yy_act; + + #line 40 "backend.l" + +@@ -779,7 +779,7 @@ YY_DECL + yy_match: + do + { +- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; ++ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; +@@ -1171,9 +1171,9 @@ case YY_STATE_EOF(STR): + */ + static int yy_get_next_buffer (void) + { +- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; +- register char *source = (yytext_ptr); +- register int number_to_move, i; ++ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; ++ char *source = (yytext_ptr); ++ int number_to_move, i; + int ret_val; + + if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) +@@ -1297,14 +1297,14 @@ static int yy_get_next_buffer (void) + + static yy_state_type yy_get_previous_state (void) + { +- register yy_state_type yy_current_state; +- register char *yy_cp; ++ yy_state_type yy_current_state; ++ char *yy_cp; + + yy_current_state = (yy_start); + + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) + { +- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); ++ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; +@@ -1329,10 +1329,10 @@ static int yy_get_next_buffer (void) + */ + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) + { +- register int yy_is_jam; +- register char *yy_cp = (yy_c_buf_p); ++ int yy_is_jam; ++ char *yy_cp = (yy_c_buf_p); + +- register YY_CHAR yy_c = 1; ++ YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; +@@ -1933,7 +1933,7 @@ int yy_policy_backend_parserlex_destroy + #ifndef yytext_ptr + static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) + { +- register int i; ++ int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; + } +@@ -1942,7 +1942,7 @@ static void yy_flex_strncpy (char* s1, y + #ifdef YY_NEED_STRLEN + static int yy_flex_strlen (yyconst char * s ) + { +- register int n; ++ int n; + for ( n = 0; s[n]; ++n ) + ; + Added: head/net/xorp/files/patch-lex.yy__policy__parser.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-lex.yy__policy__parser.cc Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,87 @@ +--- policy/lex.yy_policy_parser.cc.orig 2018-07-12 13:40:14 UTC ++++ policy/lex.yy_policy_parser.cc +@@ -3092,9 +3092,9 @@ extern int yy_policy_parserlex (void); + */ + YY_DECL + { +- register yy_state_type yy_current_state; +- register char *yy_cp, *yy_bp; +- register int yy_act; ++ yy_state_type yy_current_state; ++ char *yy_cp, *yy_bp; ++ int yy_act; + + #line 62 "policy.l" + +@@ -3143,7 +3143,7 @@ YY_DECL + yy_match: + do + { +- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; ++ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; +@@ -3667,9 +3667,9 @@ case YY_STATE_EOF(STR): + */ + static int yy_get_next_buffer (void) + { +- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; +- register char *source = (yytext_ptr); +- register int number_to_move, i; ++ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; ++ char *source = (yytext_ptr); ++ int number_to_move, i; + int ret_val; + + if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) +@@ -3793,14 +3793,14 @@ static int yy_get_next_buffer (void) + + static yy_state_type yy_get_previous_state (void) + { +- register yy_state_type yy_current_state; +- register char *yy_cp; ++ yy_state_type yy_current_state; ++ char *yy_cp; + + yy_current_state = (yy_start); + + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) + { +- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); ++ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; +@@ -3825,10 +3825,10 @@ static int yy_get_next_buffer (void) + */ + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) + { +- register int yy_is_jam; +- register char *yy_cp = (yy_c_buf_p); ++ int yy_is_jam; ++ char *yy_cp = (yy_c_buf_p); + +- register YY_CHAR yy_c = 1; ++ YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; +@@ -4429,7 +4429,7 @@ int yy_policy_parserlex_destroy (void) + #ifndef yytext_ptr + static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) + { +- register int i; ++ int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; + } +@@ -4438,7 +4438,7 @@ static void yy_flex_strncpy (char* s1, y + #ifdef YY_NEED_STRLEN + static int yy_flex_strlen (yyconst char * s ) + { +- register int n; ++ int n; + for ( n = 0; s[n]; ++n ) + ; + Modified: head/net/xorp/files/patch-libproto__packet.cc ============================================================================== --- head/net/xorp/files/patch-libproto__packet.cc Sat Jul 14 12:25:39 2018 (r474639) +++ head/net/xorp/files/patch-libproto__packet.cc Sat Jul 14 14:10:29 2018 (r474640) @@ -1,5 +1,16 @@ ---- libproto/packet.cc.orig 2012-01-11 17:56:10 UTC +--- libproto/packet.cc.orig 2018-07-10 12:55:07 UTC +++ libproto/packet.cc +@@ -88,8 +88,8 @@ IpHeader4::fragment(size_t mtu, list strlen(string)) ++ if(slen < 0 || (unsigned long)(slen) > strlen(string)) + slen = strlen(string); + /* + * Resize the pathname if needed. +@@ -239,7 +239,7 @@ char *_pn_prepend_to_path(PathName *path + /* + * How many characters should be appended? + */ +- if(slen < 0 || slen > strlen(string)) ++ if(slen < 0 || (unsigned long)(slen) > strlen(string)) + slen = strlen(string); + /* + * Work out how far we need to shift the original path string to make +@@ -494,7 +494,7 @@ char *_pu_start_of_path(const char *stri + break; + }; + }; +- return (char *)string + i + 1; ++ return (char *)(string + i + 1); + } + + /*....................................................................... +@@ -534,7 +534,7 @@ char *_pu_end_of_path(const char *string + escaped = 1; + }; + }; +- return (char *)string + i; ++ return (char *)(string + i); + } + + /*....................................................................... Added: head/net/xorp/files/patch-pcache.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/xorp/files/patch-pcache.c Sat Jul 14 14:10:29 2018 (r474640) @@ -0,0 +1,38 @@ +--- cli/libtecla/pcache.c.orig 2018-07-11 18:23:55 UTC ++++ cli/libtecla/pcache.c +@@ -601,7 +601,7 @@ static int pca_extract_dir(PathCache *pc + */ + { + int dirlen = strlen(pc->path->name); +- if(dirlen < FS_DIR_SEP_LEN || ++ if((unsigned long)(dirlen) < FS_DIR_SEP_LEN || + strncmp(pc->path->name + dirlen - FS_DIR_SEP_LEN, FS_DIR_SEP, + FS_DIR_SEP_LEN) != 0) { + if(_pn_append_to_path(pc->path, FS_DIR_SEP, FS_DIR_SEP_LEN, 0) == NULL) { +@@ -1500,7 +1500,7 @@ static int cpa_cmd_contains_path(const c + * If the filename starts with the root directory, then it obviously + * starts with a pathname. + */ +- if(prefix_len >= FS_ROOT_DIR_LEN && ++ if((unsigned long)(prefix_len) >= FS_ROOT_DIR_LEN && + strncmp(prefix, FS_ROOT_DIR, FS_ROOT_DIR_LEN) == 0) + return 1; + /* +@@ -1509,7 +1509,7 @@ static int cpa_cmd_contains_path(const c + * starts with a pathname specification (valid or otherwise). + */ + for(i=0; i= FS_DIR_SEP_LEN && ++ if((unsigned long)((prefix_len - i)) >= FS_DIR_SEP_LEN && + strncmp(prefix + i, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) + return 1; + }; +@@ -1653,7 +1653,7 @@ static int pca_expand_tilde(PathCache *p + * skip over it so that it doesn't get copied into the output pathname + */ + if(homedir && strcmp(homedir, FS_ROOT_DIR) == 0 && +- (pptr-path) + FS_DIR_SEP_LEN < pathlen && ++ (pptr-path) + FS_DIR_SEP_LEN < (unsigned long)(pathlen) && + strncmp(pptr, FS_DIR_SEP, FS_DIR_SEP_LEN) == 0) { + pptr += FS_DIR_SEP_LEN; + }; *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***