Commit Graph

113 Commits

Author SHA1 Message Date
joerg a34819e0d3 Remove files no longer used by 249b40b558955afe5ac2b549edcf2d7f859c8cc9 2021-05-30 02:58:06 +00:00
joerg 53d1339bf7 Update LLVM build system for 249b40b558955afe5ac2b549edcf2d7f859c8cc9
This enables the use of modules for a significant build performance gain
when building with clang as host compiler or when using HAVE_LLVM=yes.
Switch libc++ to using the copy from the mono-repo.
2021-05-30 01:56:44 +00:00
joerg 4d6fc14bc9 Import libc++ 249b40b558955afe5ac2b549edcf2d7f859c8cc9 2021-05-30 01:29:16 +00:00
joerg 82d56013d7 Import LLVM 249b40b558955afe5ac2b549edcf2d7f859c8cc9. 2021-05-30 01:26:32 +00:00
joerg e038c9c467 Import clang 249b40b558955afe5ac2b549edcf2d7f859c8cc9. 2021-05-30 01:25:15 +00:00
christos 962e2e4b64 MACHINE_CPU is always mips (no functional change) 2021-04-25 15:06:49 +00:00
mrg 97b36aa771 more GCC 10 fixes.
mDNSResponder: another wrong return local address

dhcp: ignore a seemingly impossible stringop overflow

hpacel: avoid maybe uninitialised error that is wrong.

rsh: avoid impossible malloc(0)

udf: cast pointers through (uintptr_t) to fool invalid boundary checks
2021-04-13 06:25:48 +00:00
rin 06f9eb9427 Add NetBSD/aarch64eb support to */config.guess for self-building and mknative.
XXX
Instead of patching each file, it would be better to maintain single
config.*'s as done in pkgsrc...

Patch provided by ryo@.
OK mrg@.
2020-10-20 10:41:49 +00:00
christos 625508a57b Disable an init-list-lifetime warning from gcc-9. 2020-09-07 19:05:41 +00:00
mrg e7ac2a8b5b apply some GCC 9 -Wno-error* 2020-09-07 00:18:25 +00:00
mrg cb93b81028 add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
2020-09-06 07:20:26 +00:00
roy a61295aa80 mdnsd: Make the unable to parse resolv.conf message informative
resovconf will SIGHUP mdnsd when resolv.conf changes so this message
should not be an error.
2020-07-22 19:05:14 +00:00
roy 1c95b6ce56 mdnsd: starting and stopping are informational messages 2020-07-21 14:11:39 +00:00
roy b27c70cad6 mdnsd: Treat EADDRNOTAVAIL as a transient error 2020-07-21 14:04:07 +00:00
kamil 4228f24a2e Build and install llvm-symbolizer for MKLLVM=yes
llvm-symbolizer is an alternative for GNU addr2line(1), heavily used by the
LLVM sanitizers.

Do not install it as tools as it is not necessary as of today in that
stage.
2020-06-09 21:50:32 +00:00
joerg 953536060d Fix harmless syntax error. 2020-02-23 02:01:17 +00:00
joerg 8beab7f7a8 Revert last. It was objected to pre-commit, there is no actual error
analysis or report and there is existing logic supposed to handle this.
2020-02-19 13:32:40 +00:00
kamil 88fd427e3b Disable HAVE_TERMINFO and HAVE_TERMIOS_H for ./build.sh tools build
These headers enable optional features and are not portable to all host
Operating Systems.

