Re: X11 BadValue errors on Solaris 10..

[email protected] Sun, 25 Sep 2005 14:04:49 +0200 (CEST)
Newsgroups gmane.comp.video.ogle.devel
Message-ID <Pine.LNX.4.63.0509251349440.8685@thorbardin.lasthome.solace.krynn>
On Sun, 25 Sep 2005, Bj|rn Englund wrote:

> Sat Sep 24 2005, [email protected] wrote:
>
>> "video_output_x11.c", line 1931: warning: implicit function declaration:
>> XvUngrabPort
>> "video_output_x11.c", line 1931: undefined symbol: xv_port
>
> Ok, it was a missing #ifdef.
> There is a new tar.gz to test now.

Thanks Bjorn, the new tarball compiled fine here with Sun Studio 10 and 
Solaris 10/Sparc. However it still dies with:

raistlin@ergoth:[/export/home/raistlin ]ogle -u cli
Xscreensaver not running.
!!Using mediaLib for colorspace convertion
!!X Error of failed request:  BadValue (integer parameter out of range for 
operation)
   Major opcode of failed request:  131 (MIT-SHM)
   Minor opcode of failed request:  3 (X_ShmPutImage)
   Value in failed request:  0xffffff68
   Serial number of failed request:  46
   Current serial number in output stream:  46

Most importantly ogle -DOES- work if I run it on Solaris and display it on 
Linux (RHEL3, i686 here), it even works through an ssh X11 tunnel (albeit 
very slowly). It looks like a problem with the new X11 in Solaris 10 (It 
was updated to X11R6.6.2).

How would I 'debug' the X11 calls made in ogle? I know ogle --debug-nav 
works but is there something for the main ogle Video stuff?

* OTHER STUFF:)
As for ogle_gui-0.9.2-cvs it fails early in './configure':

I'm running configure with:
#!/bin/csh
# Solaris 8 : SUN Forte 6.2 and 7.0
#
# Generic definitions
setenv SHELL /bin/bash
setenv PKG_CONFIG /usr/bin/pkg-config
setenv MAKE gmake
setenv PERL /usr/bin/perl
#
# Sun ONE Studio 10.0
setenv CFLAGS "-fast -xtarget=ultra3cu -xarch=v8plusb -xipo"
setenv CXXFLAGS "-fast -xtarget=ultra3cu -xarch=v8plusb -xipo"
setenv CC /opt/SUN-Studio-10.0/SUNWspro/bin/cc
setenv CXX /opt/SUN-Studio-10.0/SUNWspro/bin/CC
#
#
./configure --prefix=/usr/local --disable-nls \
         --with-gtk-prefix=/usr/sfw \
         --with-gtk-exec-prefix=/usr/sfw \
         --with-libiconv-prefix=/usr/local \
         --with-libintl-prefix=/usr \
         --with-dvdcontrol=/usr/local \
         --with-xml-prefix=/usr

The last few bits of config.log show:
configure:28376: ./conftest
configure:28379: $? = 0
configure:28398: result: yes (version 2.6.10)
configure:28525: checking for DVDRequestInput in -ldvdcontrol
configure:28555: /opt/SUN-Studio-10.0/SUNWspro/bin/cc -o conftest -fast 
-xtarget=ultra3cu -xarch=v8plusb -xipo -I/usr/local/include  conftest.c -ldvdcontrol -L/usr/local/lib/ogle -lmsgevents  >&5
/opt/SUN-Studio-10.0/SUNWspro/prod/bin/ipo: Error inside  /usr/ccs/bin/ld
ld: fatal: library -ldvdcontrol: not found
ld: fatal: File processing errors. No output written to conftest
configure:28561: $? = 1
configure: failed program was:
| /* confdefs.h.  */

Shouldn't it be '-L/usr/local/lib/ogle -ldvdcontrol' instead of '-ldvdcontrol -L/usr/local/lib/ogle' ?

BTW, it finished 'configuring' if I do this change:

root@ergoth:[/usr/local/src/ogle_gui-0.9.2-cvs][556]# diff -c 
/tmp/ogle_gui-0.9.2-cvs/configure configure
*** /tmp/ogle_gui-0.9.2-cvs/configure   Fri Jul 29 15:32:44 2005
--- configure   Sun Sep 25 13:58:40 2005
***************
*** 28528,28534 ****
     echo $ECHO_N "(cached) $ECHO_C" >&6
   else
     ac_check_lib_save_LIBS=$LIBS
! LIBS="-ldvdcontrol -L$dvd_path/lib/ogle -lmsgevents $LIBS"
   cat >conftest.$ac_ext <<_ACEOF
   /* confdefs.h.  */
   _ACEOF
--- 28528,28534 ----
     echo $ECHO_N "(cached) $ECHO_C" >&6
   else
     ac_check_lib_save_LIBS=$LIBS
! LIBS="-L$dvd_path/lib/ogle -ldvdcontrol -lmsgevents $LIBS"
   cat >conftest.$ac_ext <<_ACEOF
   /* confdefs.h.  */
   _ACEOF

Best regards and thanks for the continued Support for Solaris.

Vincent