Subject: Touch panel bug and X libs
To: None <port-hpcarm@netbsd.org>
From: Steve Clement <steve@ion.lu>
List: port-hpcarm
Date: 12/09/2002 22:42:27
Hi, I must be on drugs or something but I dont seem to have the 
touchpanel bug-fix:

steve@konsument:/jornada/usr/src/sys/arch/hpcarm/dev$ cvs status j720ssp.c
===================================================================
File: j720ssp.c         Status: Up-to-date

    Working revision:    1.16
    Repository revision: 1.16 
/cvsroot/syssrc/sys/arch/hpcarm/dev/j720ssp.c,v
    Sticky Tag:          (none)
    Sticky Date:         (none)
    Sticky Options:      (none)

steve@konsument:/jornada/usr/src/sys/arch/hpcarm/dev$ cvs up
cvs server: Updating .
steve@konsument:/jornada/usr/src/sys/arch/hpcarm/dev$ cvs up -r HEAD
cvs server: Updating .
steve@konsument:/jornada/usr/src/sys/arch/hpcarm/dev$ grep tpspin *
steve@konsument:/jornada/usr/src/sys/arch/hpcarm/dev$ grep tpdel *
steve@konsument:/jornada/usr/src/sys/arch/hpcarm/dev$ grep tptime *
steve@konsument:/jornada/usr/src/sys/arch/hpcarm/dev$ grep tppoll *
steve@konsument:/jornada/usr/src/sys/arch/hpcarm/dev$ grep tpdisa *


I don't seem to have it. Emmanuel could you post the Final patch to the 
list please? So I can patch manually.

I tested with the: cat < /dev/wsmous0 > /dev/null &dd if=/dev/null 
of=/dev/zero ....
Test and it stopped everytime I touched the screen:
steve@jornabsd:/usr/pkgsrc/wm/ratpoison$ uname -a
NetBSD jornabsd.ion.lu 1.6F NetBSD 1.6F (JORNADA) #2: Sat Aug 24 
18:51:44 UTC 2002 
steve@jornada:/usr/syssrc/sys/arch/hpcarm/compile/JORNADA hpcarm

P.S: The grep's are for any traces of the patches I got sent through the 
list.


Also I seem to have a very weird X11/ld lib problem.
Trying to build ratpoison wm for X11 I get this: ./configure output with 
sh -x

+ :
+ test yes = no
+ ac_save_LDFLAGS=  -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib 
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib
+ test -n /usr/X11R6/lib
+ LDFLAGS=  -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib 
-L/usr/pkg/lib -L/usr/X11R6/lib
+ echo -n checking for IceConnectionNumber in -lICE...
checking for IceConnectionNumber in -lICE... + echo configure:2005: 
checking for IceConnectionNumber in -lICE
+ echo ICE_IceConnectionNumber+ sed
  y%./+-%__p_%
+ ac_lib_var=ICE_IceConnectionNumber
+ echo ${ac_cv_lib_ICE_IceConnectionNumber+set}
+ eval test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set
+ test  = set
+ ac_save_LIBS=
+ LIBS=-lICE
+ cat
+ eval echo configure:2024: "${CC-cc} -o conftest${ac_exeext} $CFLAGS 
$CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5"
+ echo configure:2024: cc -o conftest -O2 -I/usr/pkg/include 
-I/usr/X11R6/include -Wall -O2   -I/usr/pkg/include -I/usr/X11R6/include 
   -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib 
-L/usr/pkg/lib -L/usr/X11R6/lib conftest.c -lICE   1>&5
+ echo configure: failed program was:
+ cat conftest.c
+ rm -rf conftest.c
+ eval ac_cv_lib_ICE_IceConnectionNumber=no
+ ac_cv_lib_ICE_IceConnectionNumber=no
+ rm -f conftest*
+ LIBS=
+ echo $ac_cv_lib_ICE_IceConnectionNumber
+ eval test "$ac_cv_lib_ICE_IceConnectionNumber" = yes
+ test no = yes
+ echo no
no
+ LDFLAGS=  -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib 
-L/usr/pkg/lib
+ test x = xyes
+ LDFLAGS=  -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib 
-L/usr/pkg/lib   -L/usr/X11R6/lib
+ CFLAGS=-O2 -I/usr/pkg/include -I/usr/X11R6/include -Wall -O2 
-I/usr/X11R6/include
+ echo -n checking for XOpenDisplay in -lX11...
checking for XOpenDisplay in -lX11... + echo configure:2057: checking 
for XOpenDisplay in -lX11
+ echo+ sed X11_XOpenDisplay y%./+-%__p_%

+ ac_lib_var=X11_XOpenDisplay
+ echo ${ac_cv_lib_X11_XOpenDisplay+set}
+ eval test "${ac_cv_lib_X11_XOpenDisplay+set}" = set
+ test  = set
+ ac_save_LIBS=
+ LIBS=-lX11
+ cat
+ eval echo configure:2076: "${CC-cc} -o conftest${ac_exeext} $CFLAGS 
$CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5"
+ echo configure:2076: cc -o conftest -O2 -I/usr/pkg/include 
-I/usr/X11R6/include -Wall -O2  -I/usr/X11R6/include 
-I/usr/pkg/include -I/usr/X11R6/include   -Wl,-R/usr/X11R6/lib 
-L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib   -L/usr/X11R6/lib 
conftest.c -lX11   1>&5
+ echo configure: failed program was:
+ cat conftest.c
+ rm -rf conftest.c
+ eval ac_cv_lib_X11_XOpenDisplay=no
+ ac_cv_lib_X11_XOpenDisplay=no
+ rm -f conftest*
+ LIBS=
+ echo $ac_cv_lib_X11_XOpenDisplay
+ eval test "$ac_cv_lib_X11_XOpenDisplay" = yes
+ test no = yes
+ echo no
no
+ echo configure: error: *** Can't find libX11
configure: error: *** Can't find libX11
+ exit 1
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wm/ratpoison
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wm/ratpoison
steve@jornabsd:/usr/pkgsrc/wm/ratpoison$



Now this might be, aswell /me being dumb, but I havent just yet 
understood how ld checks for libs apart from: -lX11 ^= libX11.a and 
searches in common places like: /usr/X11R6/lib

Files are there, perms seem allright:
steve@jornabsd:/usr/pkgsrc/wm/ratpoison$ ls -la /usr/X11R6/lib/libX11.*
-r--r--r--  1 root  wheel  1216540 Aug 19 02:19 /usr/X11R6/lib/libX11.a
lrwxr-xr-x  1 root  wheel       13 Aug 19 02:18 /usr/X11R6/lib/libX11.so 
-> libX11.so.6.1
lrwxr-xr-x  1 root  wheel       13 Aug 19 02:18 
/usr/X11R6/lib/libX11.so.6 -> libX11.so.6.1
-r-xr-xr-x  1 root  wheel   817028 Aug 19 02:18 /usr/X11R6/lib/libX11.so.6.1

Even went as far and created /etc/ld.so.conf in the hope that would fix it.

Also comparing: ldconfig -r 's output from NetBSD with the one from 
FreeBSD it seems rather different. I get no output of any libs 
whatsoever on NetBSD, is that normal? Where is a good place to start 
learning NetBSD specific ld behaviour?

Thanks for having had the patience of reading all this stuff...

cheers,
Steve

-- 
ION Network Solutions
Steve Clement
Unix System Administrator
Tel: +352 021 496 092
Fax: +352 595 271
mailto:steve@ion.lu
http://www.ion.lu