Re: graphviz port build fails on alpha FBSD 6.3

Anton Shterenlikht <[email protected]> Sat, 5 Jul 2008 21:12:42 +0100
Newsgroups gmane.os.freebsd.devel.alpha
Message-ID <[email protected]>
On Sat, Jul 05, 2008 at 04:50:36PM +0100, Anton Shterenlikht wrote:
> (also posted to ports/graphviz maintainer)
> 
> I get the following error when building this port on
> FreeBSD 6.3-STABLE #0: alpha (ds10l).
 
 [skip]
 
>  cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/pack -I../../lib/fdpgen -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -I/usr/local/include -I/usr/local/include -I/usr/local/include/tk8.4 -I/usr/local/include/tcl8.4 -I/usr/local/include -O -pipe -mcpu=ev6 -mieee -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT utils.lo -MD -MP -MF .deps/utils.Tpo -c utils.c  -fPIC -DPIC -o .libs/utils.o
> utils.c:1733: error: conflicting types for 'strncasecmp'
> utils.h:25: error: previous declaration of 'strncasecmp' was here

It seems the error is due to configure script concluding
there is no strncasecmp in the OS:

# cd /usr/ports/graphics/graphviz
# make configure > configure.out
# grep strncasecmp configure.out
checking for strncasecmp... no
#

But this function seems to be available:

# man strncasecmp| head
STRCASECMP(3)          FreeBSD Library Functions Manual          STRCASECMP(3)

NAME
     strcasecmp, strncasecmp -- compare strings, ignoring case

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <strings.h>
#


Where in the configure script is the check for strncasecmp done?


On i386 FBSD 7.0-stable all is fine:	checking for strncasecmp... yes

many thanks
anton

-- 
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-alpha
To unsubscribe, send any mail to "[email protected]"