testing pkg-config... found 0.17.2
Checking for required M4 macros...
glib-gettext.m4 not found
Checking for forbidden M4 macros... Error: some autoconf macros required to build SRanger Tools
were not found in your aclocal path, or some forbidden
macros were found. Perhaps you need to adjust your
ACLOCAL_FLAGS?
I'm getting this message running ./autogen.sh
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am really not an expert with all that automake, configure, autogen-tools,... etc. stuff -- there are a hell too many version around:-(
However, my development system is Debian/testing (not testing of today, but some month old) and there it works. I am quite sure it also works on Fedora/RedHat, not sure about the most recent Fedora.
A few questions and notes:
What distribution(s) do you use? It really must have a well maintained set of gnome development packages. If you mess manually with installing any later/other autogen, etc. versions, you easily mess it all up -- do not touch any defaults since you are not an real expert -- I am not.
Did the Gxsm-2.0/autogen.sh runs OK?
-PZ
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-06-10
I know how to fix it but i´m without the pc that i have linux, now... i think you have to install a package that is missing. Test if the package is glib-2.X where X is >=0. (try with packages easy to install like deb or rpm)
I have a solution if you have new kernel, version 2.6.12 ( i think, and newer too because mine is 2.6.15), but i know that it works on based Debian system (like ubuntu). If it is other, i don´t know if it will work.
Download this package
ftp://ftp.gtk.org/pub/gtk/v2.9/glib-2.9.6.tar.bz2
extract it, run ./configure or something, run make. If make doesn´t work well (that´s what happened to me) go to the directory m4macros and run a make. Read any help in there to know what you´re doing. Then I think it´s done. Try the ./autogen again...
I hope it helps you...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks a lot for your replies. .. but I am still at same stage - ./autogen.sh doesn't work properly.
here what I tried:
debian 3.1r2
2 kernels: 2.4.27-10arge1 and 2.6.8-16sarge2
(I've got the impression it's not about kernel et all)
tried to downgrade gnome-common as I wanted to get older vertion of autoconf. and at some point ./autogen could get a bit further - creating a makefiles but stil with number of warnings most of them about macros:
like this:
Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /usr/local/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.
could not figure out what to do with config.guess and config.sub.
tried also Daniel's way - got glib2.6.9 but could not compile it
and running make at m4macros gives me:
/home/divers/glib-2.9.6/m4macros# make
make: Nothing to be done for `all'.
I am kind of ready to start from scratch e.g. to reinstall the whole thing. could you give an idea what version and kernel is free of such truble. and where I can download it.
thanks in advance,
nikolai
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My devel system is debian-testing, about 4 month old -- I am going to upgrade it and will test what I get then.
Kernel is:
percy@thundera:/tmp/SRanger$ uname -a
Linux thundera 2.6.15-1-686-smp #2 SMP Thu Feb 2 18:39:24 UTC 2006 i686 GNU/Linux
I still have:
automake1.4 1:1.4-p6-9 1:1.4-p6-9
i
This is how it looks like on my box, have a look at the notaes inbetween:
percy@thundera:/tmp/SRanger$ ./autogen.sh
/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
testing autoconf2.50... not found.
testing autoconf... found 2.59
checking for automake = 1.4...
testing automake-1.4... found 1.4
checking for libtool >= 1.5...
testing libtoolize... found 1.5.22
checking for glib-gettext >= 2.2.0...
testing glib-gettextize... found 2.10.2
checking for pkg-config >= 0.14.0...
testing pkg-config... found 0.20
Checking for required M4 macros...
Checking for forbidden M4 macros... Warning: I am going to run configure' with no arguments.
If you wish to pass any to it, please specify them on the./autogen.sh' command line.
Processing ./configure.in
Running libtoolize...
You should update your `aclocal.m4' by running aclocal.
Running glib-gettextize... Ignore non-fatal messages.
Copying file mkinstalldirs
Copying file po/Makefile.in.in
Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.
Running aclocal-1.4...
Running autoconf...
Running autoheader...
Running automake-1.4...
automake: configure.in: installing ./install-sh'
automake: configure.in: installing./missing'
Running ./configure --enable-maintainer-mode ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SRANGER_CORE... yes
./configure: line 18430: gdk-2.0: command not found
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for gawk... no
checking for mawk... mawk
checking for bison... bison -y
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether byte ordering is bigendian... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for working alloca.h... yes
checking for alloca... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t in sys/types.h... yes
checking for working POSIX fnmatch... yes
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for vprintf... yes
checking for _doprnt... no
checking for argz_count... yes
checking for argz_next... yes
checking for __argz_stringify... yes
checking for dcgettext... yes
checking for floor... no
checking for getcwd... yes
checking for gethostname... yes
checking for getwd... yes
checking for memchr... yes
checking for memmove... yes
checking for mempcpy... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for nl_langinfo... yes
checking for pow... no
checking for putenv... yes
checking for rint... no
checking for setenv... yes
checking for setlocale... yes
checking for sqrt... no
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtoul... yes
checking for locale.h... (cached) yes
checking for LC_MESSAGES... yes
checking for libintl.h... (cached) yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... (cached) yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... de
./configure: line 24423: ./po/POTFILES.in: No such file or directory
configure: creating ./config.status
config.status: creating Makefile
config.status: creating loadusb/Makefile
config.status: creating demos/Makefile
config.status: creating TiCC-project-files/Makefile
config.status: creating TiCC-project-files/DolbyThx/Makefile
config.status: creating TiCC-project-files/FB_spmcontrol/Makefile
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing default-2 commands
Now type `make' to compile SRanger Tools
Now, possibly do no do the "make" from there, but directly within the loadusb dir -- if you do not have a 2.4.x kernel in place, the make in "modules" will fail. Do this manually, I will remove the "modules" from subdirs. This may be confusing -- sorry.
percy@thundera:/tmp/SRanger$ cd loadusb/
percy@thundera:/tmp/SRanger/loadusb$ make
gcc -DHAVE_CONFIG_H -Wall pkg-config --cflags glib-2.0 -g -O2 -c loadusb.c
loadusb.c: In function 'write_iyl':
loadusb.c:178: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
loadusb.c:178: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
loadusb.c: In function 'mini_mem_debugger':
loadusb.c:533: warning: operation on 'i' may be undefined
loadusb.c: In function 'terminal':
loadusb.c:1256: warning: pointer targets in passing argument 1 of 'swapshort' differ in signedness
loadusb.c:1265: warning: pointer targets in passing argument 1 of 'swapshort' differ in signedness
gcc -DHAVE_CONFIG_H -Wall pkg-config --cflags glib-2.0 -g -O2 -c watch_sym.c
gcc -DHAVE_CONFIG_H -Wall pkg-config --cflags glib-2.0 -g -O2 -c sranger_talk.c
gcc -DHAVE_CONFIG_H -Wall pkg-config --cflags glib-2.0 -g -O2 -c cload.c
cload.c:75:1: warning: "MIN" redefined
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9,
from /usr/include/glib-2.0/glib/gtypes.h:30,
from /usr/include/glib-2.0/glib/galloca.h:30,
from /usr/include/glib-2.0/glib.h:30,
from watch_sym.h:31,
from header.h:42,
from cload.c:69:
/usr/include/glib-2.0/glib/gmacros.h:170:1: warning: this is the location of the previous definition
cload.c:76:1: warning: "MAX" redefined
/usr/include/glib-2.0/glib/gmacros.h:167:1: warning: this is the location of the previous definition
cload.c:79:1: warning: "TRUE" redefined
/usr/include/glib-2.0/glib/gmacros.h:163:1: warning: this is the location of the previous definition
cload.c:80:1: warning: "FALSE" redefined
/usr/include/glib-2.0/glib/gmacros.h:159:1: warning: this is the location of the previous definition
cload.c: In function 'cload_sect_data':
cload.c:488: warning: pointer targets in passing argument 1 of 'mem_write' differ in signedness
cload.c: In function 'cload_cinit':
cload.c:568: warning: pointer targets in passing argument 1 of 'mem_write' differ in signedness
/bin/sh ../libtool --mode=link gcc -g -O2 -o loadusb pkg-config --libs glib-2.0 loadusb.o watch_sym.o sranger_talk.o cload.o -lncurses
mkdir .libs
gcc -g -O2 -o loadusb loadusb.o watch_sym.o sranger_talk.o cload.o /usr/lib/libglib-2.0.so -lncurses
percy@thundera:/tmp/SRanger/loadusb$ ls
bcemu.h CVS loadusb.desktop params.h sranger_talk.o watch_sym.o
cload.c header.h loadusb.o README srboot-gxsm.sh
cload.h kernel.out Makefile sranger_memlayout.h version.h
cload.o loadusb Makefile.am sranger_talk.c watch_sym.c
coff.h loadusb.c Makefile.in sranger_talk.h watch_sym.h
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
/autogen.sh
I am testing that you have the required versions of autoconf, automake
and gettext. This test is not foolproof, so if anything goes wrong,
see the file HACKING for more information...
Testing autoconf...
expr: syntax error
too old! (Need 2.13, have 2.59
Written by David J. MacKenzie and Akim Demaille.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.)
Testing automake...
expr: syntax error
too old! (Need 1.4, have automake (GNU automake) 1.4-p6)
Testing gettextize...
looks OK.
something was wrong, trying to go on...
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
fine, symlink gxsm -> src exists!
fine, symlink for gdk-pixbuf->gdk-pixbuf-1.0 exists!
Testing ACLOCAL...
checking for config.guess and .sub, updating some files -- I hate this stuff:-(
configure.in:222: error: `po/Makefile.in' is already registered with AC_CONFIG_FILES.
autoconf/status.m4:848: AC_CONFIG_FILES is expanded from...
configure.in:222: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
Looking for translation text messages in .C,c,h files, writing po/POTFILES.in.
Running gettextize... Ignore non-fatal messages.
Wiping out intl/ subdirectory
Copying file ABOUT-NLS
Copying file config.rpath
Copying file mkinstalldirs
Not copying intl/ directory.
Copying file po/Makefile.in.in
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sin
Copying file po/Makevars.template
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
Copying file po/Rules-quot
Copying file m4/codeset.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intmax.m4
Copying file m4/inttypes.m4
Copying file m4/inttypes_h.m4
Copying file m4/inttypes-pri.m4
Copying file m4/isc-posix.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/longdouble.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/signed.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/uintmax_t.m4
Copying file m4/ulonglong.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Please update po/Makevars so that it defines all the variables mentioned
in po/Makevars.template.
You can then remove po/Makevars.template.
Please run 'aclocal -I m4' to regenerate the aclocal.m4 file.
You need aclocal from GNU automake 1.5 (or newer) to do this.
Then run 'autoconf' to regenerate the configure file.
You might also want to copy the convenience header file gettext.h
from the /usr/share/gettext directory into your package.
It is a wrapper around <libintl.h> that implements the configure --disable-nls
option.
Press Return to acknowledge the previous three paragraphs.
Processing ....
autoheader2.50: WARNING: Using auxiliary files such as acconfig.h',config.h.bot'
autoheader2.50: WARNING: and config.h.top', to define templates forconfig.h.in'
autoheader2.50: WARNING: is deprecated and discouraged.
autoheader2.50:
autoheader2.50: WARNING: Using the third argument of AC_DEFINE' and
autoheader2.50: WARNING:AC_DEFINE_UNQUOTED' allows to define a template without
autoheader2.50: WARNING: acconfig.h':
autoheader2.50:
autoheader2.50: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader2.50: [Define if a functionmain' is needed.])
autoheader2.50:
autoheader2.50: WARNING: More sophisticated templates can also be produced, see the
autoheader2.50: WARNING: documentation.
configure.in:222: error: po/Makefile.in' is already registered with AC_CONFIG_FILES.
autoconf/status.m4:848: AC_CONFIG_FILES is expanded from...
configure.in:222: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
autoheader2.50: /usr/bin/autom4te failed with exit status: 1
configure.in: 33: required file./config.h.in' not found
Makefile.am:1: AM_GNU_GETTEXT in configure.in' butintl' not in SUBDIRS
macros/Makefile.am:33: INSIDE_GNOME_COMMON does not appear in AM_CONDITIONAL
configure.in:222: error: po/Makefile.in' is already registered with AC_CONFIG_FILES.
autoconf/status.m4:848: AC_CONFIG_FILES is expanded from...
configure.in:222: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
./configure: line 1324: syntax error near unexpected token$PACKAGE,'
./configure: line 1324: `AM_INIT_AUTOMAKE($PACKAGE, $VERSION)'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry, no good clue what is going wrong there. Do you have a "default" installation or did you played around a lot with this tool versions? It is really impossible for me to follow up the trouble from that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
RedHat based Fedora seams to be fine as I know from people in Essen.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-06-14
To Nikolai
I remembered what I did to fix this problem. It´s very easy. Extract that glib-2.6.9 (that package I told you to download) and run ./configure. After that, go to /m4macros. Copy the .m4 files and send them to your aclocal directory. Mine was /etc/share/aclocal.
That´s it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear all,
thanks for your help. looks like I am advancing step by step. gxsm now is running under 3.1 debian (2.6.8).
about sranger. first stage ./autogen without any error. when trying to make
make -C /usr/src/linux SUBDIRS=$PWD modules
it shows few warnings and couple of errors. one has something to do with kref_put function.
Anybody seen that before? any ideas how to sort it out?
/SRanger/modules-2.6.x# make -C /usr/src/linux SUBDIRS=$PWD modules
make: Entering directory /usr/src/kernel-source-2.6.8'
CC [M] /SRanger/modules-2.6.x/usb-sranger.o
In file included from /SRanger/modules-2.6.x/usb-sranger.c:276:
/SRanger/modules-2.6.x/usb-dbg.c: In functionusb_show_endpoint':
/SRanger/modules-2.6.x/usb-dbg.c:26: warning: implicit declaration of function usb_show_endpoint_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c: In functionusb_show_interface':
/SRanger/modules-2.6.x/usb-dbg.c:33: warning: implicit declaration of function usb_show_interface_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:36: error: structure has no member namedendpoint'
/SRanger/modules-2.6.x/usb-dbg.c: In function usb_show_config':
/SRanger/modules-2.6.x/usb-dbg.c:44: warning: implicit declaration of functionusb_show_config_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:46: error: structure has no member named interface'
/SRanger/modules-2.6.x/usb-dbg.c:53: warning: passing arg 1 ofusb_show_interface' from incompatible pointer type
/SRanger/modules-2.6.x/usb-dbg.c: In function usb_show_device':
/SRanger/modules-2.6.x/usb-dbg.c:61: warning: implicit declaration of functionusb_show_device_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:63: warning: passing arg 1 of usb_show_config' from incompatible pointer type
/SRanger/modules-2.6.x/usb-dbg.c: At top level:
/SRanger/modules-2.6.x/usb-dbg.c:70: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:61: warning: previous implicit declaration ofusb_show_device_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:70: warning: usb_show_device_descriptor' was previously implicitly declared to returnint'
/SRanger/modules-2.6.x/usb-dbg.c:122: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:44: warning: previous implicit declaration of usb_show_config_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:122: warning:usb_show_config_descriptor' was previously implicitly declared to return int'
/SRanger/modules-2.6.x/usb-dbg.c: In functionusb_show_config_descriptor':
/SRanger/modules-2.6.x/usb-dbg.c:132: error: structure has no member named MaxPower'
/SRanger/modules-2.6.x/usb-dbg.c: At top level:
/SRanger/modules-2.6.x/usb-dbg.c:136: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:33: warning: previous implicit declaration ofusb_show_interface_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:136: warning: usb_show_interface_descriptor' was previously implicitly declared to returnint'
/SRanger/modules-2.6.x/usb-dbg.c:150: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:26: warning: previous implicit declaration of usb_show_endpoint_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:150: warning:usb_show_endpoint_descriptor' was previously implicitly declared to return int'
/SRanger/modules-2.6.x/usb-dbg.c: In functionusb_dump_urb':
/SRanger/modules-2.6.x/usb-dbg.c:192: error: structure has no member named next'
/SRanger/modules-2.6.x/usb-sranger.c: In functionsranger_release':
/SRanger/modules-2.6.x/usb-sranger.c:414: error: too many arguments to function kref_put'
/SRanger/modules-2.6.x/usb-sranger.c: In functionsranger_probe':
/SRanger/modules-2.6.x/usb-sranger.c:1127: error: too few arguments to function kref_init'
/SRanger/modules-2.6.x/usb-sranger.c:1239: warning: implicit declaration of functionusb_get_configuration'
/SRanger/modules-2.6.x/usb-sranger.c:1240: warning: implicit declaration of function usb_set_configuration'
/SRanger/modules-2.6.x/usb-sranger.c:1248: error: too many arguments to functionkref_put'
/SRanger/modules-2.6.x/usb-sranger.c: In function sranger_disconnect':
/SRanger/modules-2.6.x/usb-sranger.c:1278: error: too many arguments to functionkref_put'
make[1]: [/SRanger/modules-2.6.x/usb-sranger.o] Error 1
make: [module/SRanger/modules-2.6.x] Error 2
make: Leaving directory /usr/src/kernel-source-2.6.8'
pppznb:/SRanger/modules-2.6.x# make -C /usr/src/linux SUBDIRS=$PWD modules_install
make: Entering directory/usr/src/kernel-source-2.6.8'
make: Leaving directory /usr/src/kernel-source-2.6.8'
pppznb:/SRanger/modules-2.6.x# mc
pppznb:/SRanger/modules-2.6.x# make -C /usr/src/linux SUBDIRS=$PWD modules make: Entering directory/usr/src/kernel-source-2.6.8'
CC [M] /SRanger/modules-2.6.x/usb-sranger.o
In file included from /SRanger/modules-2.6.x/usb-sranger.c:276:
/SRanger/modules-2.6.x/usb-dbg.c: In function usb_show_endpoint':
/SRanger/modules-2.6.x/usb-dbg.c:26: warning: implicit declaration of functionusb_show_endpoint_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c: In function usb_show_interface':
/SRanger/modules-2.6.x/usb-dbg.c:33: warning: implicit declaration of functionusb_show_interface_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:36: error: structure has no member named endpoint'
/SRanger/modules-2.6.x/usb-dbg.c: In functionusb_show_config':
/SRanger/modules-2.6.x/usb-dbg.c:44: warning: implicit declaration of function usb_show_config_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:46: error: structure has no member namedinterface'
/SRanger/modules-2.6.x/usb-dbg.c:53: warning: passing arg 1 of usb_show_interface' from incompatible pointer type
/SRanger/modules-2.6.x/usb-dbg.c: In functionusb_show_device':
/SRanger/modules-2.6.x/usb-dbg.c:61: warning: implicit declaration of function usb_show_device_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:63: warning: passing arg 1 ofusb_show_config' from incompatible pointer type
/SRanger/modules-2.6.x/usb-dbg.c: At top level:
/SRanger/modules-2.6.x/usb-dbg.c:70: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:61: warning: previous implicit declaration of usb_show_device_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:70: warning:usb_show_device_descriptor' was previously implicitly declared to return int'
/SRanger/modules-2.6.x/usb-dbg.c:122: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:44: warning: previous implicit declaration ofusb_show_config_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:122: warning: usb_show_config_descriptor' was previously implicitly declared to returnint'
/SRanger/modules-2.6.x/usb-dbg.c: In function usb_show_config_descriptor':
/SRanger/modules-2.6.x/usb-dbg.c:132: error: structure has no member namedMaxPower'
/SRanger/modules-2.6.x/usb-dbg.c: At top level:
/SRanger/modules-2.6.x/usb-dbg.c:136: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:33: warning: previous implicit declaration of usb_show_interface_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:136: warning:usb_show_interface_descriptor' was previously implicitly declared to return int'
/SRanger/modules-2.6.x/usb-dbg.c:150: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:26: warning: previous implicit declaration ofusb_show_endpoint_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:150: warning: usb_show_endpoint_descriptor' was previously implicitly declared to returnint'
/SRanger/modules-2.6.x/usb-dbg.c: In function usb_dump_urb':
/SRanger/modules-2.6.x/usb-dbg.c:192: error: structure has no member namednext'
/SRanger/modules-2.6.x/usb-sranger.c: In function sranger_release':
/SRanger/modules-2.6.x/usb-sranger.c:414: error: too many arguments to functionkref_put'
/SRanger/modules-2.6.x/usb-sranger.c: In function sranger_probe':
/SRanger/modules-2.6.x/usb-sranger.c:1127: error: too few arguments to functionkref_init'
/SRanger/modules-2.6.x/usb-sranger.c:1239: warning: implicit declaration of function usb_get_configuration'
/SRanger/modules-2.6.x/usb-sranger.c:1240: warning: implicit declaration of functionusb_set_configuration'
/SRanger/modules-2.6.x/usb-sranger.c:1248: error: too many arguments to function kref_put'
/SRanger/modules-2.6.x/usb-sranger.c: In functionsranger_disconnect':
/SRanger/modules-2.6.x/usb-sranger.c:1278: error: too many arguments to function kref_put'
make[1]: *** [/SRanger/modules-2.6.x/usb-sranger.o] Error 1
make: *** [_module_/SRanger/modules-2.6.x] Error 2
make: Leaving directory/usr/src/kernel-source-2.6.8'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2006-06-20
I think what you´re doing will not work... You need a newer kernel. Compiling a new one it´s very hard. I talk by my self... I´ve been working with SRanger and GXSM for 3 months. I installed Ubuntu (the last version) and everything worked well. Not too well really... But prefer a system with kernel>=2.6.12. You will lose time.
That´s what I think. It´s only an advice.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I really do not know what all your trouble is, I am running a 2.6.15-686 and 686-SMP kernels -- no problem, warning or error, still Debian-testing, now up-to-today. All fine.
However kernel >= 2.6.12 is a hard dependency for the current module from CVS.
Otherwise you have to downgrade the module-2.6.x or undo the changes manually, see online CVS-browser for the few changes I applied.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
changed kernel to 2.6.15.1.
make modules still complaining about error in usb-dbg.c:
/SRanger/modules-2.6.x# make -C /usr/src/linux SUBDIRS=$PWD modules
make: directory /usr/src/linux-2.6.15.1'
CC [M] /SRanger/modules-2.6.x/usb-sranger.o
In file included from /SRanger/modules-2.6.x/usb-sranger.c:276:
/SRanger/modules-2.6.x/usb-dbg.c: In functionusb_show_endpoint':
/SRanger/modules-2.6.x/usb-dbg.c:26: warning: implicit declaration of function usb_show_endpoint_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c: In functionusb_show_interface':
/SRanger/modules-2.6.x/usb-dbg.c:33: warning: implicit declaration of function usb_show_interface_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:36: error: structure has no member namedendpoint'
/SRanger/modules-2.6.x/usb-dbg.c: In function usb_show_config':
/SRanger/modules-2.6.x/usb-dbg.c:44: warning: implicit declaration of functionusb_show_config_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:46: error: structure has no member named interface'
/SRanger/modules-2.6.x/usb-dbg.c:53: warning: passing arg 1 ofusb_show_interface' from incompatible pointer type
/SRanger/modules-2.6.x/usb-dbg.c: In function usb_show_device':
/SRanger/modules-2.6.x/usb-dbg.c:61: warning: implicit declaration of functionusb_show_device_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:63: warning: passing arg 1 of usb_show_config' from incompatible pointer type
/SRanger/modules-2.6.x/usb-dbg.c: At top level:
/SRanger/modules-2.6.x/usb-dbg.c:70: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:61: warning: previous implicit declaration ofusb_show_device_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:70: warning: usb_show_device_descriptor' was previously implicitly declared to returnint'
/SRanger/modules-2.6.x/usb-dbg.c:122: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:44: warning: previous implicit declaration of usb_show_config_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:122: warning:usb_show_config_descriptor' was previously implicitly declared to return int'
/SRanger/modules-2.6.x/usb-dbg.c: In functionusb_show_config_descriptor':
/SRanger/modules-2.6.x/usb-dbg.c:132: error: structure has no member named MaxPower'
/SRanger/modules-2.6.x/usb-dbg.c: At top level:
/SRanger/modules-2.6.x/usb-dbg.c:136: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:33: warning: previous implicit declaration ofusb_show_interface_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:136: warning: usb_show_interface_descriptor' was previously implicitly declared to returnint'
/SRanger/modules-2.6.x/usb-dbg.c:150: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:26: warning: previous implicit declaration of usb_show_endpoint_descriptor'
/SRanger/modules-2.6.x/usb-dbg.c:150: warning:usb_show_endpoint_descriptor' was previously implicitly declared to return int'
/SRanger/modules-2.6.x/usb-dbg.c: In functionusb_dump_urb':
/SRanger/modules-2.6.x/usb-dbg.c:192: error: structure has no member named next'
/SRanger/modules-2.6.x/usb-sranger.c: In functionsranger_probe':
/SRanger/modules-2.6.x/usb-sranger.c:1239: warning: implicit declaration of function usb_get_configuration'
/SRanger/modules-2.6.x/usb-sranger.c:1240: warning: implicit declaration of functionusb_set_configuration'
make[1]: [/SRanger/modules-2.6.x/usb-sranger.o] Error 1
make: [module/SRanger/modules-2.6.x] Error 2
make: Leaving directory `/usr/src/linux-2.6.15.1'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Get you box up and running with Debian Testing, grab the most recent kernel packages and matching kernel headers (note I added the udev to make sure it is up-to-date for 2.6.15 kernels):
/SRanger/modules-2.6.x# dmesg
usb_sranger: version magic '2.6.15-1-686 686 gcc-3.3' should be '2.6.15-1-686 686 gcc-4.0'
usb_sranger: version magic '2.6.15-1-686 686 gcc-3.3' should be '2.6.15-1-686 686 gcc-4.0'
does it mean I have to recompile it using gcc-4.0?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Percy, thanks a lot!!!
it is true, gcc3.3 was the problem.
Now sranger kernel is loaded. gxsm found board. (got the warning from gxsm as the version of dsp and gxsm is different, as I picked up the gxsm from sf-files and sranger from cvs). Checked the outputs from the board - looks fine!!
Great! now I can spend some time sorting the electronics.
One question: is the digital output ports are used in gxsm at all? I need to initialize the attenuators on HV amp to define the amplification for x,y,z. What would be the easiest way to program it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
just found there is minor problem as fx-load reports an error.
/SRanger/modules-2.6.x# fxload-sr-i386 -I SRangerFx -D /proc/bus/usb/002/003
can't modify CPUCS: Invalid or incomplete multibyte or wide character
about digital ports: I need to set the X,Y gain depending on the STM/AFM image size and althouth to be able to change Z range/resolution depending on surface rougthness.
another question is about autoapproach. cannot really figure out how it works in gxsm.
one more: how to monitor the actual z voltage (to make sure it's not going out of the range). I've seen on one of your images something like "SPM DU meter" - is it the one?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do not worry about the fxload message "...CPUCS: Invalid..." this seams to be "normal" as the SRanger will immediately renumerate and disconnect from this USB id as the firmware starts... and reappears as SRanger with different id. This possibly happens before the loadusb can close the device.
About your gains, what about doing it "manually" for the beginning. Some switches or so...
There are several ways GXSM/SR can help you with autoapproach. It depends on your coarse motion hardware. What do you have?
Supported are Besocke/Ramp Type, Slider (digital TTL Puls, may needs little customizing... or Slider driven via Sawtooth like (or any arb. wave form). Set in Preferences User/SliderControlType to "Mover". (then restart GXSM)
Open all Windows...
you will find
- The SR-DSP Mover Control, including Autoapproach.
- The Pan View, will show currrent tip position and Z (marker on right)
- SR-DSP Control
And Please, read the Manual, all Plug-In sections on that! I am not going to explain it all here again.
In addition you can use the SR-watch tools, found in teh SRanger/TiDSP.../FB_SPMcontrol.../ -- run a make here... also chack out all the .py tools!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
for some reason loadusb FB_spmcontrol.out
started to give me an error:
Product: 0x0a59
Product: 0x0101
--> B.Paillard, Signal Ranger -- not yet supported!
Resetting Signal Ranger loading SRkernel
Error talking to SRkernel [-1] - LED red
Error talking to SRkernel [-1] - LED red
Error talking to SRkernel [-1] - LED red
Error talking to SRkernel [-1] - LED red
it definitely works when I use loadusb -m as I can swithch LED in any state.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
does anybody know what it means
testing pkg-config... found 0.17.2
Checking for required M4 macros...
glib-gettext.m4 not found
Checking for forbidden M4 macros...
Error: some autoconf macros required to build SRanger Tools
were not found in your aclocal path, or some forbidden
macros were found. Perhaps you need to adjust your
ACLOCAL_FLAGS?
I'm getting this message running ./autogen.sh
Hi,
I am really not an expert with all that automake, configure, autogen-tools,... etc. stuff -- there are a hell too many version around:-(
However, my development system is Debian/testing (not testing of today, but some month old) and there it works. I am quite sure it also works on Fedora/RedHat, not sure about the most recent Fedora.
A few questions and notes:
What distribution(s) do you use? It really must have a well maintained set of gnome development packages. If you mess manually with installing any later/other autogen, etc. versions, you easily mess it all up -- do not touch any defaults since you are not an real expert -- I am not.
Did the Gxsm-2.0/autogen.sh runs OK?
-PZ
I know how to fix it but i´m without the pc that i have linux, now... i think you have to install a package that is missing. Test if the package is glib-2.X where X is >=0. (try with packages easy to install like deb or rpm)
I have a solution if you have new kernel, version 2.6.12 ( i think, and newer too because mine is 2.6.15), but i know that it works on based Debian system (like ubuntu). If it is other, i don´t know if it will work.
Download this package
ftp://ftp.gtk.org/pub/gtk/v2.9/glib-2.9.6.tar.bz2
extract it, run ./configure or something, run make. If make doesn´t work well (that´s what happened to me) go to the directory m4macros and run a make. Read any help in there to know what you´re doing. Then I think it´s done. Try the ./autogen again...
I hope it helps you...
Hi, Percy and Daniel,
thanks a lot for your replies. .. but I am still at same stage - ./autogen.sh doesn't work properly.
here what I tried:
(I've got the impression it's not about kernel et all)
like this:
Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /usr/local/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.
could not figure out what to do with config.guess and config.sub.
and running make at m4macros gives me:
/home/divers/glib-2.9.6/m4macros# make
make: Nothing to be done for `all'.
I am kind of ready to start from scratch e.g. to reinstall the whole thing. could you give an idea what version and kernel is free of such truble. and where I can download it.
thanks in advance,
nikolai
Hi, sorry to hear that.
My devel system is debian-testing, about 4 month old -- I am going to upgrade it and will test what I get then.
Kernel is:
percy@thundera:/tmp/SRanger$ uname -a
Linux thundera 2.6.15-1-686-smp #2 SMP Thu Feb 2 18:39:24 UTC 2006 i686 GNU/Linux
I still have:
automake1.4 1:1.4-p6-9 1:1.4-p6-9
i
This is how it looks like on my box, have a look at the notaes inbetween:
percy@thundera:/tmp/SRanger$ ./autogen.sh
/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
testing autoconf2.50... not found.
testing autoconf... found 2.59
checking for automake = 1.4...
testing automake-1.4... found 1.4
checking for libtool >= 1.5...
testing libtoolize... found 1.5.22
checking for glib-gettext >= 2.2.0...
testing glib-gettextize... found 2.10.2
checking for pkg-config >= 0.14.0...
testing pkg-config... found 0.20
Checking for required M4 macros...
Checking for forbidden M4 macros...
Warning: I am going to run
configure' with no arguments. If you wish to pass any to it, please specify them on the
./autogen.sh' command line.Processing ./configure.in
Running libtoolize...
You should update your `aclocal.m4' by running aclocal.
Running glib-gettextize... Ignore non-fatal messages.
Copying file mkinstalldirs
Copying file po/Makefile.in.in
Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.
Running aclocal-1.4...
Running autoconf...
Running autoheader...
Running automake-1.4...
automake: configure.in: installing
./install-sh' automake: configure.in: installing
./missing'Running ./configure --enable-maintainer-mode ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SRANGER_CORE... yes
./configure: line 18430: gdk-2.0: command not found
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for gawk... no
checking for mawk... mawk
checking for bison... bison -y
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether byte ordering is bigendian... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for working alloca.h... yes
checking for alloca... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t in sys/types.h... yes
checking for working POSIX fnmatch... yes
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for vprintf... yes
checking for _doprnt... no
checking for argz_count... yes
checking for argz_next... yes
checking for __argz_stringify... yes
checking for dcgettext... yes
checking for floor... no
checking for getcwd... yes
checking for gethostname... yes
checking for getwd... yes
checking for memchr... yes
checking for memmove... yes
checking for mempcpy... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for nl_langinfo... yes
checking for pow... no
checking for putenv... yes
checking for rint... no
checking for setenv... yes
checking for setlocale... yes
checking for sqrt... no
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtoul... yes
checking for locale.h... (cached) yes
checking for LC_MESSAGES... yes
checking for libintl.h... (cached) yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... (cached) yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... de
./configure: line 24423: ./po/POTFILES.in: No such file or directory
configure: creating ./config.status
config.status: creating Makefile
config.status: creating loadusb/Makefile
config.status: creating demos/Makefile
config.status: creating TiCC-project-files/Makefile
config.status: creating TiCC-project-files/DolbyThx/Makefile
config.status: creating TiCC-project-files/FB_spmcontrol/Makefile
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing default-2 commands
Now type `make' to compile SRanger Tools
Now, possibly do no do the "make" from there, but directly within the loadusb dir -- if you do not have a 2.4.x kernel in place, the make in "modules" will fail. Do this manually, I will remove the "modules" from subdirs. This may be confusing -- sorry.
percy@thundera:/tmp/SRanger$ cd loadusb/
percy@thundera:/tmp/SRanger/loadusb$ make
gcc -DHAVE_CONFIG_H -Wall
pkg-config --cflags glib-2.0
-g -O2 -c loadusb.cloadusb.c: In function 'write_iyl':
loadusb.c:178: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
loadusb.c:178: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
loadusb.c: In function 'mini_mem_debugger':
loadusb.c:533: warning: operation on 'i' may be undefined
loadusb.c: In function 'terminal':
loadusb.c:1256: warning: pointer targets in passing argument 1 of 'swapshort' differ in signedness
loadusb.c:1265: warning: pointer targets in passing argument 1 of 'swapshort' differ in signedness
gcc -DHAVE_CONFIG_H -Wall
pkg-config --cflags glib-2.0
-g -O2 -c watch_sym.cgcc -DHAVE_CONFIG_H -Wall
pkg-config --cflags glib-2.0
-g -O2 -c sranger_talk.cgcc -DHAVE_CONFIG_H -Wall
pkg-config --cflags glib-2.0
-g -O2 -c cload.ccload.c:75:1: warning: "MIN" redefined
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9,
from /usr/include/glib-2.0/glib/gtypes.h:30,
from /usr/include/glib-2.0/glib/galloca.h:30,
from /usr/include/glib-2.0/glib.h:30,
from watch_sym.h:31,
from header.h:42,
from cload.c:69:
/usr/include/glib-2.0/glib/gmacros.h:170:1: warning: this is the location of the previous definition
cload.c:76:1: warning: "MAX" redefined
/usr/include/glib-2.0/glib/gmacros.h:167:1: warning: this is the location of the previous definition
cload.c:79:1: warning: "TRUE" redefined
/usr/include/glib-2.0/glib/gmacros.h:163:1: warning: this is the location of the previous definition
cload.c:80:1: warning: "FALSE" redefined
/usr/include/glib-2.0/glib/gmacros.h:159:1: warning: this is the location of the previous definition
cload.c: In function 'cload_sect_data':
cload.c:488: warning: pointer targets in passing argument 1 of 'mem_write' differ in signedness
cload.c: In function 'cload_cinit':
cload.c:568: warning: pointer targets in passing argument 1 of 'mem_write' differ in signedness
/bin/sh ../libtool --mode=link gcc -g -O2 -o loadusb
pkg-config --libs glib-2.0
loadusb.o watch_sym.o sranger_talk.o cload.o -lncursesmkdir .libs
gcc -g -O2 -o loadusb loadusb.o watch_sym.o sranger_talk.o cload.o /usr/lib/libglib-2.0.so -lncurses
percy@thundera:/tmp/SRanger/loadusb$ ls
bcemu.h CVS loadusb.desktop params.h sranger_talk.o watch_sym.o
cload.c header.h loadusb.o README srboot-gxsm.sh
cload.h kernel.out Makefile sranger_memlayout.h version.h
cload.o loadusb Makefile.am sranger_talk.c watch_sym.c
coff.h loadusb.c Makefile.in sranger_talk.h watch_sym.h
that is what i get running make in /loadusb
/SRanger/loadusb# make
make: Nothing to be done for `all'.
Well, then you should have the "loadusb" utility already build in there! And you can run it.
but I don't have usb-sranger.o
and that's what I gt running ./autogen.sh in Gxsm
/autogen.sh
I am testing that you have the required versions of autoconf, automake
and gettext. This test is not foolproof, so if anything goes wrong,
see the file HACKING for more information...
Testing autoconf...
expr: syntax error
too old! (Need 2.13, have 2.59
Written by David J. MacKenzie and Akim Demaille.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.)
Testing automake...
expr: syntax error
too old! (Need 1.4, have automake (GNU automake) 1.4-p6)
Testing gettextize...
looks OK.
something was wrong, trying to go on...
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
fine, symlink gxsm -> src exists!
fine, symlink for gdk-pixbuf->gdk-pixbuf-1.0 exists!
Testing ACLOCAL...
checking for config.guess and .sub, updating some files -- I hate this stuff:-(
configure.in:222: error: `po/Makefile.in' is already registered with AC_CONFIG_FILES.
autoconf/status.m4:848: AC_CONFIG_FILES is expanded from...
configure.in:222: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
Looking for translation text messages in .C,c,h files, writing po/POTFILES.in.
Running gettextize... Ignore non-fatal messages.
Wiping out intl/ subdirectory
Copying file ABOUT-NLS
Copying file config.rpath
Copying file mkinstalldirs
Not copying intl/ directory.
Copying file po/Makefile.in.in
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sin
Copying file po/Makevars.template
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
Copying file po/Rules-quot
Copying file m4/codeset.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intmax.m4
Copying file m4/inttypes.m4
Copying file m4/inttypes_h.m4
Copying file m4/inttypes-pri.m4
Copying file m4/isc-posix.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/longdouble.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/signed.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/uintmax_t.m4
Copying file m4/ulonglong.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Please update po/Makevars so that it defines all the variables mentioned
in po/Makevars.template.
You can then remove po/Makevars.template.
Please run 'aclocal -I m4' to regenerate the aclocal.m4 file.
You need aclocal from GNU automake 1.5 (or newer) to do this.
Then run 'autoconf' to regenerate the configure file.
You might also want to copy the convenience header file gettext.h
from the /usr/share/gettext directory into your package.
It is a wrapper around <libintl.h> that implements the configure --disable-nls
option.
Press Return to acknowledge the previous three paragraphs.
Processing ....
autoheader2.50: WARNING: Using auxiliary files such as
acconfig.h',
config.h.bot'autoheader2.50: WARNING: and
config.h.top', to define templates for
config.h.in'autoheader2.50: WARNING: is deprecated and discouraged.
autoheader2.50:
autoheader2.50: WARNING: Using the third argument of
AC_DEFINE' and autoheader2.50: WARNING:
AC_DEFINE_UNQUOTED' allows to define a template withoutautoheader2.50: WARNING:
acconfig.h': autoheader2.50: autoheader2.50: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader2.50: [Define if a function
main' is needed.])autoheader2.50:
autoheader2.50: WARNING: More sophisticated templates can also be produced, see the
autoheader2.50: WARNING: documentation.
configure.in:222: error:
po/Makefile.in' is already registered with AC_CONFIG_FILES. autoconf/status.m4:848: AC_CONFIG_FILES is expanded from... configure.in:222: the top level autom4te: /usr/bin/m4 failed with exit status: 1 autoheader2.50: /usr/bin/autom4te failed with exit status: 1 configure.in: 33: required file
./config.h.in' not foundMakefile.am:1: AM_GNU_GETTEXT in
configure.in' but
intl' not in SUBDIRSmacros/Makefile.am:33: INSIDE_GNOME_COMMON does not appear in AM_CONDITIONAL
configure.in:222: error:
po/Makefile.in' is already registered with AC_CONFIG_FILES. autoconf/status.m4:848: AC_CONFIG_FILES is expanded from... configure.in:222: the top level autom4te: /usr/bin/m4 failed with exit status: 1 ./configure: line 1324: syntax error near unexpected token
$PACKAGE,'./configure: line 1324: `AM_INIT_AUTOMAKE($PACKAGE, $VERSION)'
sorry, no good clue what is going wrong there. Do you have a "default" installation or did you played around a lot with this tool versions? It is really impossible for me to follow up the trouble from that.
shure, i did play a bit. that is why i am thinking to re-install the whole thing. what version I better go for, 2.2 or 3.0
or may be Suse as we have here a full package?
I have no experiences with SuSE since 1998...
RedHat based Fedora seams to be fine as I know from people in Essen.
To Nikolai
I remembered what I did to fix this problem. It´s very easy. Extract that glib-2.6.9 (that package I told you to download) and run ./configure. After that, go to /m4macros. Copy the .m4 files and send them to your aclocal directory. Mine was /etc/share/aclocal.
That´s it.
Dear all,
thanks for your help. looks like I am advancing step by step. gxsm now is running under 3.1 debian (2.6.8).
about sranger. first stage ./autogen without any error. when trying to make
make -C /usr/src/linux SUBDIRS=$PWD modules
it shows few warnings and couple of errors. one has something to do with kref_put function.
Anybody seen that before? any ideas how to sort it out?
/SRanger/modules-2.6.x# make -C /usr/src/linux SUBDIRS=$PWD modules
make: Entering directory
/usr/src/kernel-source-2.6.8' CC [M] /SRanger/modules-2.6.x/usb-sranger.o In file included from /SRanger/modules-2.6.x/usb-sranger.c:276: /SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_endpoint':/SRanger/modules-2.6.x/usb-dbg.c:26: warning: implicit declaration of function
usb_show_endpoint_descriptor' /SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_interface':/SRanger/modules-2.6.x/usb-dbg.c:33: warning: implicit declaration of function
usb_show_interface_descriptor' /SRanger/modules-2.6.x/usb-dbg.c:36: error: structure has no member named
endpoint'/SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_config': /SRanger/modules-2.6.x/usb-dbg.c:44: warning: implicit declaration of function
usb_show_config_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:46: error: structure has no member named
interface' /SRanger/modules-2.6.x/usb-dbg.c:53: warning: passing arg 1 of
usb_show_interface' from incompatible pointer type/SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_device': /SRanger/modules-2.6.x/usb-dbg.c:61: warning: implicit declaration of function
usb_show_device_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:63: warning: passing arg 1 of
usb_show_config' from incompatible pointer type /SRanger/modules-2.6.x/usb-dbg.c: At top level: /SRanger/modules-2.6.x/usb-dbg.c:70: warning: type mismatch with previous implicit declaration /SRanger/modules-2.6.x/usb-dbg.c:61: warning: previous implicit declaration of
usb_show_device_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:70: warning:
usb_show_device_descriptor' was previously implicitly declared to return
int'/SRanger/modules-2.6.x/usb-dbg.c:122: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:44: warning: previous implicit declaration of
usb_show_config_descriptor' /SRanger/modules-2.6.x/usb-dbg.c:122: warning:
usb_show_config_descriptor' was previously implicitly declared to returnint' /SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_config_descriptor':/SRanger/modules-2.6.x/usb-dbg.c:132: error: structure has no member named
MaxPower' /SRanger/modules-2.6.x/usb-dbg.c: At top level: /SRanger/modules-2.6.x/usb-dbg.c:136: warning: type mismatch with previous implicit declaration /SRanger/modules-2.6.x/usb-dbg.c:33: warning: previous implicit declaration of
usb_show_interface_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:136: warning:
usb_show_interface_descriptor' was previously implicitly declared to return
int'/SRanger/modules-2.6.x/usb-dbg.c:150: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:26: warning: previous implicit declaration of
usb_show_endpoint_descriptor' /SRanger/modules-2.6.x/usb-dbg.c:150: warning:
usb_show_endpoint_descriptor' was previously implicitly declared to returnint' /SRanger/modules-2.6.x/usb-dbg.c: In function
usb_dump_urb':/SRanger/modules-2.6.x/usb-dbg.c:192: error: structure has no member named
next' /SRanger/modules-2.6.x/usb-sranger.c: In function
sranger_release':/SRanger/modules-2.6.x/usb-sranger.c:414: error: too many arguments to function
kref_put' /SRanger/modules-2.6.x/usb-sranger.c: In function
sranger_probe':/SRanger/modules-2.6.x/usb-sranger.c:1127: error: too few arguments to function
kref_init' /SRanger/modules-2.6.x/usb-sranger.c:1239: warning: implicit declaration of function
usb_get_configuration'/SRanger/modules-2.6.x/usb-sranger.c:1240: warning: implicit declaration of function
usb_set_configuration' /SRanger/modules-2.6.x/usb-sranger.c:1248: error: too many arguments to function
kref_put'/SRanger/modules-2.6.x/usb-sranger.c: In function
sranger_disconnect': /SRanger/modules-2.6.x/usb-sranger.c:1278: error: too many arguments to function
kref_put'make[1]: [/SRanger/modules-2.6.x/usb-sranger.o] Error 1
make: [module/SRanger/modules-2.6.x] Error 2
make: Leaving directory
/usr/src/kernel-source-2.6.8' pppznb:/SRanger/modules-2.6.x# make -C /usr/src/linux SUBDIRS=$PWD modules_install make: Entering directory
/usr/src/kernel-source-2.6.8'make: Leaving directory
/usr/src/kernel-source-2.6.8' pppznb:/SRanger/modules-2.6.x# mc pppznb:/SRanger/modules-2.6.x# make -C /usr/src/linux SUBDIRS=$PWD modules make: Entering directory
/usr/src/kernel-source-2.6.8'CC [M] /SRanger/modules-2.6.x/usb-sranger.o
In file included from /SRanger/modules-2.6.x/usb-sranger.c:276:
/SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_endpoint': /SRanger/modules-2.6.x/usb-dbg.c:26: warning: implicit declaration of function
usb_show_endpoint_descriptor'/SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_interface': /SRanger/modules-2.6.x/usb-dbg.c:33: warning: implicit declaration of function
usb_show_interface_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:36: error: structure has no member named
endpoint' /SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_config':/SRanger/modules-2.6.x/usb-dbg.c:44: warning: implicit declaration of function
usb_show_config_descriptor' /SRanger/modules-2.6.x/usb-dbg.c:46: error: structure has no member named
interface'/SRanger/modules-2.6.x/usb-dbg.c:53: warning: passing arg 1 of
usb_show_interface' from incompatible pointer type /SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_device':/SRanger/modules-2.6.x/usb-dbg.c:61: warning: implicit declaration of function
usb_show_device_descriptor' /SRanger/modules-2.6.x/usb-dbg.c:63: warning: passing arg 1 of
usb_show_config' from incompatible pointer type/SRanger/modules-2.6.x/usb-dbg.c: At top level:
/SRanger/modules-2.6.x/usb-dbg.c:70: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:61: warning: previous implicit declaration of
usb_show_device_descriptor' /SRanger/modules-2.6.x/usb-dbg.c:70: warning:
usb_show_device_descriptor' was previously implicitly declared to returnint' /SRanger/modules-2.6.x/usb-dbg.c:122: warning: type mismatch with previous implicit declaration /SRanger/modules-2.6.x/usb-dbg.c:44: warning: previous implicit declaration of
usb_show_config_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:122: warning:
usb_show_config_descriptor' was previously implicitly declared to return
int'/SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_config_descriptor': /SRanger/modules-2.6.x/usb-dbg.c:132: error: structure has no member named
MaxPower'/SRanger/modules-2.6.x/usb-dbg.c: At top level:
/SRanger/modules-2.6.x/usb-dbg.c:136: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:33: warning: previous implicit declaration of
usb_show_interface_descriptor' /SRanger/modules-2.6.x/usb-dbg.c:136: warning:
usb_show_interface_descriptor' was previously implicitly declared to returnint' /SRanger/modules-2.6.x/usb-dbg.c:150: warning: type mismatch with previous implicit declaration /SRanger/modules-2.6.x/usb-dbg.c:26: warning: previous implicit declaration of
usb_show_endpoint_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:150: warning:
usb_show_endpoint_descriptor' was previously implicitly declared to return
int'/SRanger/modules-2.6.x/usb-dbg.c: In function
usb_dump_urb': /SRanger/modules-2.6.x/usb-dbg.c:192: error: structure has no member named
next'/SRanger/modules-2.6.x/usb-sranger.c: In function
sranger_release': /SRanger/modules-2.6.x/usb-sranger.c:414: error: too many arguments to function
kref_put'/SRanger/modules-2.6.x/usb-sranger.c: In function
sranger_probe': /SRanger/modules-2.6.x/usb-sranger.c:1127: error: too few arguments to function
kref_init'/SRanger/modules-2.6.x/usb-sranger.c:1239: warning: implicit declaration of function
usb_get_configuration' /SRanger/modules-2.6.x/usb-sranger.c:1240: warning: implicit declaration of function
usb_set_configuration'/SRanger/modules-2.6.x/usb-sranger.c:1248: error: too many arguments to function
kref_put' /SRanger/modules-2.6.x/usb-sranger.c: In function
sranger_disconnect':/SRanger/modules-2.6.x/usb-sranger.c:1278: error: too many arguments to function
kref_put' make[1]: *** [/SRanger/modules-2.6.x/usb-sranger.o] Error 1 make: *** [_module_/SRanger/modules-2.6.x] Error 2 make: Leaving directory
/usr/src/kernel-source-2.6.8'I think what you´re doing will not work... You need a newer kernel. Compiling a new one it´s very hard. I talk by my self... I´ve been working with SRanger and GXSM for 3 months. I installed Ubuntu (the last version) and everything worked well. Not too well really... But prefer a system with kernel>=2.6.12. You will lose time.
That´s what I think. It´s only an advice.
I really do not know what all your trouble is, I am running a 2.6.15-686 and 686-SMP kernels -- no problem, warning or error, still Debian-testing, now up-to-today. All fine.
However kernel >= 2.6.12 is a hard dependency for the current module from CVS.
Otherwise you have to downgrade the module-2.6.x or undo the changes manually, see online CVS-browser for the few changes I applied.
hi everybody,
changed kernel to 2.6.15.1.
make modules still complaining about error in usb-dbg.c:
/SRanger/modules-2.6.x# make -C /usr/src/linux SUBDIRS=$PWD modules
make: directory
/usr/src/linux-2.6.15.1' CC [M] /SRanger/modules-2.6.x/usb-sranger.o In file included from /SRanger/modules-2.6.x/usb-sranger.c:276: /SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_endpoint':/SRanger/modules-2.6.x/usb-dbg.c:26: warning: implicit declaration of function
usb_show_endpoint_descriptor' /SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_interface':/SRanger/modules-2.6.x/usb-dbg.c:33: warning: implicit declaration of function
usb_show_interface_descriptor' /SRanger/modules-2.6.x/usb-dbg.c:36: error: structure has no member named
endpoint'/SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_config': /SRanger/modules-2.6.x/usb-dbg.c:44: warning: implicit declaration of function
usb_show_config_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:46: error: structure has no member named
interface' /SRanger/modules-2.6.x/usb-dbg.c:53: warning: passing arg 1 of
usb_show_interface' from incompatible pointer type/SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_device': /SRanger/modules-2.6.x/usb-dbg.c:61: warning: implicit declaration of function
usb_show_device_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:63: warning: passing arg 1 of
usb_show_config' from incompatible pointer type /SRanger/modules-2.6.x/usb-dbg.c: At top level: /SRanger/modules-2.6.x/usb-dbg.c:70: warning: type mismatch with previous implicit declaration /SRanger/modules-2.6.x/usb-dbg.c:61: warning: previous implicit declaration of
usb_show_device_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:70: warning:
usb_show_device_descriptor' was previously implicitly declared to return
int'/SRanger/modules-2.6.x/usb-dbg.c:122: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:44: warning: previous implicit declaration of
usb_show_config_descriptor' /SRanger/modules-2.6.x/usb-dbg.c:122: warning:
usb_show_config_descriptor' was previously implicitly declared to returnint' /SRanger/modules-2.6.x/usb-dbg.c: In function
usb_show_config_descriptor':/SRanger/modules-2.6.x/usb-dbg.c:132: error: structure has no member named
MaxPower' /SRanger/modules-2.6.x/usb-dbg.c: At top level: /SRanger/modules-2.6.x/usb-dbg.c:136: warning: type mismatch with previous implicit declaration /SRanger/modules-2.6.x/usb-dbg.c:33: warning: previous implicit declaration of
usb_show_interface_descriptor'/SRanger/modules-2.6.x/usb-dbg.c:136: warning:
usb_show_interface_descriptor' was previously implicitly declared to return
int'/SRanger/modules-2.6.x/usb-dbg.c:150: warning: type mismatch with previous implicit declaration
/SRanger/modules-2.6.x/usb-dbg.c:26: warning: previous implicit declaration of
usb_show_endpoint_descriptor' /SRanger/modules-2.6.x/usb-dbg.c:150: warning:
usb_show_endpoint_descriptor' was previously implicitly declared to returnint' /SRanger/modules-2.6.x/usb-dbg.c: In function
usb_dump_urb':/SRanger/modules-2.6.x/usb-dbg.c:192: error: structure has no member named
next' /SRanger/modules-2.6.x/usb-sranger.c: In function
sranger_probe':/SRanger/modules-2.6.x/usb-sranger.c:1239: warning: implicit declaration of function
usb_get_configuration' /SRanger/modules-2.6.x/usb-sranger.c:1240: warning: implicit declaration of function
usb_set_configuration'make[1]: [/SRanger/modules-2.6.x/usb-sranger.o] Error 1
make: [module/SRanger/modules-2.6.x] Error 2
make: Leaving directory `/usr/src/linux-2.6.15.1'
Hi,
again, I just double checked:
Get you box up and running with Debian Testing, grab the most recent kernel packages and matching kernel headers (note I added the udev to make sure it is up-to-date for 2.6.15 kernels):
iapetus:/home/pzahl# apt-get install udev initramfs-tools linux-image-2.6.15-1.686
iapetus:/home/pzahl# apt-get install linux-headers-2.6.15-1-686
This in place you even do not any longer need to compile any kernel yourself, just run:
pzahl@iapetus:~/SRanger/modules-2.6.x$ make -C /usr/src/linux-headers-2.6.15-1-686 SUBDIRS=$PWD modules
make: Entering directory
/usr/src/linux-headers-2.6.15-1-686' CC [M] /home/pzahl/SRanger/modules-2.6.x/usb-sranger.o Building modules, stage 2. MODPOST CC /home/pzahl/SRanger/modules-2.6.x/usb-sranger.mod.o LD [M] /home/pzahl/SRanger/modules-2.6.x/usb-sranger.ko make: Leaving directory
/usr/src/linux-headers-2.6.15-1-686'and install
pzahl@iapetus:~/SRanger/modules-2.6.x$ sudo make -C /usr/src/linux-headers-2.6.15-1-686 SUBDIRS=$PWD modules_install
Password:
make: Entering directory
/usr/src/linux-headers-2.6.15-1-686' INSTALL /home/pzahl/SRanger/modules-2.6.x/usb-sranger.ko make: Leaving directory
/usr/src/linux-headers-2.6.15-1-686'insert it:
pzahl@iapetus:~/SRanger/modules-2.6.x$ sudo insmod usb-sranger.ko
run "dmesg" and see at the end:
usbcore: registered new driver sranger
/home/pzahl/SRanger/modules-2.6.x/usb-sranger.c: USB SignalRanger STD/SP2 Driver v0.41 20051004
Not warning or error at all :-)
Sorry folks, but this cannot be smoother...
have fun
-Percy
well, was really smooth until the very end:
/SRanger/modules-2.6.x# insmod usb-sranger.ko
insmod: error inserting 'usb-sranger.ko': -1 Invalid module format
/SRanger/modules-2.6.x# dmesg
usb_sranger: version magic '2.6.15-1-686 686 gcc-3.3' should be '2.6.15-1-686 686 gcc-4.0'
usb_sranger: version magic '2.6.15-1-686 686 gcc-3.3' should be '2.6.15-1-686 686 gcc-4.0'
does it mean I have to recompile it using gcc-4.0?
Percy, thanks a lot!!!
it is true, gcc3.3 was the problem.
Now sranger kernel is loaded. gxsm found board. (got the warning from gxsm as the version of dsp and gxsm is different, as I picked up the gxsm from sf-files and sranger from cvs). Checked the outputs from the board - looks fine!!
Great! now I can spend some time sorting the electronics.
One question: is the digital output ports are used in gxsm at all? I need to initialize the attenuators on HV amp to define the amplification for x,y,z. What would be the easiest way to program it?
just found there is minor problem as fx-load reports an error.
/SRanger/modules-2.6.x# fxload-sr-i386 -I SRangerFx -D /proc/bus/usb/002/003
can't modify CPUCS: Invalid or incomplete multibyte or wide character
about digital ports: I need to set the X,Y gain depending on the STM/AFM image size and althouth to be able to change Z range/resolution depending on surface rougthness.
another question is about autoapproach. cannot really figure out how it works in gxsm.
one more: how to monitor the actual z voltage (to make sure it's not going out of the range). I've seen on one of your images something like "SPM DU meter" - is it the one?
Do not worry about the fxload message "...CPUCS: Invalid..." this seams to be "normal" as the SRanger will immediately renumerate and disconnect from this USB id as the firmware starts... and reappears as SRanger with different id. This possibly happens before the loadusb can close the device.
About your gains, what about doing it "manually" for the beginning. Some switches or so...
There are several ways GXSM/SR can help you with autoapproach. It depends on your coarse motion hardware. What do you have?
Supported are Besocke/Ramp Type, Slider (digital TTL Puls, may needs little customizing... or Slider driven via Sawtooth like (or any arb. wave form). Set in Preferences User/SliderControlType to "Mover". (then restart GXSM)
Open all Windows...
you will find
- The SR-DSP Mover Control, including Autoapproach.
- The Pan View, will show currrent tip position and Z (marker on right)
- SR-DSP Control
And Please, read the Manual, all Plug-In sections on that! I am not going to explain it all here again.
In addition you can use the SR-watch tools, found in teh SRanger/TiDSP.../FB_SPMcontrol.../ -- run a make here... also chack out all the .py tools!
for some reason loadusb FB_spmcontrol.out
started to give me an error:
Product: 0x0a59
Product: 0x0101
--> B.Paillard, Signal Ranger -- not yet supported!
Resetting Signal Ranger loading SRkernel
Error talking to SRkernel [-1] - LED red
Error talking to SRkernel [-1] - LED red
Error talking to SRkernel [-1] - LED red
Error talking to SRkernel [-1] - LED red
it definitely works when I use loadusb -m as I can swithch LED in any state.
All tools need the SPM DSP program loaded before use! I.e. you can run all those tools in parallel to GXSM.