Bug 59615 - cannot compile openh323
Summary: cannot compile openh323
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: roger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-23 15:50 UTC by Hajimu UMEMOTO
Modified: 2004-05-26 11:12 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hajimu UMEMOTO freebsd_committer freebsd_triage 2003-11-23 15:50:18 UTC
 Hi,
 
 >>>>> On Mon, 15 Sep 2003 21:38:52 -0400 (EDT)
 >>>>> Brian Gruber <bgruber@bgruber.isa-geek.com> said:
 
 bgruber>  I believe I traced this to a known problem which
 bgruber>  occurs when installing when ffmpeg is installed, as
 bgruber>  referenced at
 bgruber>  http://www.freebsd.org/gnome/docs/knownissues.html (i
 bgruber>  was building openh323 as part of gnomemeeting):
 
 bgruber>  >5. gnomemeeting fails to build
 bgruber>  >Gnomemeeting may fail to build if you have ffmepg
 bgruber>  installed. 
 bgruber>  >If you do, remove ffmpeg, then build gnomemeeting,
 bgruber>  then 
 bgruber>  >reinstall ffmpeg if so desired.
 
 It seems openh323 has its own rtp.h.  But,
 /usr/local/include/ffmpeg/rtp.h is included instead of its own rtp.h,
 wrongly.  Here is a patch to avoid this situation.
 
 Index: net/openh323/files/patch-configurein
 diff -u net/openh323/files/patch-configurein.orig net/openh323/files/patch-configurein
 --- net/openh323/files/patch-configurein.orig	Thu Aug 28 15:56:10 2003
 +++ net/openh323/files/patch-configurein	Sun Nov 23 22:53:30 2003
 @@ -1,6 +1,8 @@
 -*** configure.in.orig	Thu May 22 13:25:00 2003
 ---- configure.in	Sat Aug 23 07:52:44 2003
 -*************** fi
 +Index: configure.in
 +diff -c configure.in.orig configure.in
 +*** configure.in.orig	Thu May 22 21:25:00 2003
 +--- configure.in	Sun Nov 23 22:51:33 2003
 +***************
  *** 73,85 ****
    
    dnl ########################################################################
 @@ -29,3 +31,20 @@
      PWLIBDIR="/usr/local/share/pwlib/"
    fi
    echo "PWLib prefix set to.... $PWLIBDIR"
 +***************
 +*** 96,102 ****
 +  else
 +    AC_CHECK_FILE(/usr/local/include/ffmpeg/avcodec.h, H323_AVCODEC=1)
 +    if test "${H323_AVCODEC:-unset}" != "unset" ; then
 +!     AVCODECINCLUDEDIR=/usr/local/include/ffmpeg
 +      AVCODECLIBDIR=/usr/local/lib
 +    fi
 +  fi
 +--- 96,102 ----
 +  else
 +    AC_CHECK_FILE(/usr/local/include/ffmpeg/avcodec.h, H323_AVCODEC=1)
 +    if test "${H323_AVCODEC:-unset}" != "unset" ; then
 +!     AVCODECINCLUDEDIR=/usr/local/include
 +      AVCODECLIBDIR=/usr/local/lib
 +    fi
 +  fi
 Index: net/openh323/files/patch-src::h263codec.cxx
 diff -u /dev/null net/openh323/files/patch-src::h263codec.cxx
 --- /dev/null	Sun Nov 23 23:37:50 2003
 +++ net/openh323/files/patch-src::h263codec.cxx	Sun Nov 23 23:37:38 2003
 @@ -0,0 +1,13 @@
 +Index: src/h263codec.cxx
 +diff -u src/h263codec.cxx.orig src/h263codec.cxx
 +--- src/h263codec.cxx.orig	Fri Jun  6 15:32:08 2003
 ++++ src/h263codec.cxx	Sat Nov 22 23:17:45 2003
 +@@ -109,7 +109,7 @@
 + #include "rtp.h"
 + 
 + extern "C" {
 +-#include <avcodec.h>
 ++#include <ffmpeg/avcodec.h>
 + };
 + 
 + 
 
 Sincerely,
 
 --
 Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
 ume@mahoroba.org  ume@bisd.hitachi.co.jp  ume@{,jp.}FreeBSD.org
 http://www.imasy.org/~ume/
Comment 1 Ceri Davies freebsd_committer freebsd_triage 2003-11-24 23:11:40 UTC
Responsible Changed
From-To: gnats-admin->freebsd-ports-bugs

Reassign misfiled PR.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2003-11-26 10:55:01 UTC
Responsible Changed
From-To: freebsd-ports-bugs->roger

Over to maintainer.
Comment 3 Volker Stolz freebsd_committer freebsd_triage 2004-05-26 11:12:28 UTC
State Changed
From-To: open->closed

Committed, thanks!