Subject: pkg/32078: multimedia/libtheora gcc --version-script ??? Solaris10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 11/15/2005 14:34:00
>Number:         32078
>Category:       pkg
>Synopsis:       multimedia/libtheora gcc --version-script ??? Solaris10
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 15 14:34:00 +0000 2005
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_118844-20 i86pc


>Description:


gcc on many system does not support --version-script


>How-To-Repeat:


bmake


>Fix:


in configure and configure.ac

diff -bu configure.ac.orig configure.ac
--- configure.ac.orig   Sat Aug 20 20:43:13 2005
+++ configure.ac        Tue Nov 15 15:32:06 2005
@@ -106,7 +106,7 @@
 
 dnl Set extra linker options
 case "$target_os" in
-       linux* | solaris* )
+       linux* )
                SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
                ;;
        *)



[root@queen 460] diff -bu configure.ac.orig configure.ac
--- configure.ac.orig   Sat Aug 20 20:43:13 2005
+++ configure.ac        Tue Nov 15 15:32:06 2005
@@ -106,7 +106,7 @@
 
 dnl Set extra linker options
 case "$target_os" in
-       linux* | solaris* )
+       linux* )
                SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
                ;;
        *)
[root@queen 461] diff -bu configure.orig configure   
--- configure.orig      Sat Aug 20 20:44:13 2005
+++ configure   Tue Nov 15 15:26:07 2005
@@ -19322,7 +19322,7 @@
 LDFLAGS="$LDFLAGS $ldflags_save"
 
 case "$target_os" in
-       linux* | solaris* )
+       linux* )
                SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
                ;;
        *)
@@ -20102,6 +20102,8 @@
 HAVE_SDL=no
 
 
+# SDL is only used for the sample player; disable it
+if false; then
 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
 if test "${with_sdl_prefix+set}" = set; then
   withval="$with_sdl_prefix"
@@ -20394,6 +20396,7 @@
 
 
   rm -f conf.sdltest
+fi
 
 
 HAVE_OSS=no
@@ -20401,6 +20404,8 @@
 
 
 
+# OSS is only used by the sample player; disable it.
+if false; then
 for ac_header in sys/soundcard.h soundcard.h machine/soundcard.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -20556,9 +20561,9 @@
   { echo "$as_me:$LINENO: WARNING: OSS audio support not found -- not compiling player_example" >&5
 echo "$as_me: WARNING: OSS audio support not found -- not compiling player_example" >&2;}
 fi
+fi
 
 
-
 ac_enable_float=yes
 # Check whether --enable-float or --disable-float was given.
 if test "${enable_float+set}" = set; then