Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13855 closed defect (fixed)

enscript 1.6.4 build failure: conditional "AMDEP" was never defined

Reported by: tabithamc@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: enscript leopard server Cc: kimuraw (kimura wataru)
Port:

Description

On Mac OS X Server (Leopard 10.5.1), with MacPorts 1.6.0, the enscript port refuses to build per:

# port -v install enscript
--->  Fetching enscript
--->  Verifying checksum(s) for enscript
--->  Checksumming enscript-1.6.4.tar.gz
--->  Extracting enscript
--->  Extracting enscript-1.6.4.tar.gz
--->  Applying patches to enscript
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/enscript/files/patch-afm_Makefile.in
patching file afm/Makefile.in
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/enscript/files/patch-lib_Makefile.in
patching file lib/Makefile.in
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/enscript/files/patch-src_gsint.h
patching file src/gsint.h
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/enscript/files/patch-src_main.c
patching file src/main.c
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/enscript/files/patch-src_psgen.c
patching file src/psgen.c
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/enscript/files/patch-src_util.c
patching file src/util.c
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/print/enscript/files/patch-states_hl_Makefile.in
patching file states/hl/Makefile.in
--->  Configuring enscript
checking for a BSD-compatible install... /usr/bin/install
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install
checking for strerror in -lcposix... no
checking for /usr/bin/gcc-4.0 option to accept ANSI C... no
checking how to run the C preprocessor... /usr/bin/cpp-4.0
checking for egrep... grep -E
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking for function prototypes... no
checking for ANSI C header files... no
checking for string.h... (cached) no
checking for an ANSI C-conforming const... no
checking for working alloca.h... yes
checking for alloca... yes
checking for ANSI C header files... (cached) no
checking for string.h... (cached) no
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) no
checking stdarg.h usability... no
checking stdarg.h presence... yes
configure: WARNING: stdarg.h: present but cannot be compiled
configure: WARNING: stdarg.h: check for missing prerequisite headers?
configure: WARNING: stdarg.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for stdarg.h... yes
checking math.h usability... no
checking math.h presence... yes
configure: WARNING: math.h: present but cannot be compiled
configure: WARNING: math.h: check for missing prerequisite headers?
configure: WARNING: math.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for math.h... yes
checking pwd.h usability... no
checking pwd.h presence... yes
configure: WARNING: pwd.h: present but cannot be compiled
configure: WARNING: pwd.h: check for missing prerequisite headers?
configure: WARNING: pwd.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for pwd.h... yes
checking for sys/types.h... (cached) no
checking for sys/stat.h... (cached) no
checking for strchr... yes
checking for getcwd... yes
checking for strerror... yes
checking for memmove... yes
checking for memcpy... yes
checking for strtoul... yes
checking for vprintf... yes
checking for _doprnt... no
checking for main in -lsun... no
checking for gethostname... yes
checking for ranlib... ranlib
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for lpr... lpr
checking for lp... (cached) lpr
checking for msgfmt... /opt/local/bin/msgfmt
checking for gmsgfmt... /opt/local/bin/msgfmt
checking for xgettext... /opt/local/bin/xgettext
checking for msgmerge... /opt/local/bin/msgmerge
checking build system type... i386-apple-darwin9.1.0
checking host system type... i386-apple-darwin9.1.0
checking for inline... no
checking for off_t... no
checking for size_t... no
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) no
checking for getpagesize... yes
checking for working mmap... no
checking whether we are using the GNU C Library 2.1 or newer... no
checking whether integer division by zero raises SIGFPE... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unsigned long long... yes
checking for inttypes.h... no
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking argz.h usability... no
checking argz.h presence... no
checking for argz.h... no
checking limits.h usability... no
checking limits.h presence... yes
configure: WARNING: limits.h: present but cannot be compiled
configure: WARNING: limits.h: check for missing prerequisite headers?
configure: WARNING: limits.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for limits.h... yes
checking locale.h usability... no
checking locale.h presence... yes
configure: WARNING: locale.h: present but cannot be compiled
configure: WARNING: locale.h: check for missing prerequisite headers?
configure: WARNING: locale.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for locale.h... yes
checking nl_types.h usability... no
checking nl_types.h presence... yes
configure: WARNING: nl_types.h: present but cannot be compiled
configure: WARNING: nl_types.h: check for missing prerequisite headers?
configure: WARNING: nl_types.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for nl_types.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking stddef.h usability... no
checking stddef.h presence... yes
configure: WARNING: stddef.h: present but cannot be compiled
configure: WARNING: stddef.h: check for missing prerequisite headers?
configure: WARNING: stddef.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for stddef.h... yes
checking for stdlib.h... (cached) no
checking for string.h... (cached) no
checking for unistd.h... (cached) no
checking sys/param.h usability... no
checking sys/param.h presence... yes
configure: WARNING: sys/param.h: present but cannot be compiled
configure: WARNING: sys/param.h: check for missing prerequisite headers?
configure: WARNING: sys/param.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for fgets_unlocked... no
checking for getc_unlocked... yes
checking for getcwd... (cached) 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 putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... (cached) yes
checking for tsearch... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for iconv... no, consider installing GNU libiconv
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.3, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... yes
checking how to link with libintl... /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lc 
checking for perl... /opt/local/bin/perl
configure: error: conditional "AMDEP" was never defined.
Usually this means the macro was only invoked conditionally.
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_enscript/work/enscript-1.6.4" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --with-media=Letter --infodir=/opt/local/share/info " returned error 1
Command output: 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 putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... (cached) yes
checking for tsearch... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for iconv... no, consider installing GNU libiconv
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.3, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... yes
checking how to link with libintl... /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lc 
checking for perl... /opt/local/bin/perl
configure: error: conditional "AMDEP" was never defined.
Usually this means the macro was only invoked conditionally.