Speculative fix for certain Linux distributions.
2020-02-19 09:59:39 +00:00
jmcneill c91ab881ac Build radeon and nouveau drivers on evbarm. 2020-01-19 00:58:13 +00:00
joerg c091bb989f Use -fno-strict-aliasing unconditionally for the cross compiler. 2019-11-28 23:01:22 +00:00
joerg 404ee5b933 Build some more LLVM components for Gallium. Switch it to -Wl,-z,defs 2019-11-18 22:26:14 +00:00
joerg 5ad18e3550 Use a big hammer and disabling strict aliasing for the tools build or
when using GCC.
2019-11-18 19:54:23 +00:00
joerg c21ab1a1a0 Build libclangAST with -O1 when the host compiler is GCC 7 to avoid
miscompiles.
2019-11-16 15:51:26 +00:00
martin cced830f6a For gcc < 9 disable stringop-overflow warnings - they are broken. 2019-11-14 13:16:35 +00:00
joerg 76c7fc5f6b Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
joerg 7330f729cc Import 01f3a59fb3e2542fce74c768718f594d0debd0da from the LLVM mono-repo:
clang (without test/, unittests/, www/)
llvm (without test/, unittests/)
2019-11-08 14:28:07 +00:00
jhigh b302373f87 adding argon2 support to libcrypt. argon2 user authentication now
available via MKARGON2=yes (3 variants supported; argon2id recommended)
before using, please read argon2 paper at
https://github.com/P-H-C/phc-winner-argon2
2019-10-21 02:36:48 +00:00
wiz ebde28641d Fix date. 2019-10-09 13:25:20 +00:00
jhigh 0090dad153 added backend support for argon2 password scheme 2019-10-09 13:13:08 +00:00
thorpej 5d5d89b89e Get the very generically-named put_uint32(), etc. out of the application
namespace.  These symbols are not intended to be used outside of the
dns_sd library.
2019-07-04 15:54:09 +00:00
christos 7521fc28e7 Don't hard-code the path 2018-12-09 19:03:42 +00:00
christos 0f33703f35 It is not an error if we did not find any IPv4 interfaces. It could
be the case we never have V4 interfaces (in a V6 system) so this
is bogus. The code was recently changed to ignore loopback interfaces.
If mdnsd was started too early, this means that no interfaces would
be found (since interfaces down, with no addresses, or tentative
are ignored). I put back the loopback interfaces yesterday to avoid
this error, but this seems like the left hand not knowing what the
right hand does because whoever removed the loopback interfaces
from the list, did not read the 'self discovery' comment and the
special code that deals with loopback in this file. Nevertheless,
I think it is better to ignore the loopback interfaces in the long
run, but it is ok to keep them around since the code is handling
them just fine (and works both with and without them).
2018-11-19 08:14:28 +00:00
christos 96efac35b4 Use our getifaddrs version 2018-11-18 18:58:44 +00:00
christos 73617236ff print the path of the unix socket we could not create. 2018-11-18 18:58:05 +00:00
christos 50d2c4317f NFC: Fix commit message: Include the loopback so that we don't return an
empty address list before addresses are configured.
2018-11-18 18:57:12 +00:00
christos 29fb438a54 Add a simpler version to do interface enumeration that uses getifaddrs(3) 2018-11-18 18:55:49 +00:00
christos f1096f3c6c initialize addr to 0. 2018-05-02 12:12:13 +00:00
christos 0c6b6224b4 Add the missing lock. 2018-04-11 18:34:18 +00:00
christos d0c4b2c3b3 Add the location of the last lock to help debugging. 2018-04-11 18:33:48 +00:00
christos 03fd2bea72 instead of short-circuiting the test, set auto target host on by default. 2018-04-11 18:33:21 +00:00
christos 4fd06914cd remove format checker; cannot work because of %#a (ip address printing). 2018-04-08 13:43:29 +00:00
christos 067ca08c91 show how to turn on debugging. 2018-04-07 19:18:44 +00:00
christos 70d8d7a03a put back handling for SIOCGIFAFLAG_IN -- should not matter. 2018-04-07 19:18:16 +00:00
christos ebd0d44a84 When we advertise interfaces, don't skip if we are not autotargetting services
yet. It is the chicken and the egg problem.
2018-04-07 19:13:27 +00:00
christos 85ffe40e13 Allow overriding checking for debug functions 2018-04-07 19:09:12 +00:00
christos ce06c661cc Fix Reproducible builds by obeying MDNS_VERSIONSTR_NODTS in all cases.
Reported by wiz@
2018-03-03 16:09:56 +00:00
christos 4824f3b241 update upstream code changes in signal handling. 2018-02-25 21:06:40 +00:00
christos e68081c947 merge conflicts; also:
- Do the reuse-port first like MacOS/X otherwise we can't bind
- Disable SO_RECV_ANYIF hack
2018-02-25 20:04:55 +00:00
christos 200e8a27b2 import latest 2018-02-25 19:25:33 +00:00
christos 58300083f7 zero out socket structures before bind. 2018-02-25 19:22:41 +00:00