can't compile textproc/flex

Robert Huff roberthuff at rcn.com
Sat Jun 5 23:34:13 UTC 2010


	Trying to upgrade gettext, it seems I need to upgrade flex.
	This produces:

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 bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... configure: error: cannot find output from flex; giving up
===>  Script "configure" failed unexpectedly.
Please report the problem to johans at FreeBSD.org [maintainer] and attach the
"/usr/ports/textproc/flex/work/flex-2.5.35/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).

	I have e-mailed the maintained, with no response.
	The config log file is appended.
	Can anyoneone tell me what's messed up?  (And how to fix it?)


					Robert Huff


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by the fast lexical analyser generator configure 2.5.35, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --includedir=/usr/local/include/flex --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=amd64-portbld-freebsd9.0

## --------- ##
## Platform. ##
## --------- ##

hostname = jerusalem.litteratus.org
uname -m = amd64
uname -r = 9.0-CURRENT
uname -s = FreeBSD
uname -v = FreeBSD 9.0-CURRENT #0: Fri Apr 23 11:34:17 EDT 2010     huff at jerusalem.litteratus.org:/usr/obj/usr/src/sys/JERUSALEM 

/usr/bin/uname -p = amd64
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /root


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1378: checking for a BSD-compatible install
configure:1433: result: /usr/bin/install -c -o root -g wheel
configure:1444: checking whether build environment is sane
configure:1487: result: yes
configure:1552: checking for gawk
configure:1581: result: no
configure:1552: checking for mawk
configure:1581: result: no
configure:1552: checking for nawk
configure:1568: found /usr/bin/nawk
configure:1578: result: nawk
configure:1588: checking whether gmake sets $(MAKE)
configure:1612: result: no
configure:1795: checking whether NLS is requested
configure:1804: result: yes
configure:1842: checking for msgfmt
configure:1876: result: no
configure:1882: checking for gmsgfmt
configure:1913: result: :
configure:1952: checking for xgettext
configure:1986: result: no
configure:2023: checking for msgmerge
configure:2056: result: no
configure:2116: checking for style of include used by gmake
configure:2144: result: none
configure:2215: checking for gcc
configure:2241: result: cc
configure:2485: checking for C compiler version
configure:2488: cc --version </dev/null >&5
cc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2491: $? = 0
configure:2493: cc -v </dev/null >&5
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]
configure:2496: $? = 0
configure:2498: cc -V </dev/null >&5
cc: '-V' option must have argument
configure:2501: $? = 1
configure:2524: checking for C compiler default output file name
configure:2527: cc -O -pipe -g   conftest.c  >&5
configure:2530: $? = 0
configure:2576: result: a.out
configure:2581: checking whether the C compiler works
configure:2587: ./a.out
configure:2590: $? = 0
configure:2607: result: yes
configure:2614: checking whether we are cross compiling
configure:2616: result: no
configure:2619: checking for suffix of executables
configure:2621: cc -o conftest -O -pipe -g   conftest.c  >&5
configure:2624: $? = 0
configure:2649: result: 
configure:2655: checking for suffix of object files
configure:2676: cc -c -O -pipe -g  conftest.c >&5
configure:2679: $? = 0
configure:2701: result: o
configure:2705: checking whether we are using the GNU C compiler
configure:2729: cc -c -O -pipe -g  conftest.c >&5
configure:2735: $? = 0
configure:2738: test -z 			 || test ! -s conftest.err
configure:2741: $? = 0
configure:2744: test -s conftest.o
configure:2747: $? = 0
configure:2760: result: yes
configure:2766: checking whether cc accepts -g
configure:2787: cc -c -g  conftest.c >&5
configure:2793: $? = 0
configure:2796: test -z 			 || test ! -s conftest.err
configure:2799: $? = 0
configure:2802: test -s conftest.o
configure:2805: $? = 0
configure:2816: result: yes
configure:2833: checking for cc option to accept ANSI C
configure:2903: cc  -c -O -pipe -g  conftest.c >&5
configure:2909: $? = 0
configure:2912: test -z 			 || test ! -s conftest.err
configure:2915: $? = 0
configure:2918: test -s conftest.o
configure:2921: $? = 0
configure:2939: result: none needed
configure:2957: cc -c -O -pipe -g  conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:2963: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:3095: checking dependency style of cc
configure:3185: result: none
configure:3208: checking build system type
configure:3226: result: amd64-portbld-freebsd9.0
configure:3234: checking host system type
configure:3248: result: amd64-portbld-freebsd9.0
configure:3280: checking for ld used by GCC
configure:3343: result: /usr/bin/ld
configure:3352: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.15 [FreeBSD] 2004-05-23
configure:3364: result: yes
configure:3370: checking for shared library run path origin
configure:3383: result: done
configure:3800: checking whether NLS is requested
configure:3809: result: yes
configure:3827: checking for GNU gettext in libc
configure:3851: cc -o conftest -O -pipe -g   conftest.c  >&5
conftest.c:11:21: error: libintl.h: No such file or directory
conftest.c: In function 'main':
conftest.c:18: warning: incompatible implicit declaration of built-in function 'gettext'
conftest.c:18: warning: cast from pointer to integer of different size
configure:3857: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "the fast lexical analyser generator"
| #define PACKAGE_TARNAME "flex"
| #define PACKAGE_VERSION "2.5.35"
| #define PACKAGE_STRING "the fast lexical analyser generator 2.5.35"
| #define PACKAGE_BUGREPORT "flex-help at lists.sourceforge.net"
| #define PACKAGE "flex"
| #define VERSION "2.5.35"
| /* end confdefs.h.  */
| #include <libintl.h>
| extern int _nl_msg_cat_cntr;
| extern int *_nl_domain_bindings;
| int
| main ()
| {
| bindtextdomain ("", "");
| return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
|   ;
|   return 0;
| }
configure:3881: result: no
configure:3915: checking for iconv
configure:3942: cc -o conftest -O -pipe -g -I/usr/local/include  conftest.c  >&5
/var/tmp//ccsypAJr.o(.text+0xa): In function `main':
/usr/ports/textproc/flex/work/flex-2.5.35/conftest.c:16: undefined reference to `libiconv_open'
/var/tmp//ccsypAJr.o(.text+0x2a):/usr/ports/textproc/flex/work/flex-2.5.35/conftest.c:17: undefined reference to `libiconv'
/var/tmp//ccsypAJr.o(.text+0x32):/usr/ports/textproc/flex/work/flex-2.5.35/conftest.c:18: undefined reference to `libiconv_close'
configure:3948: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "the fast lexical analyser generator"
| #define PACKAGE_TARNAME "flex"
| #define PACKAGE_VERSION "2.5.35"
| #define PACKAGE_STRING "the fast lexical analyser generator 2.5.35"
| #define PACKAGE_BUGREPORT "flex-help at lists.sourceforge.net"
| #define PACKAGE "flex"
| #define VERSION "2.5.35"
| /* end confdefs.h.  */
| #include <stdlib.h>
| #include <iconv.h>
| int
| main ()
| {
| iconv_t cd = iconv_open("","");
|        iconv(cd,NULL,NULL,NULL,NULL);
|        iconv_close(cd);
|   ;
|   return 0;
| }
configure:3992: cc -o conftest -O -pipe -g -I/usr/local/include  conftest.c  /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib >&5
configure:3998: $? = 0
configure:4001: test -z 			 || test ! -s conftest.err
configure:4004: $? = 0
configure:4007: test -s conftest
configure:4010: $? = 0
configure:4025: result: yes
configure:4035: checking how to link with libiconv
configure:4037: result: /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
configure:4426: checking for GNU gettext in libintl
configure:4458: cc -o conftest -O -pipe -g -I/usr/local/include   conftest.c  /usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib >&5
conftest.c: In function 'main':
conftest.c:23: warning: cast from pointer to integer of different size
configure:4464: $? = 0
configure:4467: test -z 			 || test ! -s conftest.err
configure:4470: $? = 0
configure:4473: test -s conftest
configure:4476: $? = 0
configure:4547: result: yes
configure:4576: checking whether to use NLS
configure:4578: result: yes
configure:4581: checking where the gettext function comes from
configure:4592: result: external libintl
configure:4600: checking how to link with libintl
configure:4602: result: /usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
configure:4659: checking for bison
configure:4675: found /usr/local/bin/bison
configure:4685: result: bison -y
configure:4700: checking for flex
configure:4716: found /usr/local/bin/flex
configure:4726: result: flex
configure:4739: checking for yywrap in -lfl
configure:4769: cc -o conftest -O -pipe -g -I/usr/local/include  conftest.c -lfl   >&5
configure:4775: $? = 0
configure:4778: test -z 			 || test ! -s conftest.err
configure:4781: $? = 0
configure:4784: test -s conftest
configure:4787: $? = 0
configure:4800: result: yes
configure:4877: checking lex output file root
configure:4888: flex conftest.l
/libexec/ld-elf.so.1: Shared object "libintl.so.8" not found, required by "flex"
configure:4891: $? = 1
configure:4898: error: cannot find output from flex; giving up

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=amd64-portbld-freebsd9.0
ac_cv_build_alias=amd64-portbld-freebsd9.0
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=cc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O -pipe -g'
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O -pipe -g'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=c++
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=amd64-portbld-freebsd9.0
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_exeext=''
ac_cv_host=amd64-portbld-freebsd9.0
ac_cv_host_alias=amd64-portbld-freebsd9.0
ac_cv_lib_fl_yywrap=yes
ac_cv_objext=o
ac_cv_path_GMSGFMT=:
ac_cv_path_MSGFMT=:
ac_cv_path_MSGMERGE=:
ac_cv_path_XGETTEXT=:
ac_cv_prog_AWK=nawk
ac_cv_prog_LEX=flex
ac_cv_prog_YACC='bison -y'
ac_cv_prog_ac_ct_CC=cc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=''
ac_cv_prog_make_gmake_set=no
acl_cv_hardcode_direct=no
acl_cv_hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
acl_cv_hardcode_libdir_separator=''
acl_cv_hardcode_minus_L=no
acl_cv_libext=a
acl_cv_path_LD=/usr/bin/ld
acl_cv_prog_gnu_ld=yes
acl_cv_rpath=done
acl_cv_shlibext=so
acl_cv_wl=-Wl,
am_cv_CC_dependencies_compiler_type=none
am_cv_func_iconv=yes
am_cv_lib_iconv=yes
gt_cv_func_gnugettext1_libc=no
gt_cv_func_gnugettext1_libintl=yes
lt_cv_sys_max_cmd_len=262144

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /usr/ports/textproc/flex/work/flex-2.5.35/missing --run aclocal-1.9'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/ports/textproc/flex/work/flex-2.5.35/missing --run tar'
AUTOCONF='${SHELL} /usr/ports/textproc/flex/work/flex-2.5.35/missing --run autoconf'
AUTOHEADER='${SHELL} /usr/ports/textproc/flex/work/flex-2.5.35/missing --run autoheader'
AUTOMAKE='${SHELL} /usr/ports/textproc/flex/work/flex-2.5.35/missing --run automake-1.9'
AWK='nawk'
BISON=''
CC='cc'
CCDEPMODE='depmode=none'
CFLAGS='-O -pipe -g'
CPP=''
CPPFLAGS='-I/usr/local/include'
CXX='c++'
CXXDEPMODE=''
CXXFLAGS='-O -pipe -g'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GMSGFMT=':'
HELP2MAN=''
INDENT=''
INSTALL_DATA='install  -o root -g wheel -m 444'
INSTALL_PROGRAM='install   -o root -g wheel -m 555'
INSTALL_SCRIPT='install  -o root -g wheel -m 555'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INTLLIBS='/usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib'
LDFLAGS=''
LEX='flex'
LEXLIB='-lfl'
LEX_OUTPUT_ROOT=''
LIBICONV='/usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib'
LIBINTL='/usr/local/lib/libintl.so -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib'
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBICONV='-L/usr/local/lib -liconv -R/usr/local/lib'
LTLIBINTL='-L/usr/local/lib -lintl -L/usr/local/lib -liconv -R/usr/local/lib'
LTLIBOBJS=''
M4=''
MAKEINFO='${SHELL} /usr/ports/textproc/flex/work/flex-2.5.35/missing --run makeinfo'
MKINSTALLDIRS='$(top_builddir)/./mkinstalldirs'
MSGFMT=':'
MSGMERGE=':'
OBJEXT='o'
PACKAGE='flex'
PACKAGE_BUGREPORT='flex-help at lists.sourceforge.net'
PACKAGE_NAME='the fast lexical analyser generator'
PACKAGE_STRING='the fast lexical analyser generator 2.5.35'
PACKAGE_TARNAME='flex'
PACKAGE_VERSION='2.5.35'
PATH_SEPARATOR=':'
POSUB='po'
RANLIB=''
SET_MAKE='MAKE=gmake'
SHELL='/bin/sh'
STRIP=''
USE_NLS='yes'
VERSION='2.5.35'
XGETTEXT=':'
YACC='bison -y'
ac_ct_CC='cc'
ac_ct_CXX=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='#'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='amd64-portbld-freebsd9.0'
build_alias='amd64-portbld-freebsd9.0'
build_cpu='amd64'
build_os='freebsd9.0'
build_vendor='portbld'
datadir='${prefix}/share'
exec_prefix='NONE'
host='amd64-portbld-freebsd9.0'
host_alias=''
host_cpu='amd64'
host_os='freebsd9.0'
host_vendor='portbld'
includedir='/usr/local/include/flex'
infodir='/usr/local/info/'
install_sh='/usr/ports/textproc/flex/work/flex-2.5.35/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='/usr/local/man'
mkdir_p='$(mkinstalldirs)'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define ENABLE_NLS 1
#define HAVE_DCGETTEXT 1
#define HAVE_GETTEXT 1
#define HAVE_ICONV 1
#define PACKAGE "flex"
#define PACKAGE_BUGREPORT "flex-help at lists.sourceforge.net"
#define PACKAGE_NAME "the fast lexical analyser generator"
#define PACKAGE_STRING "the fast lexical analyser generator 2.5.35"
#define PACKAGE_TARNAME "flex"
#define PACKAGE_VERSION "2.5.35"
#define VERSION "2.5.35"

configure: exit 1


More information about the freebsd-ports mailing list