Code Monkey home page Code Monkey logo

klish's People

Contributors

emmanuel-deloget avatar pkun avatar sgalabov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

klish's Issues

error build static binaries with 2.2.2

i am following the instructions for a static build with:

$ ac_cv_header_dlfcn_h=no ./configure --prefix=/opt/klish --disable-shared --without-lua --without-libroxml --with-libexpat --without-libxml2 --without-libxslt --with-internal-getopt 
$ make LDFLAGS+=-all-static

gives the following output


....

/bin/bash ./libtool  --tag=CC   --mode=link gcc   -g -O2  -version-info 2:0:0  -all-static -o libclish.la -rpath /opt/klish/lib clish/libclish_la-plugin_builtin.lo clish/command/libclish_la-command.lo clish/command/libclish_la-command_dump.lo clish/param/libclish_la-param.lo clish/param/libclish_la-paramv.lo clish/param/libclish_la-param_dump.lo clish/pargv/libclish_la-pargv.lo clish/pargv/libclish_la-parg.lo clish/pargv/libclish_la-pargv_dump.lo clish/ptype/libclish_la-ptype.lo clish/ptype/libclish_la-ptype_dump.lo clish/shell/libclish_la-shell_view.lo clish/shell/libclish_la-shell_ptype.lo clish/shell/libclish_la-shell_var.lo clish/shell/libclish_la-shell_command.lo clish/shell/libclish_la-shell_dump.lo clish/shell/libclish_la-shell_execute.lo clish/shell/libclish_la-shell_help.lo clish/shell/libclish_la-shell_new.lo clish/shell/libclish_la-shell_parse.lo clish/shell/libclish_la-shell_file.lo clish/shell/libclish_la-shell_loop.lo clish/shell/libclish_la-shell_startup.lo clish/shell/libclish_la-shell_wdog.lo clish/shell/libclish_la-shell_pwd.lo clish/shell/libclish_la-shell_tinyrl.lo clish/shell/libclish_la-shell_plugin.lo clish/shell/libclish_la-shell_xml.lo clish/shell/libclish_la-shell_roxml.lo clish/shell/libclish_la-shell_libxml2.lo clish/shell/libclish_la-shell_expat.lo clish/shell/libclish_la-shell_udata.lo clish/shell/libclish_la-shell_misc.lo clish/shell/libclish_la-context.lo clish/view/libclish_la-view.lo clish/view/libclish_la-view_dump.lo clish/nspace/libclish_la-nspace.lo clish/nspace/libclish_la-nspace_dump.lo clish/var/libclish_la-var.lo clish/var/libclish_la-var_dump.lo clish/action/libclish_la-action.lo clish/action/libclish_la-action_dump.lo clish/config/libclish_la-config.lo clish/config/libclish_la-config_dump.lo clish/hotkey/libclish_la-hotkey.lo clish/hotkey/libclish_la-hotkey_dump.lo clish/plugin/libclish_la-plugin.lo clish/plugin/libclish_la-sym.lo clish/plugin/libclish_la-plugin_dump.lo clish/udata/libclish_la-udata.lo liblub.la libtinyrl.la libkonf.la -lexpat 
libtool: link: ar cr .libs/libclish.a  clish/libclish_la-plugin_builtin.o clish/command/libclish_la-command.o clish/command/libclish_la-command_dump.o clish/param/libclish_la-param.o clish/param/libclish_la-paramv.o clish/param/libclish_la-param_dump.o clish/pargv/libclish_la-pargv.o clish/pargv/libclish_la-parg.o clish/pargv/libclish_la-pargv_dump.o clish/ptype/libclish_la-ptype.o clish/ptype/libclish_la-ptype_dump.o clish/shell/libclish_la-shell_view.o clish/shell/libclish_la-shell_ptype.o clish/shell/libclish_la-shell_var.o clish/shell/libclish_la-shell_command.o clish/shell/libclish_la-shell_dump.o clish/shell/libclish_la-shell_execute.o clish/shell/libclish_la-shell_help.o clish/shell/libclish_la-shell_new.o clish/shell/libclish_la-shell_parse.o clish/shell/libclish_la-shell_file.o clish/shell/libclish_la-shell_loop.o clish/shell/libclish_la-shell_startup.o clish/shell/libclish_la-shell_wdog.o clish/shell/libclish_la-shell_pwd.o clish/shell/libclish_la-shell_tinyrl.o clish/shell/libclish_la-shell_plugin.o clish/shell/libclish_la-shell_xml.o clish/shell/libclish_la-shell_roxml.o clish/shell/libclish_la-shell_libxml2.o clish/shell/libclish_la-shell_expat.o clish/shell/libclish_la-shell_udata.o clish/shell/libclish_la-shell_misc.o clish/shell/libclish_la-context.o clish/view/libclish_la-view.o clish/view/libclish_la-view_dump.o clish/nspace/libclish_la-nspace.o clish/nspace/libclish_la-nspace_dump.o clish/var/libclish_la-var.o clish/var/libclish_la-var_dump.o clish/action/libclish_la-action.o clish/action/libclish_la-action_dump.o clish/config/libclish_la-config.o clish/config/libclish_la-config_dump.o clish/hotkey/libclish_la-hotkey.o clish/hotkey/libclish_la-hotkey_dump.o clish/plugin/libclish_la-plugin.o clish/plugin/libclish_la-sym.o clish/plugin/libclish_la-plugin_dump.o clish/udata/libclish_la-udata.o
libtool: link: ranlib .libs/libclish.a
libtool: link: ( cd ".libs" && rm -f "libclish.la" && ln -s "../libclish.la" "libclish.la" )
depbase=`echo libc/getopt.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H   -I. -I.  -Wall   -g -O2 -MT libc/getopt.o -MD -MP -MF $depbase.Tpo -c -o libc/getopt.o libc/getopt.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ./libtool  --tag=CC   --mode=link gcc -Wall   -g -O2  -all-static -o bin/clish bin/clish.o libclish.la libkonf.la libtinyrl.la liblub.la libc/getopt.o clish_plugin_clish.la 
libtool:   error: cannot find the library 'clish_plugin_clish.la' or unhandled argument 'clish_plugin_clish.la'
Makefile:1423: recipe for target 'bin/clish' failed
make[1]: *** [bin/clish] Error 1
make[1]: Leaving directory '/u/fredo/vscode-workspace/klish-2.2.2'
Makefile:809: recipe for target 'all' failed
make: *** [all] Error 2

please help !

Centos 9 Stream Daemon libxml2 Error

[root@localhost klish]# /usr/local/bin/klishd -d -v -f ./klishd.conf
klishd: Parse config file: ./klishd.conf
klishd: opts: Foreground = true
klishd: opts: Verbose = true
klishd: opts: LogFacility = daemon
klishd: opts: PIDPath = /var/run/klishd.pid
klishd: opts: ConfigPath = ./klishd.conf
klishd: opts: UnixSocketPath = /tmp/klish-unix-socket
klishd: opts: DBs = libxml2
klishd: Start daemon.
Scheme errors:
DB "libxml2": kdb-libxml2.so: cannot open shared object file: No such file or directory
DB "libxml2": Can't load DB plugin
klishd: Stop daemon.

cross-compiling to musl fails

version
2.2.3

configure command

ac_cv_header_dlfcn_h=no ./configure \
    --host=x86_64-linux-musl \
    --prefix=/usr/klish \
    --disable-shared \
    --without-lua \
    --without-libroxml \
    --with-libexpat=/usr/klish \
    --without-libxml2 \
    --without-libxslt \
    --with-internal-getopt

make command and error-output

make -j 1 LDFLAGS+=-all-static DESTDIR='${project.build.directory}/${project.artifactId}/root' install
....
 libtool: compile:  x86_64-linux-musl-gcc -DHAVE_CONFIG_H -I. -I. -I/usr/klish/include -g -O2 -MT clish/shell/libclish_la-shell_execute.lo -MD -MP -MF clish/shell/.deps/libclish_la-shell_execute.Tpo -c clish/shell/shell_execute.c -o clish/shell/libclish_la-shell_execute.o
 clish/shell/shell_execute.c:23:13: error: conflicting types for ‘sigignore’
    23 | static void sigignore(int signo)
       |             ^~~~~~~~~
 In file included from /u/fredo/bin/x86_64-linux-musl-native/include/sys/wait.h:26,
                  from clish/shell/shell_execute.c:17:
 /u/fredo/bin/x86_64-linux-musl-native/include/signal.h:237:5: note: previous declaration of ‘sigignore’ was here
   237 | int sigignore(int);
       |     ^~~~~~~~~
make: *** [clish/shell/libclish_la-shell_execute.lo] Error 1
Makefile:1804: recipe for target 'clish/shell/libclish_la-shell_execute.lo' failed

seams like musl libc sigignore declaration is clashing with your internal handler name.

could you rename the handler function in file clish/shell/shell_execute.c on lines 23 and 364 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.