cadaver icon indicating copy to clipboard operation
cadaver copied to clipboard

Can't find configure script?

Open axgalwork opened this issue 2 months ago • 12 comments

Disclaimer, i'm a noob to github so maybe i'm missing something. But anyway, i do a git clone git clone https://github.com/notroj/cadaver Read the "INSTALL" file, it says to cd to the directory containing the source code, i'm guessing it's "src" but there is no configure file there, or anywhere in the directory structure? There is a file called "configure.ac", shall i use that?

axgalwork avatar Oct 22 '25 06:10 axgalwork

Ah, good question, I should document this. This should work:

git clone --recurse-submodules https://github.com/notroj/cadaver
cd cadaver
./autogen.sh
./configure --etc etc

Can you try it out?

notroj avatar Oct 22 '25 10:10 notroj

Tried, ./autogen.sh works, creating a configure file. :) Running ./configure also seems to work :)

But i get a warning and notes running make :( In the "ne_xml.c" file And sudo make install fails

Let mer know if you want some logs I'm on Debian 12

axgalwork avatar Oct 22 '25 11:10 axgalwork

Logs please, yes!

notroj avatar Oct 22 '25 11:10 notroj

ok! Configure:

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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for tputs in -lcurses... yes
checking for readline in -lreadline... no
checking for library containing add_history... no
checking for history.h... no
checking for readline/history.h... no
checking for readline.h... no
checking for readline/readline.h... no
checking for rl_completion_matches... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ELF binary format... yes
checking for the common suffixes of directories in the library search path... lib,lib,lib64
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for inline... inline
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for off_t... yes
checking for uname... Linux
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking for gcc -Wformat -Werror sanity... yes
checking for errno.h... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for sys/uio.h... yes
checking size of size_t... 8
checking how to print size_t... lu
checking size of off_t... 8
checking how to print off_t... ld
checking size of ssize_t... 8
checking how to print ssize_t... ld
checking whether byte ordering is bigendian... no
checking for gcc options needed to detect all undeclared functions... none needed
checking whether strerror_r is declared... yes
checking whether strerror_r returns char *... yes
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for neon-config... none
configure: no external neon library found
configure: using bundled neon (0.35.0)
checking for sys/time.h... yes
checking for limits.h... yes
checking for sys/select.h... yes
checking for arpa/inet.h... yes
checking for libintl.h... yes
checking for signal.h... yes
checking for sys/socket.h... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking for netdb.h... yes
checking for sys/poll.h... yes
checking for sys/limits.h... no
checking for fcntl.h... yes
checking for iconv.h... yes
checking for net/if.h... yes
checking for timezone global... yes
configure: LFS support unnecessary, off_t is not 32-bit
checking for strtoll... yes
checking for strcasecmp... yes
checking for signal... yes
checking for setvbuf... yes
checking for setsockopt... yes
checking for stpcpy... yes
checking for poll... yes
checking for fcntl... yes
checking for getsockopt... yes
checking for explicit_bzero... yes
checking for sendmsg... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for if_nametoindex... yes
checking for if_indextoname... yes
checking whether stpcpy is declared... yes
checking for library containing socket... none needed
checking for wspiapi.h... no
checking for library containing getaddrinfo... none needed
checking for wspiapi.h... (cached) no
checking for gai_strerror... yes
checking for getnameinfo... yes
checking for inet_ntop... yes
checking for inet_pton... yes
configure: IPv6 support is enabled
checking for working AI_ADDRCONFIG... yes
checking for socklen_t... yes
checking for struct tm.tm_gmtoff... yes
checking for struct tm.__tm_gmtoff... no
configure: zlib not supported
checking whether to enable ACL support in neon... no
configure: SSL support is not enabled
configure: Thread-safe SSL support is not enabled
configure: Thread-safe SSL not supported
checking for pkg-config... no
checking for krb5-config... none
configure: GSSAPI authentication is not supported
checking for pkg-config... no
configure: libproxy support not enabled
configure: WebDAV support is enabled
checking for expat.h... no
checking for pkg-config... no
checking for xml2-config... xml2-config
checking for libxml/xmlversion.h... yes
checking for libxml/parser.h... yes
configure: XML parser used: libxml 2.9.14
checking size of time_t... 8
checking how to print time_t... ld
configure: .netrc support is enabled
checking for getopt_long... yes
checking for strcasecmp... (cached) yes
checking for snprintf... yes
checking for working POSIX fnmatch... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct dirent.d_ino... yes
checking for unsigned long long int... yes
checking for sys/time.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for pwd.h... yes
checking for stdarg.h... (cached) yes
checking for vmsdir.h... no
checking for memory.h... yes
checking for alloca.h... yes
checking for ncurses.h... yes
checking for sgtty.h... yes
checking for termios.h... yes
checking for termio.h... yes
checking for locale.h... yes
checking for strdup... yes
checking for strerror... yes
checking for memcpy... yes
checking for strcoll... yes
checking for tcsetattr... yes
checking for getpass... yes
checking for stty... no
checking for fchmod... yes
checking for strtoull... yes
checking for gettimeofday... (cached) yes
checking for secure_getenv... yes
checking for setlocale... yes
checking whether GLOB_ALTDIRFUNC is available... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for a sed that does not truncate output... /usr/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyPreferredLanguages... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for nl_langinfo and CODESET... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating neon/src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing source-directories commands
configure: Configured to build cadaver 0.28:

  Install prefix:        /usr/local
  Compiler:              gcc
  Neon library:	         included libneon (0.35.0)
  XML Parser:            libxml 2.9.14
  SSL library:		 SSL support is not enabled
  Internationalization:  Built using native support
  GNU readline support:	 enabled

axgalwork avatar Oct 22 '25 12:10 axgalwork

Looks fine to me. If you install the Debian package "libneon27-dev" you won't have to build the bundled neon.

notroj avatar Oct 22 '25 12:10 notroj

make:

gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o src/cadaver.o -c src/cadaver.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o src/common.o -c src/common.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o src/commands.o -c src/commands.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o src/ls.o -c src/ls.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o src/cmdline.o -c src/cmdline.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o src/options.o -c src/options.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o src/utils.o -c src/utils.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o src/edit.o -c src/edit.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o src/version.o -c src/version.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o src/search.o -c src/search.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o lib/basename.o -c lib/basename.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o lib/dirname.o -c lib/dirname.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o lib/rpmatch.o -c lib/rpmatch.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o lib/yesno.o -c lib/yesno.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o lib/getpass.o -c lib/getpass.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o lib/tempname.o -c lib/tempname.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o lib/mkstemp.o -c lib/mkstemp.c
gcc -DHAVE_CONFIG_H -I. -I./lib  -I/usr/include/libxml2 -DLOCALEDIR=\"/usr/local/share/locale\" -I./src -g -O2 -I./neon/src  -o lib/netrc.o -c lib/netrc.c
cd neon/src && make libneon.a
make[1]: Entering directory '/home/xxx/temp/cadaver/neon/src'
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_request.c -o ne_request.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_session.c -o ne_session.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_basic.c -o ne_basic.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_string.c -o ne_string.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_uri.c -o ne_uri.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_dates.c -o ne_dates.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_alloc.c -o ne_alloc.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_md5.c -o ne_md5.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_utils.c -o ne_utils.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_socket.c -o ne_socket.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_auth.c -o ne_auth.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_redirect.c -o ne_redirect.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_compress.c -o ne_compress.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_i18n.c -o ne_i18n.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_pkcs11.c -o ne_pkcs11.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_socks.c -o ne_socks.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_ntlm.c -o ne_ntlm.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_207.c -o ne_207.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_xml.c -o ne_xml.o
ne_xml.c: In function ‘start_element’:
ne_xml.c:176:55: warning: passing argument 5 of ‘hand->startelm_cb’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  176 | #define PASS_ATTS(atts) (atts ? (const char **)(atts) : empty_atts)
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
ne_xml.c:330:59: note: in expansion of macro ‘PASS_ATTS’
  330 |                                   elm->nspace, elm->name, PASS_ATTS(atts));
      |                                                           ^~~~~~~~~
