Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failures #50

Closed
rusty-snake opened this issue Nov 8, 2020 · 1 comment
Closed

build failures #50

rusty-snake opened this issue Nov 8, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@rusty-snake
Copy link
Collaborator

$ ./configure && make
...
/usr/bin/ld: XXX.o:/home/user/fdns/src/fdns/fdns.h:270: multiple definition of `arg_fallback_server'; cache.o:/home/user/fdns/src/fdns/fdns.h:270: first defined here
...
$ ./configure --enable-fatal-warnings && make
...
server.c:36:2: error: missing initializer for field ‘website’ of ‘DnsServer’ {aka ‘struct dnsserver_t’} [-Werror=missing-field-initializers]
   36 |  { NULL, 0, "adguard", "94.140.14.14"}, // adblock
      |  ^
In file included from server.c:19:
fdns.h:164:8: note: ‘website’ declared here
  164 |  char *website; // website
      |        ^~~~~~~
server.c:37:2: error: missing initializer for field ‘website’ of ‘DnsServer’ {aka ‘struct dnsserver_t’} [-Werror=missing-field-initializers]
   37 |  { NULL, 0, "cleanbrowsing", "185.228.168.9"}, // security
      |  ^
In file included from server.c:19:
fdns.h:164:8: note: ‘website’ declared here
  164 |  char *website; // website
      |        ^~~~~~~
server.c:38:2: error: missing initializer for field ‘website’ of ‘DnsServer’ {aka ‘struct dnsserver_t’} [-Werror=missing-field-initializers]
   38 |  { NULL, 0, "cloudflare", "1.1.1.2"},  // security
      |  ^
In file included from server.c:19:
fdns.h:164:8: note: ‘website’ declared here
  164 |  char *website; // website
      |        ^~~~~~~
server.c:39:2: error: missing initializer for field ‘website’ of ‘DnsServer’ {aka ‘struct dnsserver_t’} [-Werror=missing-field-initializers]
   39 |  { NULL, 0, "nextdns", "45.90.28.141" }, // security
      |  ^
In file included from server.c:19:
fdns.h:164:8: note: ‘website’ declared here
  164 |  char *website; // website
      |        ^~~~~~~
server.c:40:2: error: missing initializer for field ‘website’ of ‘DnsServer’ {aka ‘struct dnsserver_t’} [-Werror=missing-field-initializers]
   40 |  { NULL, 0, "quad9", "9.9.9.9"}  // security
      |  ^
In file included from server.c:19:
fdns.h:164:8: note: ‘website’ declared here
  164 |  char *website; // website
      |        ^~~~~~~
cc1: all warnings being treated as errors
@rusty-snake rusty-snake added the bug Something isn't working label Nov 8, 2020
@netblue30
Copy link
Owner

Fixed, thanks!

netblue30 pushed a commit that referenced this issue Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants