Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2002 14:49:07 +0100 (CET)
From:      Hartmut Brandt <brandt@fokus.gmd.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/35817: tcl84 port fails to place a link to tclPlatDecls.h into /usr/local/include/tcl8.4
Message-ID:  <200203121349.g2CDn7I10352@fokus.gmd.de>

next in thread | raw e-mail | index | archive | help

>Number:         35817
>Category:       ports
>Synopsis:       tcl84 port fails to place a link to tclPlatDecls.h into /usr/local/include/tcl8.4
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 12 05:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hartmut Brandt
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
FhI FOKUS
>Environment:
System: FreeBSD beagle.fokus.gmd.de 5.0-CURRENT FreeBSD 5.0-CURRENT #14: Thu Jan 24 12:30:33 CET 2002 hbb@beagle.fokus.gmd.de:/opt/obj/usr/src/sys/BEAGLE i386


	
>Description:

The tcl84 port places the tcl include file hierarchy under
/usr/local/include/tcl84. This directory contains a symbolic link to
generic/tcl.h. The user expected to find tcl.h by supplying
-I/usr/local/include/tcl8.4 to cc and using #include <tcl.h> or
-I/usr/local/include and #include <tcl8.4/tcl.h>. tcl.h itself contains
the line

#include "tclPlatDecls.h"

This line expects the file to find in the same directory as tcl.h was found:
/usr/local/include/tcl8.4. This means, that there should be a symbolic link:

/usr/local/include/tcl8.4/tclPlatDecls.h -> /usr/local/include/tcl8.4/generic/tclPlatDecls.h

>How-To-Repeat:

try to compile the following file:

/* BOF */
#include <tcl.h>
/* EOF */

with cc -I/usr/local/include/tcl8.4

or

/* BOF */
#include <tcl8.4/tcl.h>
/* EOF */

with cc -I/usr/local/include

Observer that in both cases tclPlatDecls.h cannot be found.

>Fix:

Make a symbolic link for the file in question by adding the following line
around line 627 of unix/Makefile.in

@ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/tclPlatDecls.h $(INCLUDE_INSTALL_DIR)/tclPlatDecls.h
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203121349.g2CDn7I10352>