ne_xml.c:176:55: note: expected ‘const char **’ but argument is of type ‘const char * const*’
  176 | #define PASS_ATTS(atts) (atts ? (const char **)(atts) : empty_atts)
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
ne_xml.c:330:59: note: in expansion of macro ‘PASS_ATTS’
  330 |                                   elm->nspace, elm->name, PASS_ATTS(atts));
      |                                                           ^~~~~~~~~
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_props.c -o ne_props.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_locks.c -o ne_locks.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_xmlreq.c -o ne_xmlreq.o
gcc -DHAVE_CONFIG_H -I../.. -I../../lib  -I/usr/include/libxml2 -g -O2 -I../../neon/src -c ne_stubssl.c -o ne_stubssl.o
ar cru libneon.a ne_request.o ne_session.o ne_basic.o ne_string.o ne_uri.o ne_dates.o ne_alloc.o ne_md5.o ne_utils.o ne_socket.o ne_auth.o ne_redirect.o ne_compress.o ne_i18n.o ne_pkcs11.o ne_socks.o ne_ntlm.o ne_207.o ne_xml.o ne_props.o ne_locks.o ne_xmlreq.o  ne_stubssl.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libneon.a
make[1]: Leaving directory '/home/xxxl/temp/cadaver/neon/src'
gcc -g -O2 -I./neon/src   -o cadaver src/cadaver.o src/common.o src/commands.o src/ls.o src/cmdline.o src/options.o src/utils.o src/edit.o src/version.o src/search.o  lib/basename.o lib/dirname.o lib/rpmatch.o lib/yesno.o lib/getpass.o lib/tempname.o lib/mkstemp.o lib/netrc.o -lcurses  -Lneon/src -lneon  -lxml2 
for d in neon/src; do (cd $d; make); done
make[1]: Entering directory '/home/xxx/temp/cadaver/neon/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/xxx/temp/cadaver/neon/src'

