Project

General

Profile

Bug #791

bearerbox can compile but can't install

Added by Michael Fayez almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
Start date:
08/29/2018
Due date:
% Done:

0%

Estimated time:
Affected version:
svn 5242+

Description

Using linux alpine3.8
affects: svn 5242 and above.. can configure/make/make install with 5241 and prior versions.
I can configure/make but make install hit the below issue:

make -C wmlscript install
make[1]: Entering directory '/usr/local/src/kannel/gateway/wmlscript'
make  install-am
make[2]: Entering directory '/usr/local/src/kannel/gateway/wmlscript'
make[3]: Entering directory '/usr/local/src/kannel/gateway/wmlscript'
 .././install-sh -c -d '/usr/local/kannel/bin'
  /bin/bash ../libtool   --mode=install /usr/bin/install -c wmlsc wmlsdasm '/usr/local/kannel/bin'
libtool: install: /usr/bin/install -c wmlsc /usr/local/kannel/bin/wmlsc
libtool: install: /usr/bin/install -c wmlsdasm /usr/local/kannel/bin/wmlsdasm
 .././install-sh -c -d '/usr/local/kannel/lib'
 /usr/bin/install -c -m 644  libwmlscript.a '/usr/local/kannel/lib'
 ( cd '/usr/local/kannel/lib' && ranlib libwmlscript.a )
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/usr/local/src/kannel/gateway/wmlscript'
make[2]: Leaving directory '/usr/local/src/kannel/gateway/wmlscript'
make[1]: Leaving directory '/usr/local/src/kannel/gateway/wmlscript'
make -C utils install
make[1]: Entering directory '/usr/local/src/kannel/gateway/utils'
make[2]: Entering directory '/usr/local/src/kannel/gateway/utils'
 .././install-sh -c -d '/usr/local/kannel/bin'
  /bin/bash ../libtool   --mode=install /usr/bin/install -c seewbmp mtbatch decode_emimsg '/usr/local/kannel/bin'
libtool: install: /usr/bin/install -c seewbmp /usr/local/kannel/bin/seewbmp
libtool: install: /usr/bin/install -c mtbatch /usr/local/kannel/bin/mtbatch
libtool: install: /usr/bin/install -c decode_emimsg /usr/local/kannel/bin/decode_emimsg
 .././install-sh -c -d '/usr/local/kannel/sbin'
  /bin/bash ../libtool   --mode=install /usr/bin/install -c run_kannel_box start-stop-daemon '/usr/local/kannel/sbin'
libtool: install: /usr/bin/install -c run_kannel_box /usr/local/kannel/sbin/run_kannel_box
libtool: install: /usr/bin/install -c start-stop-daemon /usr/local/kannel/sbin/start-stop-daemon
 .././install-sh -c -d '/usr/local/kannel/share/man/man1'
 /usr/bin/install -c -m 644 seewbmp.1 mtbatch.1 '/usr/local/kannel/share/man/man1'
 .././install-sh -c -d '/usr/local/kannel/share/man/man8'
 /usr/bin/install -c -m 644 run_kannel_box.8 '/usr/local/kannel/share/man/man8'
make[2]: Leaving directory '/usr/local/src/kannel/gateway/utils'
make[1]: Leaving directory '/usr/local/src/kannel/gateway/utils'
/usr/bin/install -c -d /usr/local/kannel/bin
for prog in  gw-config; do \
    /usr/bin/install -c $prog \
        /usr/local/kannel/bin/`basename $prog`; \
done
test -r /usr/local/kannel/bin/gw-config || \
    ln -sf gw-config /usr/local/kannel/bin/gw-config
/usr/bin/install -c -d /usr/local/kannel/sbin
for prog in gw/bearerbox gw/smsbox gw/wapbox; do \
    /usr/bin/install -c $prog \
        /usr/local/kannel/sbin/`basename $prog`; \
