pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/33831: multimedia/mplayer Solaris10 gcc



>Number:         33831
>Category:       pkg
>Synopsis:       multimedia/mplayer Solaris10 gcc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 26 14:30:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


gcc -I../libvo -I../../libvo -I/usr/openwin/include -O4   -pipe -ffast-math 
-fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE64_SOURCE -I/usr/pkg/include -I/usr/pkg/include/faad2 
-DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/pkg/include/faad2 
-DGLX_GLXEXT_LEGACY -I/usr/pkg/include/freetype2 -I/usr/include -I.. 
-I/pkg/obj/multimedia/mplayer/work/MPlayer-1.0pre8 
-I/pkg/obj/multimedia/mplayer/work/MPlayer-1.0pre8/libavutil 
-I/pkg/obj/multimedia/mplayer/work/MPlayer-1.0pre8/libavcodec 
-DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE  -c 
-o utils.o utils.c
In file included from avformat.h:18,
                 from utils.c:19:
avio.h:6: error: conflicting types for 'offset_t'
/usr_ro/sfw/bin/../lib/gcc/i386-pc-solaris2.10/3.4.3/include/sys/types.h:233: 
error: previous declaration of 'offset_t' was here
gmake[1]: *** [utils.o] Error 1
gmake[1]: Leaving directory 
`/pkg/obj/multimedia/mplayer/work/MPlayer-1.0pre8/libavformat'
gmake: *** [libavformat/libavformat.a] Error 2
*** Error code 2

Stop.



>How-To-Repeat:


bmake


>Fix:


offset_t is still define for solaris (maybe other patch needed)

--- libavformat/avio.h.orig     Sun Jun 11 20:35:49 2006
+++ libavformat/avio.h  Mon Jun 26 16:11:41 2006
@@ -3,7 +3,9 @@
 
 /* output byte stream handling */
 
+#ifndef __sun
 typedef int64_t offset_t;
+#endif
 
 /* unbuffered I/O */
 






Home | Main Index | Thread Index | Old Index