axgalwork avatar Oct 22 '25 12:10 axgalwork

Yep, that's a harmless warning. As I said above you can use the Debian neon library if you install apt-get install libneon27-dev before running ./configure

notroj avatar Oct 22 '25 12:10 notroj

Ok! that cleared the warnings :) But i still get errors in sudo make install:

make[1]: Entering directory '/home/xxx/temp/cadaver/po'
test ! -f ./cadaver.pot || \
  test -z "es.gmo [email protected]" || make es.gmo [email protected]
make[2]: Entering directory '/home/xxx/temp/cadaver/po'
rm -f es.gmo && : --no-location --quiet -o es.1po es.po cadaver.pot && : -c --statistics --verbose -o es.gmo es.1po && rm -f es.1po
mv: cannot stat 't-es.gmo': no such file or directory
make[2]: *** [Makefile:222: es.gmo] error 1
make[2]: Leaving directory '/home/xxx/temp/cadaver/po'
make[1]: *** [Makefile:263: stamp.po] error 2
make[1]: Leaving directory '/home/xxx/temp/cadaver/po'
make: *** [Makefile:89: install-nls] error 2

axgalwork avatar Oct 22 '25 13:10 axgalwork

Hmm, interesting. ./configure --disable-nls maybe is necessary, I haven't seen that before.

notroj avatar Oct 22 '25 13:10 notroj

ok i'll try, do i need to clear something before running configure again or will it overwrite?

axgalwork avatar Oct 22 '25 13:10 axgalwork

"make clean" first might be a good idea.

notroj avatar Oct 22 '25 13:10 notroj

Success! :) Thank you!

axgalwork avatar Oct 22 '25 13:10 axgalwork