Warning: the following items did not execute (for enscript): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Attachments (1)

enscript-port-config.log (110.2 KB) - added by cssdev 16 years ago.
log created when building with port configure

Download all attachments as: .zip

Change History (10)

comment:1 Changed 16 years ago by tabithamc@…

Its obvious from the output I posted in the opening information on this ticket but I should have stated the version of enscript that fails to build is 1.6.4

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Enscript fails to install on Leopard Server 10.5.1enscript 1.6.4 build failure: conditional "AMDEP" was never defined

I see the same problem on Mac OS X 10.4.11 Intel, Xcode 2.4.1, MacPorts 1.6.0.

comment:3 Changed 16 years ago by jmpp@…

Priority: HighNormal

comment:4 Changed 16 years ago by cssdev

It looks like the enscript code requires newer versions of automake and/or autoconf. I tried to manually run them on Mac OS X 10.4.11:

[/Users/Shared/macports/dports/print/enscript/work/enscript-1.6.4]$$ sudo automake
aclocal.m4:163: version mismatch.  This is Automake 1.6.3, but aclocal.m4
aclocal.m4:163: was generated for Automake 1.7.  You should recreate
aclocal.m4:163: aclocal.m4 with aclocal and run automake again.
aclocal.m4:810: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER'
aclocal.m4:878: `fp_C_PROTOTYPES' is obsolete; use `AM_C_PROTOTYPES'
aclocal.m4:986: `fp_PROG_CC_STDC' is obsolete; use `AM_PROG_CC_STDC'
aclocal.m4:810: required file `./$@)].in' not found

comment:5 Changed 16 years ago by cssdev

Owner: changed from macports-tickets@… to css@…
Status: newassigned

I installed the autoconf and automake ports, but I couldn't get the port to build using the port command. However, if I went into the work directory and manually ran configure, the environment picked everything up and ran properly:

/Users/Shared/macports/dports/print/enscript]$ cd work/enscript-1.6.4/; sudo ./configure --prefix=/opt/local --mandir=/opt/local/share/man --with-media=Letter --infodir=/opt/local/share/info

checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for strerror in -lcposix... no
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
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 function prototypes... yes
checking for ANSI C header files... yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for strchr... yes
checking for getcwd... yes
checking for strerror... yes
checking for memmove... yes
checking for memcpy... yes
checking for strtoul... yes
checking for vprintf... yes
checking for _doprnt... no
checking for main in -lsun... no
checking for gethostname... yes
checking for ranlib... ranlib
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for lpr... lpr
checking for lp... (cached) lpr
checking for msgfmt... /opt/local/bin/msgfmt
checking for gmsgfmt... /opt/local/bin/msgfmt
checking for xgettext... /opt/local/bin/xgettext
checking for msgmerge... /opt/local/bin/msgmerge
checking build system type... i386-apple-darwin8.11.1
checking host system type... i386-apple-darwin8.11.1
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld) is GNU ld... no
checking for shared library run path origin... done
checking argz.h usability... no
checking argz.h presence... no
checking for argz.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
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 unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for fgets_unlocked... no
checking for getc_unlocked... yes
checking for getcwd... (cached) 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 putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... (cached) yes
checking for tsearch... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for iconv... yes
checking how to link with libiconv... /opt/local/lib/libiconv.dylib -L/opt/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 for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 1.28, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... yes
checking how to link with libintl... /opt/local/lib/libintl.dylib -L/opt/local/lib /opt/local/lib/libiconv.dylib -lc 
checking for perl... /opt/local/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating m4/Makefile
config.status: creating intl/Makefile
config.status: creating po/Makefile
config.status: creating compat/Makefile
config.status: creating afm/Makefile
config.status: creating afmlib/Makefile
config.status: creating src/Makefile
config.status: creating src/tests/Makefile
config.status: creating lib/Makefile
config.status: creating scripts/Makefile
config.status: creating states/Makefile
config.status: creating states/hl/Makefile
config.status: creating states/tests/Makefile
config.status: creating docs/Makefile
config.status: creating w32/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: setting ALL_LINGUAS in configure.in is obsolete
config.status: creating po/Makefile
config.status: executing default commands

Enscript is now configured to your system with the following
user-definable options.  Please, check that they are correct and
match to your system's properties.

Option     Change with configure's option   Current value
---------------------------------------------------------
Media      --with-media=MEDIA               Letter
Spooler    --with-spooler=SPOOLER           lpr
PS level   --with-ps-level=LEVEL            2

So perhaps now that approach is found to work, it's just a matter of passing the appropriate environment into the configure phase.

Changed 16 years ago by cssdev

Attachment: enscript-port-config.log added

log created when building with port configure

comment:6 Changed 16 years ago by kimuraw (kimura wataru)

I updated the portfile as 1.6.4_2 as r38273. I think the probrem was fixed. Please try this.

The environment "CC" caused this configure error. I made configure to ignore "CC".

comment:7 Changed 16 years ago by kimuraw (kimura wataru)

Cc: kimuraw@… added

cc me

comment:8 Changed 16 years ago by cssdev

Resolution: fixed
Status: assignedclosed

Seems like this is fixed now. It configured and built fine on my Tiger MBP. Thanks!

comment:9 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.