Bug 80366 - heimdal port installs /usr/local/include/fnmatch.h clobbering /usr/include/fnmatch.h
Summary: heimdal port installs /usr/local/include/fnmatch.h clobbering /usr/include/fn...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jacques Vidrine
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-26 17:10 UTC by Joan Picanyol i Puig
Modified: 2005-07-12 18:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joan Picanyol i Puig 2005-04-26 17:10:20 UTC
	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

Fix: 

IMHO, heimdal should use the system's fnmatch header or at the very least avoid clobbering the namespace.
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)'
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-04-27 08:05:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nectar

Over to maintainer
Comment 2 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-07-12 18:07:59 UTC
State Changed
From-To: open->closed

Fixed, thanks.