Bug 92673 - multimedia/xawtv: xawtv fails to build when devel/libevent is installed
Summary: multimedia/xawtv: xawtv fails to build when devel/libevent is installed
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: Oliver Lehmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-01 09:20 UTC by Raaf
Modified: 2006-02-11 11:25 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 Raaf 2006-02-01 09:20:02 UTC
	When the devel/libevent port is installed xawtv fails to build

Fix: 

Don't know exactly how to fix it but the problem is that if devel/libevent
	is installed the header /usr/local/include/event.h is included instead of
	the event.h included with xawtv.
How-To-Repeat: Install devel/libevent then build xawtv:
[...]
cc -O -pipe -O -pipe -I/usr/local/include -L/usr/local/lib -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include/X11/fonts -I. -I./vbistuff -I./x11 -I./jwz -I./common -I./console -I./x11 -I./structs -I./libng -Llibng -DCONFIGFILE="/usr/X11R6/lib/X11/xawtvrc" -DLIBDIR="/usr/X11R6/lib/xawtv" -DDATADIR="/usr/X11R6/share/xawtv" -DVERSION="3.95" -fPIC -Wp,-MD,mk/x11_xt.tmp -c -o x11/xt.o x11/xt.c
x11/xt.c: In function `EventAction':
x11/xt.c:2041: error: too many arguments to function `event_dispatch'
gmake: *** [x11/xt.o] Error 1
*** Error code 2

Stop in /usr/ports/multimedia/xawtv.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-02-01 09:24:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->petef

Over to maintainer
Comment 2 poleson 2006-02-04 02:14:51 UTC
This patch isn't elegant, but it's a fix for this.

    -Phil.

--- Makefile.old        Sat Nov 12 05:00:52 2005
+++ Makefile    Fri Feb  3 19:09:25 2006
@@ -34,7 +34,7 @@
 USE_XPM=       yes
 USE_X_PREFIX=  yes
 USE_REINPLACE= yes
-CONFIGURE_ENV= LIBS="-L${PREFIX}/lib -L${LOCALBASE}/lib"
+CONFIGURE_ENV= LIBS="-L${PREFIX}/lib -L${LOCALBASE}/lib" 
CFLAGS="-I${WRKSRC}/common"
 MAKE_ENV=      verbose=yes
 INSTALLS_SHLIB=        yes
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2006-02-06 05:08:04 UTC
Responsible Changed
From-To: petef->oliver

Over to maintainer of multimedia/xawtv. 

To submitter: adding the literal name of the port at the beginning of the 
Synopsis will help to keep PRs from being misidentified like this and thus 
being misassigned.
Comment 4 Oliver Lehmann freebsd_committer freebsd_triage 2006-02-11 11:25:32 UTC
State Changed
From-To: open->closed

Fixed, Thanks!