From joan@grummit.biaix.org  Tue Apr 26 16:06:59 2005
Return-Path: <joan@grummit.biaix.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6567516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Apr 2005 16:06:59 +0000 (GMT)
Received: from grummit.biaix.org (86.Red-213-97-212.pooles.rima-tde.net [213.97.212.86])
	by mx1.FreeBSD.org (Postfix) with SMTP id CC10343D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Apr 2005 16:06:57 +0000 (GMT)
	(envelope-from joan@grummit.biaix.org)
Received: (qmail 59067 invoked by uid 1000); 26 Apr 2005 16:05:48 -0000
Message-Id: <20050426160548.59066.qmail@grummit.biaix.org>
Date: 26 Apr 2005 16:05:48 -0000
From: Joan Picanyol i Puig <lists-freebsd-gnats@biaix.org>
Reply-To: Joan Picanyol i Puig <lists-freebsd-gnats@biaix.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: heimdal port installs /usr/local/include/fnmatch.h clobbering /usr/include/fnmatch.h
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80366
>Category:       ports
>Synopsis:       heimdal port installs /usr/local/include/fnmatch.h clobbering /usr/include/fnmatch.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    nectar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 26 16:10:20 GMT 2005
>Closed-Date:    Tue Jul 12 17:08:04 GMT 2005
>Last-Modified:  Tue Jul 12 17:08:04 GMT 2005
>Originator:     Joan Picanyol i Puig
>Release:        FreeBSD 5.4-RC3 i386
>Organization:
>Environment:
System: FreeBSD calvin.biaix.org 5.4-RC3 FreeBSD 5.4-RC3 #2: Mon Apr 25 21:12:54 CEST 2005 joan@org:/fs/scratch/mount/obj/fs/scratch/mount/src/sys/CALVIN i386


>Description:
	heimdal ports installs /usr/local/include/fnmatch.h without it's declarations wrapped by __BEGIN_DECLS/__END_DECLS macro in order to be used by C++ programs. octave is a victim of this, since it tries to use heimdal's header and fails to link. This has been confirmed independently, see http://docs.FreeBSD.org/cgi/mid.cgi?426A9E94.20705

>How-To-Repeat:
	delete de BROKEN line from octave's makefile and compile it. Install heimdal and try to compile octave. It will fail at link time with an error like:


/usr/local/include -I/usr/include -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob -I../glob -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -g -O2 -rdynamic \
-L..  -fPIC -L/usr/local/lib -o octave \
main.o  \
-L../liboctave -L../libcruft -L../src  \
-loctinterp -loctave  -lcruft  ../glob/glob.o ../glob/fnmatch.o  \
 /usr/local/lib/libalapack_r.so -lcblas -lf77blas -latlas  -lreadline  -lncurses -lm  -L/usr/local/lib -L/usr/lib -lg2c -lm
../liboctave/liboctave.so: warning: warning: tempnam() possibly used unsafely; consider using mkstemp()
../liboctave/liboctave.so: undefined reference to `fnmatch(char const*, char const*, int)'

>Fix:
	IMHO, heimdal should use the system's fnmatch header or at the very least avoid clobbering the namespace.



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->nectar 
Responsible-Changed-By: vs 
Responsible-Changed-When: Wed Apr 27 07:05:17 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80366 
State-Changed-From-To: open->closed 
State-Changed-By: jylefort 
State-Changed-When: Tue Jul 12 17:07:59 GMT 2005 
State-Changed-Why:  
Fixed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80366 
>Unformatted:
