I'm trying to get juise installed on a Raspberry Pi running Rasbian 8 (Jessie) and keep getting redefinition errors.
I followed the directions to first install libslax and dependencies found here: https://github.com/Juniper/libslax/wiki/Building. I add an entry of 'include /usr/local/lib' to /etc/ld.so.conf so it looks like this now:
mradmin@rpi-22:/etc$ cat ld.so.conf
include /etc/ld.so.conf.d/*.conf
include /usr/local/lib
Once I did that, I was then able to successfully run slaxproc:
mradmin@rpi-22:~$ slaxproc -V
libslax version 0.21.2
Using libxml 20901, libxslt 10128 and libexslt 817
slaxproc was compiled against libxml 20901, libxslt 10128 and libexslt 817
libxslt 10128 was compiled against libxml 20901
libexslt 817 was compiled against libxml 20901
Then moved onto installing juise using the directions found here: https://github.com/Juniper/juise/wiki/Building but keep running into redefinition errors when I try to make it.
Any idea how to fix?
Thanks!
-floyd
error:
mradmin@rpi-22:~/juise-0.7.3/build$ sudo make
Making all in libjuise
make[1]: Entering directory '/home/mradmin/juise-0.7.3/build/libjuise'
(CDPATH="${ZSH_VERSION+.}:" && cd ../.. && autoheader)
rm -f stamp-h1
touch ../../libjuise/juiseconfig.h.in
cd .. && /bin/bash ./config.status libjuise/juiseconfig.h
config.status: creating libjuise/juiseconfig.h
config.status: libjuise/juiseconfig.h is unchanged
make all-am
make[2]: Entering directory '/home/mradmin/juise-0.7.3/build/libjuise'
CC io/jtrace.lo
In file included from ../../libjuise/string/strextra.h:24:0,
from ../../libjuise/io/jtrace.c:43:
../../libjuise/common/aux_types.h:100:1: error: redefinition of ‘const_drop’
const_drop (const void *ptr)
^
In file included from /usr/local/include/libslax/slax.h:14:0,
from ../../libjuise/io/jtrace.c:39:
/usr/local/include/libpsu/psucommon.h:107:1: note: previous definition of ‘const_drop’ was here
const_drop (const void *ptr)
^
In file included from ../../libjuise/io/jtrace.c:43:0:
../../libjuise/string/strextra.h:281:1: error: redefinition of ‘streq’
streq (const char *red, const char *blue)
^
In file included from /usr/local/include/libslax/slax.h:14:0,
from ../../libjuise/io/jtrace.c:39:
/usr/local/include/libpsu/psucommon.h:77:1: note: previous definition of ‘streq’ was here
streq (const char *red, const char *blue)
^
../../libjuise/io/jtrace.c: In function ‘juise_trace_init’:
../../libjuise/io/jtrace.c:126:2: warning: implicit declaration of function ‘slaxLogEnableCallback’ [-Wimplicit-function-declaration]
slaxLogEnableCallback(juise_log_callback, NULL);
^
Makefile:661: recipe for target 'io/jtrace.lo' failed
make[2]: *** [io/jtrace.lo] Error 1
make[2]: Leaving directory '/home/mradmin/juise-0.7.3/build/libjuise'
Makefile:459: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/mradmin/juise-0.7.3/build/libjuise'
Makefile:589: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
here is the full make:
mradmin@rpi-22:~$ ls -alsrt|grep slax
8 -rw-r--r-- 1 mradmin mradmin 5122 Apr 12 23:23 mess.slax
76 -rw-r--r-- 1 mradmin mradmin 77400 Apr 12 23:23 jhc.slax
mradmin@rpi-22:~$ ls -alsrt|grep juise
10332 -rw-r--r-- 1 mradmin mradmin 10577920 Feb 9 21:05 juise-0.7.3.tar
4 drwxr-xr-x 18 root root 4096 Apr 25 20:35 juise
4 drwxr-xr-x 16 mradmin mradmin 4096 May 10 15:16 juise-0.7.3
mradmin@rpi-22:~$ cd juise-0.7.3
mradmin@rpi-22:~/juise-0.7.3$ sudo sh bin/setup.sh
Creating build directory ...
Setup is complete. To build juise:
1) Type 'cd build ; ../configure' to configure juise
2) Type 'make' to build juise
3) Type 'make install' to install juise
mradmin@rpi-22:~/juise-0.7.3$ sudo cd build
sudo: cd: command not found
mradmin@rpi-22:~/juise-0.7.3$ cd build
mradmin@rpi-22:~/juise-0.7.3/build$ sudo ../configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/mradmin/juise-0.7.3/missing: Unknown '--is-lightweight' option
Try '/home/mradmin/juise-0.7.3/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for basename... /usr/bin/basename
checking for cat... /bin/cat
checking for chmod... /bin/chmod
checking for cp... /bin/cp
checking for diff... /usr/bin/diff
checking for mkdir... /bin/mkdir
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for sed... (cached) /bin/sed
checking for ssh... /usr/bin/ssh
checking for gzip... /bin/gzip
checking whether ln -s works... yes
checking for ANSI C header files... (cached) yes
checking for inline... inline
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for bzero... yes
checking for memmove... yes
checking for strchr... yes
checking for strcspn... yes
checking for strerror... yes
checking for strspn... yes
checking for sranddev... no
checking for srand... yes
checking for strlcpy... no
checking for fdopen... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for ctime... yes
checking for getpass... yes
checking for sysctlbyname... no
checking for flock... yes
checking for statfs... yes
checking for strnstr... no
checking for strndup... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking for stdint.h... (cached) yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking for MD5_Init in -lcrypto... no
checking for lrint in -lm... yes
checking for xmlNewParserCtxt in -lxml2... yes
checking for xsltInit in -lxslt... yes
checking for readline in -lreadline... no
checking for struct passwd.pw_class... no
checking for struct sockaddr_un.sun_len... no
checking whether to build with warnings... no
checking whether to build CLIRA web interface... no
checking whether to build mixer... no
checking whether to build with debugging... no
checking whether to build with readline... no
checking whether to build with libedit... no
checking compiler for gcc... no
checking whether to build with __printflike... no
checking for libxml libraries >= 2.7.7... 2.9.1 found
checking for libxslt libraries >= 1.1.26... 1.1.28 found
checking for libslax libraries >= 0.18.0... 0.21.2 found
checking for libssh2_channel_open_ex in -lssh2... no
checking for sqlite3_open in -lsqlite3... no
checking for perl regular expressions support... yes
checking for pcre-config... no
checking for socklen_t... yes
Using configure dir /home/mradmin/juise-0.7.3
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating juise-config
config.status: creating libjuise/Makefile
config.status: creating juise/Makefile
config.status: creating doc/Makefile
config.status: creating juise-askpass/Makefile
config.status: creating mod_juise/Makefile
config.status: creating extensions/Makefile
config.status: creating mixer/Makefile
config.status: creating web/Makefile
config.status: creating web/clira.conf
config.status: creating web/run-clira
config.status: creating import/Makefile
config.status: creating tests/Makefile
config.status: creating packaging/juise.pc
config.status: creating packaging/juise.spec
config.status: creating packaging/juise.space.spec
config.status: creating packaging/juise.rb.base
config.status: creating packaging/juise.clira.spec
config.status: creating packaging/freebsd/port-Makefile
config.status: creating libjuise/juiseconfig.h
config.status: executing depfiles commands
config.status: executing libtool commands
/bin/rm: cannot remove 'libtoolT': No such file or directory
configure: summary of build options:
build system: Linux rpi-22 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
juise version: 0.7.3
host type: armv7l-unknown-linux-gnueabihf
install prefix: /usr/local
compiler: gcc (no)
compiler flags: -D_GNU_SOURCE -g -O2
library types: Shared=yes, Static=yes
libxml version: 2.9.1
libxml cflags: -I/usr/include/libxml2
libxml libs: -lxml2
libxslt version: 1.1.28
libxslt cflags: -I/usr/include/libxml2
libxslt libs: -lxslt -lxml2
libslax version: 0.21.2
libslax cflags: -I/usr/local/include
libslax libs: -L/usr/local/lib -lslax -lpsu
libslax libdir: /usr/local/lib
libslax extdir: /usr/local/lib/slax/extensions
libpcre cflags:
libpcre libs:
lighttpd src:
lighttpd obj:
lighttpd libdir: /usr/local/lib
lighttpd modules: /usr/local/lib
warnings: no
debug: no
readline: no
libedit: no
printf-like: no
build clira: no
build mixer: no
mradmin@rpi-22:~/juise-0.7.3/build$
mradmin@rpi-22:~/juise-0.7.3/build$ sudo make
Making all in libjuise
make[1]: Entering directory '/home/mradmin/juise-0.7.3/build/libjuise'
make all-am
make[2]: Entering directory '/home/mradmin/juise-0.7.3/build/libjuise'
CC data/patricia.lo
CC data/parse_ipaddr.lo
CC string/snprintf_safe.lo
CC string/strndup.lo
CC string/strdupf.lo
CC time/timestr.lo
CC io/fbuf.lo
CC io/jtrace.lo
In file included from ../../libjuise/string/strextra.h:24:0,
from ../../libjuise/io/jtrace.c:43:
../../libjuise/common/aux_types.h:100:1: error: redefinition of ‘const_drop’
const_drop (const void *ptr)
^
In file included from /usr/local/include/libslax/slax.h:14:0,
from ../../libjuise/io/jtrace.c:39:
/usr/local/include/libpsu/psucommon.h:107:1: note: previous definition of ‘const_drop’ was here
const_drop (const void *ptr)
^
In file included from ../../libjuise/io/jtrace.c:43:0:
../../libjuise/string/strextra.h:281:1: error: redefinition of ‘streq’
streq (const char *red, const char *blue)
^
In file included from /usr/local/include/libslax/slax.h:14:0,
from ../../libjuise/io/jtrace.c:39:
/usr/local/include/libpsu/psucommon.h:77:1: note: previous definition of ‘streq’ was here
streq (const char *red, const char *blue)
^
../../libjuise/io/jtrace.c: In function ‘juise_trace_init’:
../../libjuise/io/jtrace.c:126:2: warning: implicit declaration of function ‘slaxLogEnableCallback’ [-Wimplicit-function-declaration]
slaxLogEnableCallback(juise_log_callback, NULL);
^
Makefile:661: recipe for target 'io/jtrace.lo' failed
make[2]: *** [io/jtrace.lo] Error 1
make[2]: Leaving directory '/home/mradmin/juise-0.7.3/build/libjuise'
Makefile:459: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/mradmin/juise-0.7.3/build/libjuise'
Makefile:589: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
mradmin@rpi-22:~/juise-0.7.3/build$
here is the Raspian version:
mradmin@rpi-22:~/juise-0.7.3/build$ hostnamectl
Static hostname: rpi-22
Icon name: computer
Chassis: n/a
Machine ID: 8c5604e85c924195aef34a3e4079998d
Boot ID: 7f9895c1ce14428f8473b10ab3aed646
Operating System: Raspbian GNU/Linux 8 (jessie)
Kernel: Linux 4.4.50-v7+
Architecture: arm