done
/usr/bin/install -c -d /usr/local/kannel/share/man/man1
/usr/bin/install -c  /usr/local/kannel/share/man/man1
BusyBox v1.28.4 (2018-07-17 15:21:40 UTC) multi-call binary.

Usage: install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [-t DIR] [SOURCE]... DEST

Copy files and set attributes

    -c    Just copy (default)
    -d    Create directories
    -D    Create leading target directories
    -s    Strip symbol table
    -p    Preserve date
    -o USER    Set ownership
    -g GRP    Set group ownership
    -m MODE    Set permissions
    -t DIR    Install to DIR
make: *** [Makefile:244: install] Error 1

History

#1 Updated by Michael Fayez almost 2 years ago

confirm to hit the same with debian:stretch

make -C wmlscript install
make[1]: Entering directory '/usr/local/src/kannel/gateway/wmlscript'
make  install-am
make[2]: Entering directory '/usr/local/src/kannel/gateway/wmlscript'
make[3]: Entering directory '/usr/local/src/kannel/gateway/wmlscript'
 /bin/mkdir -p '/usr/local/kannel/bin' 
  /bin/bash ../libtool   --mode=install /usr/bin/install -c wmlsc wmlsdasm '/usr/local/kannel/bin'
libtool: install: /usr/bin/install -c wmlsc /usr/local/kannel/bin/wmlsc
libtool: install: /usr/bin/install -c wmlsdasm /usr/local/kannel/bin/wmlsdasm
 /bin/mkdir -p '/usr/local/kannel/lib' 
 /usr/bin/install -c -m 644  libwmlscript.a '/usr/local/kannel/lib'
 ( cd '/usr/local/kannel/lib' && ranlib libwmlscript.a )
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/usr/local/src/kannel/gateway/wmlscript'
make[2]: Leaving directory '/usr/local/src/kannel/gateway/wmlscript'
make[1]: Leaving directory '/usr/local/src/kannel/gateway/wmlscript'
make -C utils install
make[1]: Entering directory '/usr/local/src/kannel/gateway/utils'
make[2]: Entering directory '/usr/local/src/kannel/gateway/utils'
 /bin/mkdir -p '/usr/local/kannel/bin' 
  /bin/bash ../libtool   --mode=install /usr/bin/install -c seewbmp mtbatch decode_emimsg '/usr/local/kannel/bin'
libtool: install: /usr/bin/install -c seewbmp /usr/local/kannel/bin/seewbmp
libtool: install: /usr/bin/install -c mtbatch /usr/local/kannel/bin/mtbatch
libtool: install: /usr/bin/install -c decode_emimsg /usr/local/kannel/bin/decode_emimsg
 /bin/mkdir -p '/usr/local/kannel/sbin'
  /bin/bash ../libtool   --mode=install /usr/bin/install -c run_kannel_box start-stop-daemon '/usr/local/kannel/sbin'
libtool: install: /usr/bin/install -c run_kannel_box /usr/local/kannel/sbin/run_kannel_box
libtool: install: /usr/bin/install -c start-stop-daemon /usr/local/kannel/sbin/start-stop-daemon
 /bin/mkdir -p '/usr/local/kannel/share/man/man1'
 /usr/bin/install -c -m 644 seewbmp.1 mtbatch.1 '/usr/local/kannel/share/man/man1'
 /bin/mkdir -p '/usr/local/kannel/share/man/man8'
 /usr/bin/install -c -m 644 run_kannel_box.8 '/usr/local/kannel/share/man/man8'
make[2]: Leaving directory '/usr/local/src/kannel/gateway/utils'
make[1]: Leaving directory '/usr/local/src/kannel/gateway/utils'
/usr/bin/install -c -d /usr/local/kannel/bin
for prog in  gw-config; do \
        /usr/bin/install -c $prog \
            /usr/local/kannel/bin/`basename $prog`; \
done
done
test -r /usr/local/kannel/bin/gw-config || \
        ln -sf gw-config /usr/local/kannel/bin/gw-config
