*BSD News Article 84960


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!newsfeed.internetmci.com!uuneo.neosoft.com!news
From: conrads@neosoft.com (Conrad Sabatier)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: perl 5 causing porting headaches
Date: 14 Dec 1996 16:57:37 GMT
Organization: NeoSoft, Inc.  
Lines: 29
Message-ID: <58uma1$9to@uuneo.neosoft.com>
Reply-To: conrads@neosoft.com
NNTP-Posting-Host: 206.27.165.164
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:32614


I'm trying to compile tknews (beta, still rather experimental).  One of
the source files wants to include tkInt.h.  The only place I can find such
a file on my system is in some subdirectory of the perl libs -- I mean
*way* down in the directory hierarchy.

Ok, so fine.  No problem, right?  Just add an -I switch and all's well.

Unfortunately, not so.  tkInt.h wants to include other things that don't
seem to exist at all, "#include compat/unistd.h", for example.  This
directive is nested within a "#ifdef HAVE_UNISTD_H" directive.  If the
#ifdef is true, a standard "#include <unistd.h>" is done, otherwise, the
"compat/unistd.h" thing.

OK, so add a -DHAVE_UNISTD_H, right?  Still no go.  It *still* wants this
"compat/unistd.h" file.

What the hell's going on?  Where *is* this stuff?  Should I edit out the
"compat" in these perl include files, or is that asking for trouble
somewhere down the road?  Seems *very* strange to me that perl is trying
to include stuff that doesn't exist.  

This is using the perl-5.003 port, by the way.

-- 
Conrad Sabatier                  | 
conrads@neosoft.com              |  Eschew obfuscation.
http://www.neosoft.com/~conrads  |