graphviz port build fails on alpha FBSD 6.3
Anton Shterenlikht
mexas at bristol.ac.uk
Thu Jul 10 11:06:26 UTC 2008
On Mon, Jul 07, 2008 at 02:40:04PM +0100, Anton Shterenlikht wrote:
> On Mon, Jul 07, 2008 at 03:06:41PM +0200, Dirk Meyer wrote:
> > Hallo Anton Shterenlikht,
> >
> > > > I get the following error when building this port on
> > > > FreeBSD 6.3-STABLE #0: alpha (ds10l).
> >
> > Thanks fo testing Alpha.
> >
> > > # make configure > configure.out
> > > # grep strncasecmp configure.out
> > > checking for strncasecmp... no
> > > #
> >
> > Can you look into the config.log.
> > There should be a section with "strncasecmp".
> > somwhow compile/link of it failed.
> >
> > > Where in the configure script is the check for strncasecmp done?
> > > On i386 FBSD 7.0-stable all is fine: checking for strncasecmp... yes
> >
> > search for strncasecmp
> > its a start of a for block in configure.
>
> Dirk
>
> I think the following fragment of config.log is relevant:
>
> %vi config.log
>
> 6929 configure:9333: result: no
> 6930 configure:9253: checking for strncasecmp
> 6931 configure:9309: cc -o conftest -O -pipe -mcpu=ev6 -mieee
> -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math
> -I/usr/local/include -I/usr/local/include
> -L/usr/local/lib -L/usr/local/lib conftest.c >&5
> 6932 conftest.c:86: warning: function declaration isn't a prototype
> 6933 conftest.c:96: warning: function declaration isn't a prototype
> 6934 /usr/lib/crtfastmath.o(.text+0x1c): In function `set_fast_math':
> 6935 : undefined reference to `__ieee_set_fp_control'
> 6936 /usr/lib/crtfastmath.o(.text+0x20): In function `set_fast_math':
> 6937 : undefined reference to `__ieee_set_fp_control'
> 6938 configure:9315: $? = 1
>
>
> which indicates that lines starting with 9253 in configure are of interest:
>
> %vi configure
>
> 9250 for ac_func in strcasecmp strncasecmp
> 9251 do
> 9252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
> 9253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
> 9254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
> 9255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
> 9256 echo $ECHO_N "(cached) $ECHO_C" >&6
> 9257 else
> 9258 cat >conftest.$ac_ext <<_ACEOF
Dirk
I tried to look at this problem myself but got stuck.
Anyway I think I need to show you the full logs for strncasecmp.
I don't really understand what goes on with this bit of code.
Is the problem in the actual c code at the end?
In this case perhaps I could just test my strncasecmp on some simple
c code?
Or is the problem in the configure script itself?
many thanks
anton
configure:9253: checking for strncasecmp
configure:9309: cc -o conftest -O -pipe -mcpu=ev6 -mieee -Wstrict-prototypes -Wp
ointer-arith -Wall -ffast-math -I/usr/local/include -I/usr/local/include -L/usr
/local/lib -L/usr/local/lib conftest.c >&5
conftest.c:86: warning: function declaration isn't a prototype
conftest.c:96: warning: function declaration isn't a prototype
/usr/lib/crtfastmath.o(.text+0x1c): In function `set_fast_math':
: undefined reference to `__ieee_set_fp_control'
/usr/lib/crtfastmath.o(.text+0x20): In function `set_fast_math':
: undefined reference to `__ieee_set_fp_control'
configure:9315: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "graphviz"
| #define PACKAGE_TARNAME "graphviz"
| #define PACKAGE_VERSION "2.20.2"
| #define PACKAGE_STRING "graphviz 2.20.2"
| #define PACKAGE_BUGREPORT "http://www.graphviz.org/"
| #define GVPLUGIN_VERSION 5
| #define DEFAULT_FONTPATH "/usr/share/fonts/default/Type1:/usr/X11R6/lib/X11/fo
nts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr
/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueT
ype:/usr/X11R6/lib/X11/fonts/Type1:/usr/common/share/fonts/ttf"
| #define PATHSEPARATOR ":"
| #define NO_POSTSCRIPT_ALIAS 0
| #define DEFAULT_DPI 96
| #define PACKAGE "graphviz"
| #define VERSION "2.20.2"
| #define ENABLE_SHARED 1
| #define YYTEXT_POINTER 1
| #define NO_FPERR 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_SEARCH_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_FLOAT_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_FENV_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_SETJMP_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_LANGINFO_H 1
| #define HAVE_LIBINTL_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE__BOOL 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_BOOL 1
| #define C_ALLOCA 1
| #define STACK_DIRECTION -1
| /* end confdefs.h. */
| /* Define strncasecmp to an innocuous variant, in case <limits.h> declares str
ncasecmp.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define strncasecmp innocuous_strncasecmp
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char strncasecmp (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef strncasecmp
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char strncasecmp ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined __stub_strncasecmp || defined __stub___strncasecmp
| choke me
| #endif
|
| int
| main ()
| {
| return strncasecmp ();
| ;
| return 0;
| }
configure:9333: result: no
--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233
Fax: +44 (0)117 929 4423
More information about the freebsd-alpha
mailing list