Currently builds for ARC are failing, causing follow-up breakage. It
seems that uclibc defines __GLIBC__ on the build bots.
This commit adds a test for execinfo.h to the configure script. The
result of the test is then used in xpp/xtalk/debug.c.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Add two patches to fix general compile issues. The first masks out some
glibc specific extensions if using a different libc.
The second fixes a compile issue with newer compilers.
Like this it's possible to easily add more executables to the packages
should the need (or wish) arise. This also gets rid of the following
warnings:
cc1: note: someone does not honour COPTS correctly, passed 2 times
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. This commit reverts the
change.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. This commit reverts the
change.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Upstream fixed dependency on libpcap. The lib does not link to it
anymore as it does not need it.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Version bump. New version does not have too many changes, but upstream
cleaned up the autoconf files. As a result autoreconf is now needed to
get the configure script.
This commit adds a configure switch to get the make output as verbose as
in the past.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. This commit reverts the
change.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
It is unlikely that SOFT_FLOAT is toggled, but add it to
PKG_CONFIG_DEPENDS for completeness' sake anyway.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Includes security fixes:
2094: Crash when receiving SDP with invalid fmtp attribute
2095: Crash when parsing SDP with an invalid media format description
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
spandsp already makes sure that the compiler emits position-independent
code. Adding $(FPIC) makes no difference. In addition the spandsp build
system puts its own flag behind the CFLAGS, overriding whatever was set
before.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
bgg729 already makes sure that the compiler emits position-independent
code. Adding $(FPIC) makes no difference. In addition the libsrtp build
system puts its own flag behind the CFLAGS, overriding whatever was set
before.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Use $(INSTALL_DATA) for the header file.
- Make sure that also the libpri.so symlink gets installed.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libosip2 already makes sure that the compiler emits position-independent
code. Adding $(FPIC) makes no difference. In addition the libosip2 build
system puts its own flag behind the CFLAGS, overriding whatever was set
before.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- use $(INSTALL_BIN) and $(INSTALL_DATA) where possible.
- instead of creating symlinks manually just copy them.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Remove all flags/variables that are not used at all.
- dahdi-tools already makes sure that the compiler emits
position-independent code for libtonezone. Adding $(FPIC) makes no
difference. In addition the dahdi-toolsbuild system puts its own flag
behind the CFLAGS, overriding whatever was set before. Also the
applications should never be built with PIC, it should only be done for
the lib.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Remove all flags/variables that are not used at all. Remove some ':'
that are not needed in the context.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
bgg729 already makes sure that the compiler emits position-independent
code. Adding $(FPIC) makes no difference. In addition the bcg729 build
system puts its own flag behind the CFLAGS, overriding whatever was set
before.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Add TARGET_CPPFLAGS to TARGET_CFLAGS, otherwise OpenWrt's CPPFLAGS are
ignored (i.e. fortify-source headers are not picked up).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Starting with 4.12 there are module build errors due to the
arch-specific uaccess.h using a macro defined in the generic include.
The generic include has been around since 2.6.18 and has always included
asm/uaccess.h, so switch to using the generic include for all kernels
which have it.
Example build failure:
CC [M] /data/bowl-builder/mips64_octeon/build/sdk/build_dir/target-mips64_octeon_64_musl/linux-octeon/dahdi-linux-2.11.1-20180111/drivers/dahdi/wcb4xxp/base.o
In file included from ../dahdi-linux-2.11.1-20180111/drivers/dahdi/wcb4xxp/base.c:38:0:
./arch/mips/include/asm/uaccess.h: In function 'eva_kernel_access':
./arch/mips/include/asm/uaccess.h:91:9: error: implicit declaration of function 'uaccess_kernel' [-Werror=implicit-function-declaration]
return uaccess_kernel();
^
cc1: some warnings being treated as errors
The same can currently be seen on arc_archs where also kernel 4.14.18 is
used.
The patch just follows what Ubuntu's Seth Forshee suggested for openafs,
which ran into the same problem. The commit message is largely just
copied from Seth's commit message as well :)
The issue has been reported to upstream here:
https://issues.asterisk.org/jira/browse/DAHLIN-360
The same patch has been uploaded there.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
ARC toolchain exports __arc__, which clashes with a symbol of the same
name in libosip2. This commit undefines the toolchain symbol when
building the library.
The fix was found in buildroot repo. Thanks to whoever spotted this!
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Currently dahdi-linux fails to compile on targets that use kernel 4.14.
Changes were introduced in kernels 4.11 and 4.13 that cause these build
failures.
Update to an upstream git snapshot to fix the breakage.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
As of 2017, all patents have expired. Full announcement text below:
As of January 1, 2017 the patent terms of most Licensed Patents under the G.729 Consortium have expired.
With regard to the unexpired Licensed Copyrights and Licensed Patents of the G.729 Consortium Patent License Agreement, the Licensors of the G.729 Consortium, namely Orange SA, Nippon Telegraph and Telephone Corporation and Université de Sherbrooke (“Licensors”) have agreed to license the same under the existing terms on a royalty-free basis starting January 1, 2017.
For current Licensees of the G.729 Consortium Patent License Agreement, no reports and no payments will be due for Licensed Products Sold or otherwise distributed as of January 1, 2017.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Add build-time dependency on gettext-full/host. When it is not installed
Makefile.in.in doesn't exist and the gsmlib build fails.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- the Savannah source URI doesn't have the 1.0.4 release; switch it to
linphone.org
- even with the source available the build fails, as the source now
defaults to cmake for building. So switch our build process from
autotools to cmake as well.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- add CROSS_COMPILE and OS to MAKE_FLAGS; this should help when
compiling on other OSes, e.g. Darwin.
- move RELEASE up (alphabetical sort)
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
On most mipsel targets re fails to build because the re Makefile adds
"-march=mips32" to CFLAGS:
Assembler messages:
Error: -mips32r2 conflicts with the other architecture options, which imply -mips32
src/sip/addr.c:1:0: error: '-mips32r2' conflicts with the other architecture options, which specify a mips32 processor
/**
^
Makefile:92: recipe for target 'build-mipsel/sip/addr.o' failed
Fix this by preventing re from adding to OpenWrt CFLAGS.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
re and baresip builds for 32bit x86 targets are currently failing:
build-i386/sip/auth.o: In function `sip_auth_encode':
/build/lede-snapshots/i386_pentium/build/sdk/build_dir/target-i386_pentium_musl/re-0.5.6/src/sip/auth.c:279: undefined reference to `__stack_chk_fail_local'
The undefined references occur because there is no linking done to ssp.
Fix this by setting LD to TARGET_CC, so ld is not called directly. This
also means one patch is not needed anymore.
Do the same for rem and restund as they basically all share the same
build system.
Compile-tested for x86, x86_64 and mips.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Change from custom make call to using the default Build/Compile routine.
This applies the standard memory corruption mitigation methods, e.g.
FORTIFY_SOURCE and RELRO, to the package if they are enabled (default).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Using the CFLAGS from the environment of Build/Compile the optimizations
from libre now appear after OpenWrt CFLAGS, overriding them. Prevent
that by disabling libre's optimization altogether.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
When using the default Build/Compile routine $LD is set to the actual
linker, so libre's build system is not using ld indirectly via the
compiler anymore. But it feeds -rdynamic to ld instead of
--export-dynamic. Fix that with this patch.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
With FORTIFY_SOURCE enabled the compiler errors our when libre defines
ssize_t again. Prevent that by adding the proper hint to the header in
question.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Remove unneeded variables, whitespaces and trailing slashes, use
specific INSTALL directive instead of "$(CP)".
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Change from custom make call to using the default Build/Compile routine.
This applies the standard memory corruption mitigation methods, e.g.
FORTIFY_SOURCE and RELRO to the package, if they are enabled (default).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Update from 2.6 to 2.7.1.
- Update sed script because the TARGET_CFLAGS now occur twice in the .pc
file.
- Upgrade dependency from libsrtp to libsrtp2.
- Drop patches that were included upstream.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Currently iksemel doesn't recognize gnutls anymore. Fix that by
substituting the currently used patches with one that also Debian is
using. It allows gnutls detection via pkgconfig.
- Add another patch Debian is using to enable secure gnutls options.
- Update project URL.
- Remove unneeded flags and Build/Prepare customizations.
- Cleanup DEPENDS.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Plain git:// doesn't add security. Use https:// instead. See
https://gist.github.com/grawity/4392747.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The dependencies in the default section were modified instead of just
the ones for dahdi-cfg. Fix that.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- Remove some unnecessary trailing slashes plus fix a whitespace.
- Remove flags that do not seem to have a good reason to be there
(anymore).
- Add sed script to remove $(TARGET_CFLAGS) from pkgconfig file. This
gets rid of the warnings in asterisk13 about COPTS duplication.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Copied from Asterisk, sets some sane values. For instance it enables
IPv6 support.
Also it disables DEBUG. With debug enabled 'pjproject enables "assert"
functions which can cause Asterisk to crash unexpectedly' (quote from
Asterisk wiki). This probably fixes issue #140.
With this config_site.h in place the libsrtp dep can be dropped from
select sub packages.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- Make "--disable-floating-point" depend on SOFT_FLOAT
- Remove "--disable-ilbc-coder" as configure no longer recognizes it.
- Align args with the ones used by Asterisk (for their bundled pjproject);
this includes adding "--disable-resample".
- With libresample removed remove the dep from asterisk13 accordingly.
- Note: the disabled items are _not_ used by Asterisk anyway.
- Drop speex dep as pjproject does not link against it the way it is
configured.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Add patches provided by Asterisk project for pjproject. This fixes the
following vulnerabilities:
- AST-2017-002: Buffer Overrun in PJSIP transaction layer (CVE-2017-9372)
- AST-2017-003: Crash in PJSIP multi-part body parser
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
When opus is found in staging area it will be linked against, adding a
dep that is not in the Makefile. So explicity disable opus.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
On a Netgear R7000 (ARMv7) without floating point, using SpanDSP with
fixed point to send/receive fax on Asterisk resulted in repeated
failure and intermittent performance. Disabling fixed point fixed
these issues; the software floating point implementation was fine for
real-time use.
Now on a Netgear R7800 (ARMv7) with hardware floating point, the
autoconf auto-detect will say no floating point is available, and
again enables the poor performing fixed point implementation. Ouch!
DAHDI tries downloading firmware blobs from Digium's server which are
for hardware not supported by the OpenWrt package and those blobs are
licensed prohibiting redistribution. Thus there is no point in
downloading them at all, especially as the download failing frequently
causes build failures.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
this seems to fix a strange error where the last stage
cannot find libgcc.a or libgcc.so
only compile tested
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Unbreak dahdi-linux build at least for cns3xxx, kirkwood, mvebu and oxnas
by explicitely including slab.h in oct612x-user.c.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>