/usr/bin/install -c -d /usr/local/kannel/sbin
for prog in gw/bearerbox gw/smsbox gw/wapbox; do \
        /usr/bin/install -c $prog \
            /usr/local/kannel/sbin/`basename $prog`; \
done
/usr/bin/install -c -d /usr/local/kannel/share/man/man1
/usr/bin/install -c  /usr/local/kannel/share/man/man1
/usr/bin/install: missing destination file operand after '/usr/local/kannel/share/man/man1'
Try '/usr/bin/install --help' for more information.
Makefile:238: recipe for target 'install' failed
make: *** [install] Error 1

configured using:
./configure -prefix=/usr/local/kannel -with-mysql -with-mysql-dir=/usr/lib/mysql/ -with-redis -enable-debug -enable-assertions -with-defaults=speed -enable-localtime -enable-start-stop-daemon -disable-wap -enable-pcre -enable-pam

#2 Updated by Alexander Malysh almost 2 years ago

Hi,

can you please try: ./bootstrap.sh && ./configure ... && make && make install

Thanks

#3 Updated by Michael Fayez almost 2 years ago

Hi Alexander,
I'm doing the following against debian:stretch:

 cd /usr/local/src/kannel/ && \
 svn checkout -r 5247 https://svn.kannel.org/gateway/trunk --trust-server-cert --non-interactive && \
 mv trunk gateway 
 cd /usr/local/src/kannel/gateway && \
 ./bootstrap.sh && \
 ./configure -prefix=/usr/local/kannel -with-mysql -with-redis -enable-debug -enable-assertions -with-defaults=speed -enable-localtime -enable-start-stop-daemon -disable-wap -enable-pcre -enable-pam -disable-docs && \
 make && \
 make install

and hit while compiling:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -Wall -I/usr/include/openssl -I/usr/include/mysql -I/usr/include/hiredis -MT cfg.lo -MD -MP -MF .deps/cfg.Tpo -c cfg.c  -fPIC -DPIC -o .libs/cfg.o
mv -f .deps/cfg.Tpo .deps/cfg.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2  -Wall -I/usr/include/openssl -I/usr/include/mysql -I/usr/include/hiredis -MT charset.lo -MD -MP -MF .deps/charset.Tpo -c -o charset.lo charset.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -Wall -I/usr/include/openssl -I/usr/include/mysql -I/usr/include/hiredis -MT charset.lo -MD -MP -MF .deps/charset.Tpo -c charset.c  -fPIC -DPIC -o .libs/charset.o
mv -f .deps/charset.Tpo .deps/charset.Plo
make[2]: Leaving directory '/usr/local/src/kannel/gateway/gwlib'
make[2]: *** No rule to make target 'conn-ssl.c', needed by 'conn-ssl.lo'.  Stop.
make[1]: *** [all-recursive] Error 1
Makefile:445: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/usr/local/src/kannel/gateway'
Makefile:375: recipe for target 'all' failed
make: *** [all] Error 2

#4 Updated by Alexander Malysh almost 2 years ago

Hi,

ok, just fixed in svn. Please retry

#5 Updated by Michael Fayez almost 2 years ago

both alpine & debian hit the same below:

l -I/usr/include/openssl -I/usr/include/mysql -I/usr/include/hiredis -MT gw-timer.lo -MD -MP -MF .deps/gw-timer.Tpo -c gw-timer.c  -fPIC -DPIC -o .libs/gw-timer.o
mv -f .deps/gw-timer.Tpo .deps/gw-timer.Plo
make[2]: Leaving directory '/usr/local/src/kannel/gateway/gwlib'
make[2]: *** No rule to make target 'gw_lru.c', needed by 'gw_lru.lo'.  Stop.
make[1]: *** [all-recursive] Error 1
Makefile:445: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/usr/local/src/kannel/gateway'
make: *** [all] Error 2
Makefile:375: recipe for target 'all' failed

