configure goes well, see attached file
then i input make and see follow error:
=====
config.status: creating check/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing libtool commands
config.status: executing po/stamp-it commands
> make
make all-recursive
Making all in m4
Making all in po
Error expanding embedded variable.
*** Error code 1
Stop in /home/sysadmin1/ccrypt-1.10.
*** Error code 1
Stop in /home/sysadmin1/ccrypt-1.10.
=====
if instead make i use bmake - compilation goes well and binary creates with success.
Seems for DragonFly and NetBSD as they use bmake instead mak the slighr modifcation of Makefile are needed.
Previous version of ccrypt worked with make well.
Patch to update internationalization stuff
Thanks for reporting this. Unfortunately, I don't have BSD system to test it on. Also, the stuff in the po/ directory is automatically generated by the internationalization tool (intltoolize etc). So it is not directly ccrypt's "fault".
Anyway, I have made a patch that updates all that internationalization stuff to some newer version. Please let me know if this solves your problem or not. See the attached ccrypt-1.10x.patch.bz2. Thanks, -- Peter
Dear Peter,
Thank you for update but it won't help. Please see output below
And this won't work on all *BSD systems
But if I use instead of make - bmake or gmake it works and produce binary. But previous version .09 - worked with standard make.
====
cd ccrypt-1.10
bzip2 -dc ../ccrypt-1.10x.patch.bz2 | patch -p1
...
Patching file src/Makefile.in using Plan A...
Hunk #1 succeeded at 40.
Hunk #2 succeeded at 103.
Hunk #3 succeeded at 116.
Hunk #4 succeeded at 137.
Hunk #5 succeeded at 159.
Hunk #6 succeeded at 212.
Hunk #7 succeeded at 223.
done
%./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for emacs... no
checking for xemacs... no
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking for style of include used by make... GNU
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 dependency style of gcc... gcc3
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 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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking what compiler options to use... -g -O2 -Wall
checking for gtar... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for crypt in -lcrypt... yes
checking for gethostname in -lsocket... no
checking for stdint.h... (cached) yes
checking crypt.h usability... no
checking crypt.h presence... no
checking for crypt.h... no
checking for getopt_long... yes
checking size of unsigned int... 4
checking size of unsigned long... 8
checking for 32 bit unsigned integer type... unsigned int
checking whether NLS is requested... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking build system type... x86_64-unknown-freebsd8.2
checking host system type... x86_64-unknown-freebsd8.2
checking whether we are using the GNU C Library 2 or newer... no
checking for ranlib... ranlib
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
checking for inline... inline
checking for size_t... yes
checking for stdint.h... yes
checking for working alloca.h... no
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for unsigned long long int... yes
checking for inttypes.h... (cached) yes
checking whether the inttypes.h PRIxNN macros are broken... no
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 whether imported symbols can be declared weak... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_kill in -lpthread... yes
checking for multithread API to use... posix
checking for pthread_rwlock_t... yes
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
checking for iconv declaration...
extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking argz.h usability... no
checking argz.h presence... no
checking for argz.h... no
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... no
checking for munmap... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for uselocale... no
checking for argz_count... no
checking for argz_stringify... no
checking for argz_next... no
checking for __fsetlocking... no
checking whether feof_unlocked is declared... yes
checking whether fgets_unlocked is declared... no
checking for bison... bison
checking version of bison... 2.5, ok
checking for long long int... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for stdint.h... (cached) yes
checking for working fcntl.h... no (bad O_NOATIME)
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for ptrdiff_t... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for asprintf... yes
checking for fwprintf... yes
checking for newlocale... no
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for snprintf... yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... yes
checking for wcrtomb... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether getc_unlocked is declared... yes
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for CFPreferencesCopyAppValue... (cached) no
checking for CFLocaleCopyCurrent... (cached) no
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... /usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
checking for intltool-update... /usr/local/bin/intltool-update
checking for intltool-merge... /usr/local/bin/intltool-merge
checking for intltool-extract... /usr/local/bin/intltool-extract
checking for xgettext... (cached) /usr/local/bin/xgettext
checking for msgmerge... (cached) /usr/local/bin/msgmerge
checking for msgfmt... (cached) /usr/local/bin/msgfmt
checking for gmsgfmt... (cached) /usr/local/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... ok
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/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... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-freebsd8.2 file names to x86_64-unknown-freebsd8.2 format... func_convert_file_noop
checking how to convert x86_64-unknown-freebsd8.2 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 ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
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... freebsd8.2 ld.so
checking how to hardcode library paths into programs... immediate
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
configure: creating ./config.status
config.status: creating doc/ccrypt.1
config.status: creating doc/ccguess.1
config.status: creating po/Makefile.in
config.status: creating m4/Makefile
config.status: creating intl/Makefile
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating emacs/Makefile
config.status: creating check/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing libtool commands
config.status: executing po/stamp-it commands
%
%make
make all-recursive
Making all in m4
Making all in po
Error expanding embedded variable.
*** Error code 1
Stop in /home/sysadmin1/ccrypt-1.10.
*** Error code 1
Stop in /home/sysadmin1/ccrypt-1.10.
=====
%gmake
gmake all-recursive
gmake[1]: Вход в каталог `/home/sysadmin1/ccrypt-1.10'
Making all in m4
gmake[2]: Вход в каталог `/home/sysadmin1/ccrypt-1.10/m4'
gmake[2]: Цель `all' не требует выполнения команд.
gmake[2]: Выход из каталога `/home/sysadmin1/ccrypt-1.10/m4'
Making all in po
gmake[2]: Вход в каталог `/home/sysadmin1/ccrypt-1.10/po'
file=`echo de | sed 's,.*/,,'`.gmo \ && rm -f $file && /usr/local/bin/msgfmt -o $file de.po
file=`echo fr | sed 's,.*/,,'`.gmo \ && rm -f $file && /usr/local/bin/msgfmt -o $file fr.po
gmake[2]: Выход из каталога `/home/sysadmin1/ccrypt-1.10/po'
Making all in intl
gmake[2]: Вход в каталог `/home/sysadmin1/ccrypt-1.10/intl'
gmake[2]: Цель `all' не требует выполнения команд.
gmake[2]: Выход из каталога `/home/sysadmin1/ccrypt-1.10/intl'
Making all in src
gmake[2]: Вход в каталог `/home/sysadmin1/ccrypt-1.10/src'
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT ccryptlib.o -MD -MP -MF .deps/ccryptlib.Tpo -c -o ccryptlib.o ccryptlib.c
mv -f .deps/ccryptlib.Tpo .deps/ccryptlib.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT rijndael.o -MD -MP -MF .deps/rijndael.Tpo -c -o rijndael.o rijndael.c
mv -f .deps/rijndael.Tpo .deps/rijndael.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT tables.o -MD -MP -MF .deps/tables.Tpo -c -o tables.o tables.c
mv -f .deps/tables.Tpo .deps/tables.Po
rm -f libccrypt.a
ar cru libccrypt.a ccryptlib.o rijndael.o tables.o
ranlib libccrypt.a
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT traverse.o -MD -MP -MF .deps/traverse.Tpo -c -o traverse.o traverse.c
mv -f .deps/traverse.Tpo .deps/traverse.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT xalloc.o -MD -MP -MF .deps/xalloc.Tpo -c -o xalloc.o xalloc.c
mv -f .deps/xalloc.Tpo .deps/xalloc.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT readkey.o -MD -MP -MF .deps/readkey.Tpo -c -o readkey.o readkey.c
mv -f .deps/readkey.Tpo .deps/readkey.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT ccrypt.o -MD -MP -MF .deps/ccrypt.Tpo -c -o ccrypt.o ccrypt.c
mv -f .deps/ccrypt.Tpo .deps/ccrypt.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT unixcryptlib.o -MD -MP -MF .deps/unixcryptlib.Tpo -c -o unixcryptlib.o unixcryptlib.c
mv -f .deps/unixcryptlib.Tpo .deps/unixcryptlib.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT platform.o -MD -MP -MF .deps/platform.Tpo -c -o platform.o platform.c
mv -f .deps/platform.Tpo .deps/platform.Po
/usr/local/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -o ccrypt main.o traverse.o xalloc.o readkey.o ccrypt.o unixcryptlib.o platform.o libccrypt.a /usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib -lcrypt
libtool: link: gcc -g -O2 -Wall -o ccrypt main.o traverse.o xalloc.o readkey.o ccrypt.o unixcryptlib.o platform.o /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib libccrypt.a -L/usr/local/lib -lcrypt
gcc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../intl -DLOCALEDIR=\"/usr/local/share/locale\" -D_THREAD_SAFE -I/usr/local/include -g -O2 -Wall -MT ccguess.o -MD -MP -MF .deps/ccguess.Tpo -c -o ccguess.o ccguess.c
mv -f .deps/ccguess.Tpo .deps/ccguess.Po
/usr/local/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -o ccguess ccguess.o rijndael.o tables.o readkey.o xalloc.o /usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib -lcrypt
libtool: link: gcc -g -O2 -Wall -o ccguess ccguess.o rijndael.o tables.o readkey.o xalloc.o /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -lcrypt
gmake[2]: Выход из каталога `/home/sysadmin1/ccrypt-1.10/src'
Making all in emacs
gmake[2]: Вход в каталог `/home/sysadmin1/ccrypt-1.10/emacs'
WARNING: Warnings can be ignored. :-)
if test "no" != no; then \ set x; \ list='ps-ccrypt.el'; for p in $list; do \ if test -f "$p"; then d=; else d="./"; fi; \ set x "$@" "$d$p"; shift; \ done; \ shift; \ EMACS="no" /usr/local/bin/bash ../elisp-comp "$@" || exit 1; \ else : ; fi
gmake[2]: Выход из каталога `/home/sysadmin1/ccrypt-1.10/emacs'
Making all in doc
gmake[2]: Вход в каталог `/home/sysadmin1/ccrypt-1.10/doc'
cat "ccrypt.1" | sed -f ./man2html.sed > "ccrypt.html"
gmake[2]: Выход из каталога `/home/sysadmin1/ccrypt-1.10/doc'
Making all in check
gmake[2]: Вход в каталог `/home/sysadmin1/ccrypt-1.10/check'
gmake[2]: Цель `all' не требует выполнения команд.
gmake[2]: Выход из каталога `/home/sysadmin1/ccrypt-1.10/check'
gmake[2]: Вход в каталог `/home/sysadmin1/ccrypt-1.10'
gmake[2]: Выход из каталога `/home/sysadmin1/ccrypt-1.10'
gmake[1]: Выход из каталога `/home/sysadmin1/ccrypt-1.10'
%uname -smr
FreeBSD 8.2-RELEASE-p3 amd64
%gcc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
====
I was able to reproduce this bug on FreeBSD. The problem is that po/Makefile contains lines such as
CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
which are not understood by the default "make" of FreeBSD. Specifically, the "$$" syntax is apparently not permitted inside a $(shell ...) call.
I'm not sure of the best way to fix this, since it is really a bug in the internationalization tools, rather than Ccrypt. I have filed a bug report here:
https://bugs.launchpad.net/intltool/+bug/1299862
Thank you, Peter.
Yep, the problem is in /bi/ash which is linked to /bin/sh. On linux it point to
/bin/bash So it is interpretator promlem as well
.
Вс. 30 марта 2014 22:34:01 пользователь Peter Selinger
(selinger@users.sf.net) написал:
I was able to reproduce this bug on FreeBSD. The problem is that po/Makefile
contains lines such as
CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf
"$$lang.gmo "; done)
which are not understood by the default "make" of FreeBSD. Specifically, the
"$$" syntax is apparently not permitted inside a $(shell ...) call.
I'm not sure of the best way to fix this, since it is really a bug in the
internationalization tools, rather than Ccrypt. I have filed a bug report
here:
https://bugs.launchpad.net/intltool/+bug/1299862
[bugs:#17] make stops at DragonFly BSD(and possible on NetBSD))
Status: open
Group:
Created: Thu Dec 13, 2012 06:09 AM UTC by Maxim Falcon
Last Updated: Thu Dec 13, 2012 06:09 AM UTC
Owner: nobody
configure goes well, see attached file
then i input make and see follow error:
=====
config.status: creating check/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing libtool commands
config.status: executing po/stamp-it commands
Stop in /home/sysadmin1/ccrypt-1.10.
*** Error code 1
Stop in /home/sysadmin1/ccrypt-1.10.
=====
if instead make i use bmake - compilation goes well and binary creates with
success.
Seems for DragonFly and NetBSD as they use bmake instead mak the slighr
modifcation of Makefile are needed.
Previous version of ccrypt worked with make well.
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/ccrypt/bugs/17/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs: #17