Re: [7.99.20] Build error

BERTRAND Joël <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
Martin Husemann a écrit :
> On Sun, Jul 19, 2015 at 10:55:22AM -0400, Christos Zoulas wrote:
>> These are hardcoded in the flex binary I think:
>> $ strings /usr/obj/x86_64/tools/bin/nblex | grep FLEX_MINOR_VERSION
>> #define YY_FLEX_MINOR_VERSION 5
>
> I think his lex binary got corrupted, remember we had some dependency
> issues that you fixed later?
>
> Joel, can you fetch the comp.tgz set from a recent daily build and replace
> your lex binary with the one in there, then retry?

	Done. I have replaced lex binary from last HEAD/comp.tgz I have found 
(nyftp.netbsd.org). Same result :

dependall ===> tools/mdsetimage
dependall ===> tools/asn1_compile
/usr/src/../tools/bin/nbyacc: 4 shift/reduce conflicts.
lex.c:13:30: error: operator '>' has no left operand
  #define YY_FLEX_MAJOR_VERSION
                               ^
/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1/gen.c: In function 
'init_generate':
/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1/gen.c:159:7: warning: 
passing argument 1 of 'basename' discards 'const' qualifier from pointer 
target type [enabled by default]
        basename(filename));
        ^
In file included from 
/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1/gen.c:39:0:
/usr/include/libgen.h:38:7: note: expected 'char *' but argument is of 
type 'const char *'
  char *basename(char *);
        ^
/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1/gen.c:272:7: warning: 
passing argument 1 of 'basename' discards 'const' qualifier from pointer 
target type [enabled by default]
        basename(filename));
        ^
In file included from 
/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1/gen.c:39:0:
/usr/include/libgen.h:38:7: note: expected 'char *' but argument is of 
type 'const char *'
  char *basename(char *);
        ^
/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1/gen.c: In function 
'generate_header_of_codefile':
/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1/gen.c:370:7: warning: 
passing argument 1 of 'basename' discards 'const' qualifier from pointer 
target type [enabled by default]
        basename(orig_filename));
        ^
In file included from 
/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1/gen.c:39:0:
/usr/include/libgen.h:38:7: note: expected 'char *' but argument is of 
type 'const char *'
  char *basename(char *);
        ^
lex.c:13:30: error: operator '>' has no left operand
  #define YY_FLEX_MAJOR_VERSION
                               ^
--- lex.lo ---

	Best regards,

	JKB
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.