Skip to content

nsd-control says "input in flex scanner failed" #119

Closed
@hdatma

Description

@hdatma

I am at pains with this error message.

This is how I configured:

>configure --prefix=$prefix \
   --sysconfdir=$etc --with-configdir=$etc --with-nsd_conf_file=$etc \
   --localstatedir=$var \
   --mandir=$man \
   --with-chroot=$prefix \
   --with-xfrdir=$var/tmp \
   --with-user=$username \
   --with-ssl=$foot/share/openssl \
   --with-libevent=no \
   --enable-checking \
   --enable-ratelimit \
   --enable-pie \
   --enable-relro-now \
   --disable-flto \
   --disable-largefile

[...]
checking for gawk... gawk
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/grep -E
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether lex accepts -i... yes
checking if lex defines yy_current_buffer... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for uid_t in sys/types.h... yes
...

This is what the compiler says:

In file included from dns.c:24:
./zonec.h:120:37: warning: this function declaration is not a prototype [-Wstrict-prototypes]
void zadd_rdata_txt_clean_wireformat();
                                    ^
                                     void

In file included from rdata.c:25:
./zonec.h:120:37: warning: this function declaration is not a prototype [-Wstrict-prototypes]
void zadd_rdata_txt_clean_wireformat();
                                    ^
                                     void

In file included from tsig.c:16:
./tsig-openssl.h:25:27: warning: this function declaration is not a prototype [-Wstrict-prototypes]
void tsig_openssl_finalize();
                          ^
                           void

In file included from tsig-openssl.c:14:
./tsig-openssl.h:25:27: warning: this function declaration is not a prototype [-Wstrict-prototypes]
void tsig_openssl_finalize();
                          ^
                           void

In file included from util.c:38:
./zonec.h:120:37: warning: this function declaration is not a prototype [-Wstrict-prototypes]
void zadd_rdata_txt_clean_wireformat();
                                    ^
                                     void

ipc.c:53:2: warning: code will never be executed [-Wunreachable-code]
        exit(0);
        ^~~~

server.c:1657:4: warning: code will never be executed [-Wunreachable-code]
                        exit(0);
                        ^~~~
server.c:1854:3: warning: code will never be executed [-Wunreachable-code]
                log_crypto_err("Error in SSL_CTX_ecdh_auto, not enabling ECDHE");
                ^~~~~~~~~~~~~~

In file included from dbaccess.c:29:
./zonec.h:120:37: warning: this function declaration is not a prototype [-Wstrict-prototypes]
void zadd_rdata_txt_clean_wireformat();
                                    ^
                                     void

In file included from zlexer.lex:26:
./zonec.h:120:37: warning: this function declaration is not a prototype [-Wstrict-prototypes]
void zadd_rdata_txt_clean_wireformat();
                                    ^
                                     void

In file included from zonec.c:35:
./zonec.h:120:37: warning: this function declaration is not a prototype [-Wstrict-prototypes]
void zadd_rdata_txt_clean_wireformat();
                                    ^
                                     void

In file included from zparser.y:19:
./zonec.h:120:37: warning: this function declaration is not a prototype [-Wstrict-prototypes]
void zadd_rdata_txt_clean_wireformat();
                                    ^
                                     void

In file included from nsd-checkzone.c:23:
./zonec.h:120:37: warning: this function declaration is not a prototype [-Wstrict-prototypes]
void zadd_rdata_txt_clean_wireformat();
                                    ^
                                     void

nsd-control.c:66:18: warning: this function declaration is not a prototype [-Wstrict-prototypes]
static void usage() ATTR_NORETURN;
                 ^
                  void

The server starts and runs, however.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions