Commit Graph
70 Commits
Author SHA1 Message Date
Florian FainelliandGitHub 72373ebc5a Merge pull request #5827 from neheb/patch-4
iptraf-ng: Fix Source URLs
2018-04-12 11:36:37 -07:00
Florian FainelliandGitHub 343006bea9 Merge pull request #5179 from neheb/cifs
cifs-utils: Update to 6.7
2017-12-14 10:47:00 -08:00
Florian FainelliandGitHub 9491c76385 Merge pull request #5213 from lynxis/rb_openplc
open-plc-utils: remove build timestamp
2017-12-11 18:06:41 -08:00
Florian Fainelli 99374712ac softethervpn: Pass down CFLAGS, CPPFLAGS and LDFLAGS
The softethervpn does not actually supported CCFLAGS, or other standard
variables, so we need to override CC to include all of those to fix
build errors with external toolchains.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-07-27 18:23:04 -07:00
Florian Fainelli 749be47e53 sox: Explicitly disable support for OpenMP
In case a toolchain happens to be built with OpenMP, sox's configure
script would be picking that, but we would not be depending on libgomp
and would fail creating the package.

Since internal OpenWrt/LEDE toolchains don't enable OpenMP by default,
let's just do that here as well.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-07-27 17:13:43 -07:00
Florian Fainelli 89c49a64c7 portaudio: Pass down TARGET_CPPFLAGS only build what is necessary
We were not correctly passing down TARGET_CPPFLAGS which made external
toolchains not automatically searching for headers in $(STAGING_DIR) to
fail the build. We are also just packaging the library and headers, so
we do not need to build the tests and selftests.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-07-07 15:56:37 -07:00
Florian Fainelli a899a96f9e libnopoll: Fix clashes with sys/param.h and link with openssl
Some toolchains may automatically have sys/params.h which includes
isset() backport upstream commit
675ac7b4b64d398de8a61e9c713383b8c0d9071f to fix that. Also explicitly
link with openssl.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-07-02 20:51:17 -07:00
Florian Fainelli 38eb3ad83a jq: Set -std=c99 CLFAGS
Fixes build errors/warnings:

locfile.c: In function 'locfile_init':
locfile.c:21:3: error: 'for' loop initial declarations are only allowed
in C99 mode
   for (int i=0; i<length; i++) {

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-07-02 20:51:17 -07:00
Florian Fainelli 85b33b9097 rxtx: Fix permissions and format
* Don't make the Makefile executable
* run dos2unix on the Makefile

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-18 20:08:26 -07:00
Florian Fainelli cdc800874a zerotier: Allow building with older GCC 4.8
ZeroTier builds fine with GCC 4.8, so relax the check to make that
possible.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-18 20:08:26 -07:00
Florian Fainelli 6950ee9669 openzwave: Avoid picking host libraries
cpp/examples/MinOZW/Makefile contains this rule:

LIBS =  $(wildcard $(LIBDIR)/*.so $(LIBDIR)/*.dylib $(top_builddir)/*.so
$(top_builddir)/*.dylib $(top_builddir)/cpp/build/*.so
$(top_builddir)/cpp/build/*.dylib )
LIBSDIR = $(abspath $(dir $(firstword $(LIBS))))

with LIBDIR not being defined anywhere we end up picking up host
libraries.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-18 14:23:40 -07:00
Florian Fainelli 0b85489a97 cgi-io: Find and search for libubus.h
Fixes build errors with external toolchains:

[ 33%] Building C object CMakeFiles/cgi-io.dir/main.c.o
/home/florian/dev/openwrt/trunk/build_dir/target-mipsel-unknown-linux-gnu_glibc/cgi-io/main.c:30:21:
fatal error: libubus.h: No such file or directory
 #include <libubus.h>
                     ^
compilation terminated.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-18 12:45:30 -07:00
Florian Fainelli 3b333ec0f9 fping: Set -std=gnu99 to fix build errors due to C99 constructs
Fixes build errors such as:

mipsel-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..
-I/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/include
-I/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/include
-I/home/florian/dev/toolchains/stbgcc-4.8-1.5/usr/include
-I/home/florian/dev/toolchains/stbgcc-4.8-1.5/include  -Wall -Wextra
-Wno-sign-compare -DIPV6 -Os -pipe -mno-branch-likely -mips32r2
-mtune=24kc -fno-caller-saves -Wno-unused-result  -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro  -MT fping-optparse.o -MD -MP -MF
.deps/fping-optparse.Tpo -c -o fping-optparse.o `test -f 'optparse.c' ||
echo './'`optparse.c
optparse.c: In function 'permute':
optparse.c:55:5: error: 'for' loop initial declarations are only allowed
in C99 mode
     for (int i = index; i < options->optind - 1; i++)
     ^
optparse.c:55:5: note: use option -std=c99 or -std=gnu99 to compile your
code
optparse.c: In function 'optstring_from_long':
optparse.c:160:5: error: 'for' loop initial declarations are only
allowed in C99 mode
     for (int i = 0; !longopts_end(longopts, i); i++) {

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-18 11:39:44 -07:00
Florian Fainelli fcd25932bf btrfs-progs: Fix build with external toolchains
TARGET_CPPFLAGS were not propagated correctly leading to these kinds of
build failure:

btrfstune.c:26:23: fatal error: uuid/uuid.h: No such file or directory
 #include <uuid/uuid.h>
                       ^
compilation terminated.
btrfs-find-root.c:24:18: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
                  ^
compilation terminated.
mkfs/common.c:18:23: fatal error: uuid/uuid.h: No such file or directory
 #include <uuid/uuid.h>

Fix that by passing TARGET_CPPFLAGS via EXTRA_CFLAGS

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-16 20:47:03 -07:00
Florian Fainelli 7eaa97f91c reaver: Fix build with external toolchains
We would not be able to search for pcap.h because CFLAGS are not passed
from src/Makefile down to src/wps/Makefile:

make[4]: Entering directory
'/home/florian/dev/openwrt/trunk/build_dir/target-mipsel-unknown-linux-gnu_glibc/reaver-1.4/src/wps'
mipsel-linux-gnu-gcc -I../utils -I ../ wps_attr_build.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_attr_parse.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_attr_process.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_common.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_dev_attr.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_enrollee.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_registrar.c -c
In file included from ../misc.h:41:0,
                 from wps_registrar.c:27:
../defs.h:43:18: fatal error: pcap.h: No such file or directory
 #include <pcap.h>
                  ^
compilation terminated.
Makefile:28: recipe for target 'wps_registrar.o' failed

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-16 20:47:03 -07:00
Florian Fainelli 319c3dc5ad stoken: Explicitly link with zlib
Fixes build issues with external toolchains:
/home/florian/dev/toolchains/stbgcc-4.8-1.5/bin/../lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld:
warning: libz.so.1, needed by
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so,
not found (try using -rpath or -rpath-link)
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzopen64'
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzdirect'
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzclose'
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzwrite'
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzdopen'
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzread'
collect2: error: ld returned 1 exit status

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-16 20:47:03 -07:00
Florian Fainelli 482499b60b smartmontools: Fix build with CONFIG_USE_LIBSTDCXX
The Makefile would still force the use of and linking against uClibc++
even though libstdc++ may have been chosen, which would result in the
package depending on libstdcpp ($(CXX_DEPENDS) but we would still be
missing an libuClibc++ library depdency.

Fix this by looking at CONFIG_USE_UCLIBCXX to adjust the configure
script variables.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 18:16:41 -07:00
Florian Fainelli 140b3f2fe0 lpeg: Fix build with external toolchains
We are not properly passing down TARGET_CFLAGS and TARGET_CPPFLAGS and
this can be noticed with external toolchains with the following build
error:

mipsel-linux-gnu-gcc -Wall -Wextra -pedantic -Waggregate-return
-Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith
-Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast
-Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs
-Wstrict-prototypes  -O2 -std=c99 -I../lua/ -fPIC   -c -o lpvm.o lpvm.c
lpvm.c:10:17: fatal error: lua.h: No such file or directory
 #include "lua.h"
                 ^
compilation terminated.
make[4]: *** [lpvm.o] Error 1

Re-use COPT to pass our TARGET_CFLAGS and TARGET_CPPFLAGS

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:44:27 -07:00
Florian Fainelli 3ffd13fbd2 pciutils: Fix build with external toolchains
Passing GNU_TARGET_NAME implies that we have a 4-group triplet (e.g:
arm-openwrt-unknown-linux), and this works fine with pciutils'
lib/configure operating system detection. If we have an external
toolchain (e.g: mipsel-linux-gnu), the configure script is all confused
and ends-up picking up i386-ports, which is not valid on the target
architecture.

Finally, we are not passing TARGET_CPPFLAGS as we should, so let's do
that correctly.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli 43269ecf01 klish: Fix build errors with external toolchains
We would first not be able to properly detect libxml2 because it's not
automatically found, fix that by explicitly linking against it (and zlib
a dependency). Then if we don't don't define X_OPEN_SOURCE=500, we would
run into the following build error:

clish/shell/shell_execute.c: In function 'clish_shell_exec_action':
clish/shell/shell_execute.c:309:18: error: 'sigignore' undeclared (first
use in this function)
  sa.sa_handler = sigignore; /* Empty signal handler */
                  ^
clish/shell/shell_execute.c:309:18: note: each undeclared identifier is
reported only once for each function it appears in

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli c6f813df2b libplist: Explicitly link with zlib
Fixes build errors with external toolchains that don't automatically
append STAGING_DIR to the library search path:

/opt/toolchains/stbgcc-4.8-1.5/lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld:
warning: libz.so.1, needed by
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so,
not found (try using -rpath or -rpath-link)
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzopen64'
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzdirect'
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzclose'
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzwrite'
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzdopen'
/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/lib/libxml2.so:
undefined reference to `gzread'
collect2: error: ld returned 1 exit status
make[5]: *** [plistutil] Error 1
make[5]: Leaving directory
`/local/users/fainelli/openwrt/trunk/build_dir/target-mipsel-linux-gnu_glibc/libplist-1.13/tools'

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli 5374d8635d squashfs-tools: Pass down TARGET_CFLAGS, CPPFLAGS and LDFLAGs
This fixes build errors with external toolchains that don't
automatically search for headers in STAGING_DIR:

mipsel-linux-gnu-gcc   -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT   -c -o
gzip_wrapper.o gzip_wrapper.c
gzip_wrapper.c:27:18: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
                  ^
compilation terminated.
make[3]: *** [gzip_wrapper.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli fdd3f3f7f9 smartsnmpd: Properly pass down TARGET_CPPFLAGS
The smartsnmpd SConstruct file only accepts setting CFLAGS and does not
use CPPFLAGS, so pass both down using CFLAGS.

This fixes build errors with external toolchains that don't
automatically search for headers in $(STAGING_DIR).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli d3c11a8f92 ices: Explicitly link with libvorbisidec
We link against libshout which already links against libvorbisidec, this
is needed to pass the configure script that checks against libshout
symbols availability.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli bb1c950c52 tgt: Pass down TARGET_CPPFLAGS and TARGET_LDFLAGS
Make sure we pass down TARGET_CPPFLAGS and TARGET_LDFLAGS to fix build
with external toolchains that don't automatically search for headers and
libraries in $(STAGING_DIR).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli 20891e8d42 tgt: Drop dependency against KERNEL_DIRECT_IO
This was removed in LEDE commit 0b7ed65cec8084bb98ae0e2758b7aca6c447cd4b
("kernel: remove out of tree direct-io disable hack")

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-05 17:18:51 -07:00
Florian Fainelli 4eec08f225 fossil: Explicitly link with libm
Fixes the following build error with an external toolchain:

./bld/sqlite3.o: In function `fts5Bm25Function':
sqlite3.c:(.text+0x27234): undefined reference to `log'
./bld/piechart.o: In function `piechart_render':
piechart_.c:(.text+0x430): undefined reference to `sincos'
piechart_.c:(.text+0x47c): undefined reference to `sincos'
piechart_.c:(.text+0x548): undefined reference to `sincos'
collect2: error: ld returned 1 exit status
src/main.mk:526: recipe for target 'fossil' failed
make[3]: *** [fossil] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-04 19:48:46 -07:00
Florian Fainelli 657be0880b libcanfestival: Don't force -fhonour-opts
-fhonour-copts is an OpenWrt/LEDE toolchain specific patch, forcing it
will make external toolchain fail to build this package. What we need
instead is a way to override CFLAGS from the different Makefile files so
rename the patch to illustrate that.

Fixes: 317c2469d9 ("libcanfestival: fix several small build process issues")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-04 19:48:46 -07:00
Florian Fainelli b493f36887 linuxptp: Remove unnecessary netdb.h includes
This backports a patch that has been accepted upstream in linuxptp:
8b61aa2c3f3103db1d4ca1d1e49bb4f8831c1abf ("udp: Avoid including
netdb.h") to fix build errors with external glibc toolchains that
provide rpc/types.h.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-06-04 14:01:27 -07:00
Florian FainelliandGitHub 10ce951dec Merge pull request #4275 from mattsm/master
hfsprogs: fix when not linking aginst glibc
2017-04-18 10:53:33 -07:00
Florian Fainelli af2c2745e9 libsoxr: Explicitly disable support for OpenMP
In case a toolchain supports OpenMP (e.g: external toolchains), just
disable support for it in libsoxr since cmake would detect that and
later we would fail to create the package because there is no libgomp
package being created.

In case OpenMP is desireable and this is supported by the toolchain, we
should introduce a specific option for that.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-16 19:57:34 -07:00
Florian Fainelli 9a0e43db29 darkstat: Depend on libbsd for glibc-based toolchains
darkstat's configure script searches for libbsd for different routines,
so if it manages to pick it up, make sure the dependency is reflected.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-12 18:03:54 -07:00
Florian Fainelli 31f77baa3a ap51-flash: Define IPPORT_TFTP where it is used
Defining IPPORT_TFTP on the pre-processor command line leads to the
following error for glibc-based toolchains:

mipsel-linux-gnu-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc
-fno-caller-saves -mips16 -minterlink-mips16
-I/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/include
-I/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/include
-I/opt/toolchains/stbgcc-4.8-1.5/usr/include
-I/opt/toolchains/stbgcc-4.8-1.5/include  -Wall -Werror -W -g3
-std=gnu99 -Os -fno-strict-aliasing -DLINUX
-DREVISION_VERSION=\"2016-10-16\" -DFLASH_FROM_FILE -DNO_LIBPCAP
-D_GNU_SOURCE -UIPPORT_TFTP -DIPPORT_TFTP=69 -MD -c flash.c -o flash.o
<command-line>:0:13: error: expected identifier before numeric constant

Instead, move this where this gets used, in proto.c

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-12 18:03:54 -07:00
Florian FainelliandGitHub 1d9c683f3c Merge pull request #4226 from ffainelli/hiredis
hiredis: Fix __redis_strerror_r lvalue error
2017-04-04 12:16:54 -07:00
Florian FainelliandGitHub 483ab380b7 Merge pull request #4232 from ffainelli/haproxy
Haproxy builds fixes
2017-04-04 10:51:10 -07:00
Florian Fainelli 37e8aa3639 sslh: Also pass down TARGET_CPPFLAGS
Make sure we do pass TARGET_CPPFLAGS using CPPFLAGS (which is supported
by sslh's Makefile), fixing build issues with some external toolchains:

mipsel-linux-gnu-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc
-fno-caller-saves -Wno-unused-result  -D_FORTIFY_SOURCE=1 -Wl,-z,now
-Wl,-z,relro -DENABLE_REGEX -DLIBCONFIG -c sslh-main.c
sslh-main.c:26:23: fatal error: libconfig.h: No such file or directory
 #include <libconfig.h>
                       ^
compilation terminated.
Makefile:63: recipe for target 'sslh-main.o' failed
make[4]: *** [sslh-main.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-03 19:21:27 -07:00
Florian Fainelli 94478ebff8 hfsprogs: Fix build failures with external toolchains
Several problems were found with building against an external toolchain:

* TARGET_CPPFLAGS was missing which would prevent finding the headers
* TARGET_LDFLAGS also was not passed correctly
* when building against glibc, since we use strlcpy() we need to link
  against libbsd

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-02 20:00:33 -07:00
Florian FainelliandGitHub a04b137c87 Merge pull request #4224 from ffainelli/mdns
mdnsresponder: Also pass TARGET_CPPFLAGS
2017-04-02 19:12:19 -07:00
Florian Fainelli dad9606d4d haproxy: Fix PCRE_DIR include path
haproxy's Makefile already happens include/ after specifying PCRE_DIR
which would result in the following build errors on an external
toolchain that does not automatically search for headers in
$(STAGING_DIR):

mipsel-linux-gnu-gcc -Iinclude -Iebtree -Wall  -O2 -g
-fno-strict-aliasing -Wdeclaration-after-statement  -DBUFSIZE=16384
-DMAXREWRITE=1030 -DSYSTEM_MAXCONN=165530      -DCONFIG_HAP_LINUX_SPLICE
-DTPROXY -DCONFIG_HAP_LINUX_TPROXY -DCONFIG_HAP_CRYPT -DUSE_ZLIB
-DENABLE_POLL -DENABLE_EPOLL -DUSE_CPU_AFFINITY -DASSUME_SPLICE_WORKS
-DUSE_ACCEPT4 -DNETFILTER -DUSE_GETSOCKNAME -DCONFIG_REGPARM=3
-DUSE_OPENSSL  -DUSE_SYSCALL_FUTEX -DUSE_LUA
-I/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/lua-5.3.3/include
-DUSE_PCRE
-I/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/include/include
-DUSE_PCRE_JIT  -DCONFIG_HAPROXY_VERSION=\"1.7.4-patch02\"
-DCONFIG_HAPROXY_DATE=\"2017/04/01\" \
      -DBUILD_TARGET='"linux2628"' \
      -DBUILD_ARCH='""' \
      -DBUILD_CPU='"generic"' \
      -DBUILD_CC='"mipsel-linux-gnu-gcc"' \
      -DBUILD_CFLAGS='"-O2 -g -fno-strict-aliasing
-Wdeclaration-after-statement -DBUFSIZE=16384 -DMAXREWRITE=1030
-DSYSTEM_MAXCONN=165530"' \
      -DBUILD_OPTIONS='"USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1
USE_ZLIB=yes USE_REGPARM=1 USE_OPENSSL=1 USE_LUA=1 USE_PCRE=1
USE_PCRE_JIT=1"' \
       -c -o src/haproxy.o src/haproxy.c
In file included from include/types/proxy.h:33:0,
                 from include/proto/log.h:32,
                 from include/common/cfgparse.h:29,
                 from src/haproxy.c:65:
include/common/regex.h:31:18: fatal error: pcre.h: No such file or
directory
 #include <pcre.h>

Fix this by stripping the additional include/ being added.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-02 14:26:07 -07:00
Florian Fainelli 75091d42e1 haproxy: Pass down TARGET_CPPFLAGS for lua build
Some external toolchaind don't automatically search for headers in
$(STAGING_DIR), make sure we do pass TARGET_CPPFLAGS as appropriate.
This fixes build errors such as:

mipsel-linux-gnu-gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX
-c -o lua.o lua.c
lua.c:80:31: fatal error: readline/readline.h: No such file or directory
 #include <readline/readline.h>
                               ^
compilation terminated.
<builtin>: recipe for target 'lua.o' failed
make[6]: *** [lua.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-02 14:17:33 -07:00
Florian Fainelli 828a72d6ff squeezelite: Specify all libraries to link against
squeezelite needs to link against libvorbis and libogg, some external
toolchains may not be able to automatically pull these dependencies in,
resulting the such linking errors:

mipsel-linux-gnu-gcc main.o slimproto.o buffer.o stream.o utils.o
output.o output_alsa.o output_pa.o output_stdout.o output_pack.o
decode.o flac.o pcm.o mad.o vorbis.o faad.o
-L/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib
-L/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/lib
-L/home/florian/dev/toolchains/stbgcc-4.8-1.5/usr/lib
-L/home/florian/dev/toolchains/stbgcc-4.8-1.5/lib -znow -zrelro -lasound
-lpthread -lm -lrt  -lasound -lpthread -lm -lrt -lFLAC -lmad
-lvorbisfile -lfaad -o squeezelite
/home/florian/dev/toolchains/stbgcc-4.8-1.5/bin/../lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld:
warning: libvorbis.so.0, needed by
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libvorbisfile.so,
not found (try using -rpath or -rpath-link)
/home/florian/dev/toolchains/stbgcc-4.8-1.5/bin/../lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld:
warning: libogg.so.0, needed by
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libvorbisfile.so,
not found (try using -rpath or -rpath-link)
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libvorbisfile.so:
undefined reference to `ogg_stream_reset'
collect2: error: ld returned 1 exit status

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-02 14:02:09 -07:00
Florian Fainelli 11543475e3 uanytun: Pass down TARGET_CPPFLAGS
Fixes build errors with toolchains that don't automatically search for
headers in STAGING_DIR (such as external toolchains) resulting in the
following build failures:

mipsel-linux-gnu-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc
-fno-caller-saves -Wno-unused-result  -D_FORTIFY_SOURCE=1 -Wl,-z,now
-Wl,-z,relro  -DUSE_SSL_CRYPTO -c options.c
In file included from options.c:62:0:
auth_algo.h:53:26: fatal error: openssl/hmac.h: No such file or
directory
 #include <openssl/hmac.h>
                          ^
compilation terminated.
Makefile:95: recipe for target 'options.o' failed
make[4]: *** [options.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-02 13:56:08 -07:00
Florian Fainelli 2e5deb6263 vsftpd: Pass TARGET_CPPFLAGS
Fixes build errors with external toolchains that don't have STAGING_DIR
in their default search path for headers:

mipsel-linux-gnu-gcc -c ssl.c -Os -pipe -mno-branch-likely -mips32r2
-mtune=24kc -fno-caller-saves -Wno-unused-result  -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -D_GNU_SOURCE -include fcntl.h -idirafter
dummyinc
ssl.c:28:25: fatal error: openssl/err.h: No such file or directory
 #include <openssl/err.h>
                         ^
compilation terminated.
Makefile:28: recipe for target 'ssl.o' failed
make[3]: *** [ssl.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-02 11:36:20 -07:00
Florian Fainelli 6ecc58abce unrar: Properly pass LDFLAGS
External toolchains don't automatically have STAGING_DIR in their
default search path, so make sure we pass TARGET_LDFLAGS down. Since the
unrar makefile does not allow overriding, we also need to preserve the
original LDFLAGS which include lpthread.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-02 11:32:19 -07:00
Florian Fainelli d9b6d1bbc8 pthsem: Add linux 4.x to supported platforms
Fixes the following build failures:

pth_mctx.c: In function '__pth_mctx_set':
pth_mctx.c:480:2: error: #error "Unsupported Linux (g)libc version
and/or platform"
 #error "Unsupported Linux (g)libc version and/or platform"
  ^
Makefile:991: recipe for target 'pth_mctx.lo' failed

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-01 18:07:44 -07:00
Florian Fainelli 16750dd412 mpack: Fix conflicting malloc definition
Use stdlib.h for malloc(), getenv() and realloc(). Fixes the following
build failure:

unixos.c:42:14: error: conflicting types for 'malloc'
 extern char *malloc();
              ^
Makefile:168: recipe for target 'unixos.o' failed
make[3]: *** [unixos.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-01 18:04:47 -07:00
Florian Fainelli 49ed5295b1 hiredis: Fix __redis_strerror_r lvalue error
Fixes the following build error:
hiredis.h:101:24: error: lvalue required as left operand of assignment
             buf[(len)] = '\0';

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-01 17:53:47 -07:00
Florian Fainelli 39b2c6f2f5 libx264: Blacklist all MIPS CPUs for assembly optimizations
None of the CPUs supported in OpenWrt/LEDE are MSA capable (requires
MIPS32r5/r6 for that) which would lead to this error during configure:

You specified a pre-MSA CPU in your CFLAGS.
If you really want to run on such a CPU, configure with --disable-asm.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-01 17:52:34 -07:00
Florian Fainelli df1236a51a mdnsresponder: Also pass TARGET_CPPFLAGS
Use CFLAGS_DEBUG which is already used for TARGET_CFLAGS to also pass
TARGET_CPPFLAGS.

This fixes build issues with toolchains that don't automatically search
for header files (e.g: sys/capability.h), such as stbgcc-4.8-1.5

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-01 17:52:24 -07:00
Florian FainelliandGitHub 0c432f8902 Merge pull request #4128 from ffainelli/dansguardian-fix
dansguardian: Fix build error due to missing cstdlib include
2017-04-01 17:51:39 -07:00
Florian Fainelli b56986e43c dansguardian: Fix build error due to missing cstdlib include
Fixes the following build errors:

mipsel-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..
-D__CONFFILE='"/etc/dansguardian/dansguardian.conf"'
-D__LOGLOCATION='"/var/log/dansguardian/"' -D__PIDDIR='"/var/run"'
-D__PROXYUSER='"root"' -D__PROXYGROUP='"root"'
-D__CONFDIR='"/etc/dansguardian"'
-I/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/include
-I/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/include
-I/opt/toolchains/stbgcc-4.8-1.5/usr/include
-I/opt/toolchains/stbgcc-4.8-1.5/include    -Os -pipe -mno-branch-likely
-mips32r2 -mtune=24kc -fno-caller-saves -mips16 -minterlink-mips16
-fno-rtti  -MT dansguardian-OptionContainer.o -MD -MP -MF
.deps/dansguardian-OptionContainer.Tpo -c -o
dansguardian-OptionContainer.o `test -f 'OptionContainer.cpp' || echo
'./'`OptionContainer.cpp
OptionContainer.cpp: In member function 'void
OptionContainer::loadRooms()':
OptionContainer.cpp:796:9: error: 'exit' was not declared in this scope
   exit(1);
         ^
OptionContainer.cpp:824:10: error: 'exit' was not declared in this scope
    exit(1);
          ^
make[5]: *** [dansguardian-OptionContainer.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-03-08 17:38:52 -08:00
Florian FainelliandGitHub c7197cc35c Merge pull request #3896 from usr-sse2/patch-1
hfsprogs: Fix building on macOS
2017-02-13 09:38:49 -08:00
Florian FainelliandGitHub 7f92951fad Merge pull request #3844 from mhei/update-open-plc-utils
open-plc-utils: update to latest upstream commit
2017-01-15 10:13:17 -08:00
Florian FainelliandGitHub e62def0565 Merge pull request #3822 from mhei/update-open-plc-utils
open-plc-utils: update to commit 6a07d621583cb86ddf2fddcacb41cc4cf28bf33a
2017-01-11 14:21:11 -08:00
Florian FainelliandGitHub a554a1dd30 Merge pull request #3494 from ffainelli/plc-utils-3481
open-plc-utils: Force creation of open-plc-utils metapackage
2016-11-08 10:51:42 -08:00
Florian Fainelli dc368cbcd0 open-plc-utils: Force creation of open-plc-utils metapackage
Without it, all other plugin packages are not installable.

Fixes #3481

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2016-11-06 13:44:36 -08:00
Florian FainelliandGitHub acec7dff2e Merge pull request #3436 from p-wassi/master
net/cifs-utils: missing dependency
2016-11-06 11:41:33 -08:00
Florian FainelliandGitHub 9ca1b31155 Merge pull request #2911 from ffainelli/stoken
stoken: Fix binary installation
2016-06-30 10:37:27 -07:00
Florian Fainelli f564dbefb7 Merge pull request #2326 from ffainelli/iptraf
net: Add iptraf-ng
2016-01-30 19:27:16 -08:00
Florian Fainelli 2b1b267a00 Merge pull request #2324 from ffainelli/bonnieplus
utils: Import bonnie++
2016-01-28 14:24:17 -08:00
Florian Fainelli edacac23e0 Merge pull request #1797 from mhei/fix-open-plc-utils
open-plc-utils: upgrade to latest git revision and fix compilation
2015-09-30 12:35:02 -07:00
Florian Fainelli deeb315ff1 Merge pull request #1498 from dangowrt/hfsprogs-fix-musl-build
hfsprogs: fix build with musl
2015-07-01 13:37:38 -07:00
Florian Fainelli 845d4dd0eb Merge pull request #1515 from dvlemplgk/patch-1
open-plc-utils: Update to commit 885a1b7e2e663b5ab8797db6d40a0318131f…
2015-07-01 13:36:47 -07:00
Florian Fainelli 66260d1317 Merge pull request #1084 from ffainelli/hfsprogs
hfsprogs: initial import
2015-04-02 19:05:02 -07:00
Florian Fainelli a221b12d74 Merge pull request #1081 from ffainelli/open-plc-utils
open-plc-utils: bump to 2015-02-23
2015-03-28 11:52:48 -07:00
Florian Fainelli 0f7da7130d Merge pull request #581 from Frieds-Technology/libmicrohttpd
libmicrohttpd: new package added
2014-11-30 20:10:38 -08:00
Florian Fainelli aa98fabf55 Merge pull request #306 from cjkoenig/update_debootstrap
debootstrap: update to 1.0.61
2014-09-14 23:48:52 -07:00
Florian Fainelli dff066ee7d Merge pull request #60 from mstorchak/rsync_try2
rsync: import from packages, update to latest, add acl and xattr support
2014-06-27 12:44:21 -07:00
Florian Fainelli dc19d17aa5 Merge pull request #37 from RussellSenior/fix-sslh2
sslh: fix build by correcting version and refreshing makefile patch
2014-06-17 15:02:39 -07:00
Florian Fainelli 95c22f277e Merge pull request #36 from cpatulea/master
openssh: strip openssh-sftp-server dependencies, notably openssl
2014-06-16 21:44:31 -07:00