Bug 22873 - [perl] Perl's core.h conflicts with ncurses.h
Summary: [perl] Perl's core.h conflicts with ncurses.h
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Mark Murray
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-15 16:00 UTC by Michael Samanov
Modified: 2005-09-14 00:12 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 Michael Samanov 2000-11-15 16:00:02 UTC
	When you are trying to compile something, including
/usr/libdata/perl/5.00503/mach/CORE/proto.h and
/usr/include/curses.h, compiler fails complaining to 'instr'
wrong re-declaration

Fix: 

Add "#define instr ncurses_instr" somewhere after
	#include "perl.h" and before #include <curses.h>
How-To-Repeat: 
	bash# h2xs -n Test
	bash# cd Test
	< Insert #include <curses.h> into Test.xs >
	bash# perl Makefile.PL
	bash# make
Comment 1 dd freebsd_committer freebsd_triage 2001-06-01 03:53:59 UTC
Responsible Changed
From-To: freebsd-bugs->markm

Over to in-tree perl maintainer.
Comment 2 dickey 2001-06-03 17:35:57 UTC
the title is correct, the analysis is wrong (curses defined instr() before
the name was use in Perl).

   Navigation Bar-[bar.gif]
>
>                           Problem Report misc/22873
>
>   Perl's core'h conflicts with ncurses.h
>
>   Confidential
>          no
>
>   Severity
>          non-critical
>
>   Priority
>          medium
>
>   Responsible
>          markm@FreeBSD.org
>
>   State
>          open
>
>   Class
>          sw-bug
>
>   Submitter-Id
>          current-users
>
>   Arrival-Date
>          Wed Nov 15 08:00:02 PST 2000
>
>   Last-Modified
>          Thu May 31 19:54:10 PDT 2001
>
>   Originator
>          Michael V. Samanov <mike@vlink.ru>
>
>   Release
>          FreeBSD 4.1-STABLE i386
>
>   Organization
>
>Home
>
>   Environment
>
>        FreeBSD since 4.x
>
>   Description
>
>        When you are trying to compile something, including
>/usr/libdata/perl/5.00503/mach/CORE/proto.h and
>/usr/include/curses.h, compiler fails complaining to 'instr'
>wrong re-declaration
>
>   How-To-Repeat
>
>        bash# h2xs -n Test
>        bash# cd Test
>        < Insert #include <curses.h> into Test.xs >
>        bash# perl Makefile.PL
>        bash# make
>
>   Fix
>
>        Add "#define instr ncurses_instr" somewhere after
>        #include "perl.h" and before #include <curses.h>
>
>
>
>
>   Audit-Trail
>
>Responsible-Changed-From-To: freebsd-bugs->markm
>Responsible-Changed-By: dd
>Responsible-Changed-When: Thu May 31 19:53:59 PDT 2001
>Responsible-Changed-Why:
>Over to in-tree perl maintainer.
>
>http://www.FreeBSD.org/cgi/query-pr.cgi?pr=22873
>
>   Submit Followup | Raw PR
>     _________________________________________________________________
>
>
>    www@FreeBSD.org
-- 
Thomas E. Dickey <dickey@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2005-09-14 00:12:20 UTC
State Changed
From-To: open->closed

Perl is no longer in the base system.