#6 Updated by Alexander Malysh almost 2 years ago

Hi,

yes, sorry, work in progress right now to convert to automake/autoconf.
I just fixed it in svn. Please retry.

#7 Updated by Michael Fayez almost 2 years ago

still both alpine/debian hitting the below with svn-5249:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -Wall -I/usr/include/openssl -I/usr/include/mysql -I/usr/include/hiredis -MT pcre.lo -MD -MP -MF .deps/pcre.Tpo -c pcre.c  -fPIC -DPIC -o .libs/pcre.o
In file included from pcre.c:73:0:
pcre.h:85:1: error: unknown type name 'pcre'
 pcre *gw_pcre_comp_real(const Octstr *pattern, int cflags, const char *file,
 ^~~~
pcre.h:95:29: error: unknown type name 'pcre'
 int gw_pcre_exec_real(const pcre *preg, const Octstr *string, int start,
                             ^~~~
pcre.h:120:34: error: unknown type name 'pcre'
 int gw_pcre_match_pre_real(const pcre *preg, const Octstr *os, const char *file,
                                  ^~~~
pcre.c:82:1: error: unknown type name 'pcre'
 pcre *gw_pcre_comp_real(const Octstr *pattern, int cflags, const char *file,
 ^~~~
pcre.c: In function 'gw_pcre_comp_real':
pcre.c:85:5: error: unknown type name 'pcre'
     pcre *preg;
     ^~~~
pcre.c:91:17: warning: implicit declaration of function 'pcre_compile' [-Wimplicit-function-declaration]
     if ((preg = pcre_compile(pat, cflags, &err, &erroffset, NULL)) == NULL) {
                 ^~~~~~~~~~~~
pcre.c:91:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     if ((preg = pcre_compile(pat, cflags, &err, &erroffset, NULL)) == NULL) {
               ^
pcre.c: At top level:
pcre.c:102:29: error: unknown type name 'pcre'
 int gw_pcre_exec_real(const pcre *preg, const Octstr *string, int start,
                             ^~~~
pcre.c: In function 'gw_pcre_exec_real':
pcre.c:112:10: warning: implicit declaration of function 'pcre_exec' [-Wimplicit-function-declaration]
     rc = pcre_exec(preg, NULL, sub,  octstr_len(string), start, eflags,
          ^~~~~~~~~
pcre.c:115:25: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function)
     if (rc < 0 && rc != PCRE_ERROR_NOMATCH) {
                         ^~~~~~~~~~~~~~~~~~
pcre.c:115:25: note: each undeclared identifier is reported only once for each function it appears in
pcre.c: In function 'gw_pcre_match_real':
pcre.c:137:5: error: unknown type name 'pcre'
     pcre *regexp;
     ^~~~
pcre.c: At top level:
pcre.c:154:34: error: unknown type name 'pcre'
 int gw_pcre_match_pre_real(const pcre *preg, const Octstr *os, const char *file,
                                  ^~~~
Makefile:601: recipe for target 'pcre.lo' failed
make[2]: Leaving directory '/usr/local/src/kannel/gateway/gwlib'
make[2]: *** [pcre.lo] Error 1
make[1]: *** [all-recursive] Error 1
Makefile:445: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/usr/local/src/kannel/gateway'
Makefile:375: recipe for target 'all' failed
make: *** [all] Error 2

#8 Updated by Alexander Malysh almost 2 years ago

ok, I see... You are using pcre... Please retry.

#9 Updated by Michael Fayez almost 2 years ago

well, i can compile/install now for debian & alpine thanks a lot for your fast response :)

Meanwhile, I'm getting an error related to sqlbox, that I'll start a new issue for it.
you can close this one

#10 Updated by Alexander Malysh almost 2 years ago

  • Status changed from New to Resolved

great, thanks for testing!

#11 Updated by Alexander Malysh almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF