Commit Graph
39 Commits
Author SHA1 Message Date
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