Bug 73867

Summary: Can't compile multimedia/mpeg4ip by gcc3.4
Product: Ports & Packages Reporter: umeno
Component: Individual Port(s)Assignee: Mario Sergio Fujikawa Ferreira <lioux>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
patch-mpeg4ip none

Description umeno 2004-11-12 13:30:15 UTC
Can't compile multimedia/mpeg4ip by gcc3.4:
I think this problem will cause failure of gnome2.8 update by gnome_upgrade.sh.

(snip)

 g++34 -DHAVE_CONFIG_H -I. -I. -I../../../.. -I.. -I../.. -I../../../lib -I../../../lib/audio -I../../../../common/video/mpeg4 -I../../../../include -I../../../../lib -I../../../../lib/mp4v2 -I../../../../lib/sdp -I../../../../lib/utils -I/usr/local/include -I/usr/X11R6/include -D_THREAD_SAFE -D_REENTRANT -DNOCONTROLS -fexceptions -Wall -Werror -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -Wformat=2 -O -pipe -march=pentiumpro -DUSE_MMX -DMPEG4IP -MT mp3if.lo -MD -MP -MF .deps/mp3if.Tpo -c mp3if.cpp  -fPIC -DPIC -o .libs/mp3if.o
if /bin/sh ../../../../libtool --mode=compile g++34 -DHAVE_CONFIG_H -I. -I. -I../../../.. -I.. -I../..  -I../../../lib -I../../../lib/audio -I../../../../common/video/mpeg4 -I../../../../include -I../../../../lib -I../../../../lib/mp4v2 -I../../../../lib/sdp -I../../../../lib/utils  -I/usr/local/include -I/usr/X11R6/include -D_THREAD_SAFE -D_REENTRANT -DNOCONTROLS -fexceptions -Wall -Werror  -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -Wformat=2 -O -pipe -march=pentiumpro -DUSE_MMX -DMPEG4IP -MT mp3_file.lo -MD -MP -MF ".deps/mp3_file.Tpo" \
  -c -o mp3_file.lo `test -f 'mp3_file.cpp' || echo './'`mp3_file.cpp; \
then mv -f ".deps/mp3_file.Tpo" ".deps/mp3_file.Plo"; \
else rm -f ".deps/mp3_file.Tpo"; exit 1; \
fi
 g++34 -DHAVE_CONFIG_H -I. -I. -I../../../.. -I.. -I../.. -I../../../lib -I../../../lib/audio -I../../../../common/video/mpeg4 -I../../../../include -I../../../../lib -I../../../../lib/mp4v2 -I../../../../lib/sdp -I../../../../lib/utils -I/usr/local/include -I/usr/X11R6/include -D_THREAD_SAFE -D_REENTRANT -DNOCONTROLS -fexceptions -Wall -Werror -Wno-char-subscripts -Woverloaded-virtual -Wno-unknown-pragmas -Wno-deprecated -Wformat=2 -O -pipe -march=pentiumpro -DUSE_MMX -DMPEG4IP -MT mp3_file.lo -MD -MP -MF .deps/mp3_file.Tpo -c mp3_file.cpp  -fPIC -DPIC -o .libs/mp3_file.o
mp3_file.cpp: In function `bool read_mp3_file_for_tag(const char*, mp3_codec_t*, char**)':
mp3_file.cpp:129: warning: converting NULL to non-pointer type
gmake[5]: *** [mp3_file.lo] Error 1
gmake[5]: Leaving directory `/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.1/player/src/codec/mp3'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.1/player/src/codec'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.1/player/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.1/player'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/multimedia/mpeg4ip/work/mpeg4ip-1.1'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/multimedia/mpeg4ip.

How-To-Repeat: N/A
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-11-12 15:52:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lioux

Over to maintainer.
Comment 2 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2004-11-13 00:27:36 UTC
Hi,

	A lot of people is having trouble updating their mpeg4ip
after the recent upgrade to version 1.1

	I added a few lines to /usr/ports/UPDATING about it. Let
me know if you still have problems updating even after applying
these instructions.

  mpeg4ip has been updated and broken down into 2 separate ports:
  mpeg4ip and mpeg4ip-libmp4v2. Furthermore, mpeg4ip now depends
  on faad. Moreover, faad now depends on mpeg4ip-libmp4v2 rather
  than on mpeg4ip which avoids a cyclic dependency (mpeg4ip depends
  on faad which depends on mpeg4ip).

  If any of the old ports are installed, mpeg4ip will not compile.
  Therefore,

  1) Remove old faad and mpeg4ip ports which conflict with new
  mpeg4ip

  pkg_delete -f /var/db/pkg/mpeg4ip*
  pkg_delete -f /var/db/pkg/faad*

  2) Install faad, mpeg4ip and mpeg4ip-libmp4v2 in the following
  order

  cd /usr/ports/multimedia/mpeg4ip-libmp4v2 && make install clean
  cd /usr/ports/audio/faad && make install clean
  cd /usr/ports/multimedia/mpeg4ip && make install clean

	I hope this help out people upgrading. Furthermore, I got
around a 4.x-STABLE machine so I might have a solution for those
with problems trying to build the new port under it.

	Please, anyone running a FreeBSD 4.x system, try the attached
patch and let me know if it solves your problems. I'll commit it
as soon as I receive positive feedback on it.

	Regards,

-- 
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
feature, n: a documented bug | bug, n: an undocumented feature
Comment 3 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2004-11-14 01:17:55 UTC
State Changed
From-To: open->closed

A fix has just been committed, thanks!