Problem with installation
I have a problem installing jPilot on my Antix 23.2 distribution. I ran the command:
curl -s https://packagecloud.io/install/repositories/judd/jpilot/script.deb.sh | sudo bash
sudo apt install jpilot jpilot-plugins
But it fails:
Detected operating system as antiX/bookworm.
Checking for curls...
Detected curl...
Checking for gpg...
Detected gpg...
Detected apt version as 2.6.1
Running apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/judd_jpilot.list...curl: (22) The requested URL returned error: 404
Unable to download repo config from: https://packagecloud.io/install/repositories/judd/jpilot/config_file.list?os=antiX&dist=bookworm&source=script
This usually happens if your operating system is not supported by
packagecloud.io, or this script's OS detection failed.
You can override the OS detection by setting os= and dist= prior to running this script.
You can find a list of supported OSes and distributions on our website: https://packagecloud.io/docs#os_distro_version
For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh
If you are running a supported OS, please email [email protected] and report this.
So I try to compile the module:
git clone https://github.com/juddmon/jpilot.git
jpilot cd
Installing dependencies:
sudo apt install build-essential libgtk2.0-dev libglib2.0-dev libgdk-pixbuf2.0-dev \
libpango1.0-dev libatk1.0-dev libxtst-dev libusb-dev libssl-dev autoconf \
automake libtool
sudo apt install intltool
Compiling and installing J-Pilot
./autogen.sh
./configure
make
sudo make install
Here is the log:
However, the operation fails:
++ rm -f configure Makefile Makefile.in config.h.in
++ autopoint --force
Copying file po/Makefile.in.in
++ intltoolize --force --copy --automake
++ libtoolize --force --copy --automake
++ aclocal -I m4
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:191: warning: macro 'AM_PATH_GTK_3_0' not found in library
configure.in:387: warning: macro 'AM_PATH_LIBGCRYPT' not found in library
++ autoheader
autoheader: warning: autoconf input should be named 'configure.ac', not 'configure.in'
++ automake --add-missing --foreign
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:57: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.in:57: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.in:57: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
configure.in:20: installing './compile'
configure.in:19: installing './config.guess'
configure.in:19: installing './config.sub'
configure.in:8: installing './install-sh'
configure.in:8: installing './missing'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
Expense/Makefile.am: installing './depcomp'
Makefile.am:32: warning: source file 'icons/icons.c' is in a subdirectory,
Makefile.am:32: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least one source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However, this
automake: behavior may change in a future Automake major version, with object
automake: files being placed in the same subdirectory as the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
Makefile.am:32: warning: source file 'jpsqlite/jpsqlite.c' is in a subdirectory,
Makefile.am:32: but option 'subdir-objects' is disabled
++ autoconf
configure.in:12: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.in:12: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:1003: AM_CONFIG_HEADER is expanded from...
configure.in:12: the top level
configure.in:26: warning: The macro `AC_PROG_INTLTOOL' is obsolete.
configure.in:26: You should run autoupdate.
aclocal.m4:208: AC_PROG_INTLTOOL is expanded from...
configure.in:26: the top level
configure.in:37: warning: The macro `AC_LIBTOOL_DLOPEN' is obsolete.
configure.in:37: You should run autoupdate.
m4/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from...
configure.in:37: the top level
configure.in:37: warning: AC_LIBTOOL_DLOPEN: Remove this warning and the call to _LT_SET_OPTION when you
configure.in:37: put the 'dlopen' option into LT_INIT's first parameter.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
m4/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from...
configure.in:37: the top level
configure.in:38: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.in:38: You should run autoupdate.
m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
configure.in:38: the top level
configure.in:57: warning: AM_PROG_MKDIR_P: this macro is deprecated, and will soon be removed.
configure.in:57: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.in:57: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:970: AM_PROG_MKDIR_P is expanded from...
m4/po.m4:23: AM_PO_SUBDIRS is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.in:57: the top level
configure.in:57: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:57: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/gettext.m4:367: gt_INTL_MACOSX is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.in:57: the top level
configure.in:57: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:57: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.in:57: the top level
configure.in:57: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:57: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/iconv.m4:20: AM_ICONV_LINK is expanded from...
m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.in:57: the top level
configure.in:76: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:76: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:76: the top level
configure.in:107: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:107: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:107: the top level
configure.in:120: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:120: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:120: the top level
configure.in:133: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:133: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:133: the top level
configure.in:146: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:146: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:146: the top level
configure.in:163: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:163: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:163: the top level
configure.in:175: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:175: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:175: the top level
configure.in:200: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:200: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:200: the top level
configure.in:278: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:278: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:278: the top level
configure.in:296: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:296: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
configure.in:296: the top level
configure.in:309: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:309: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
configure.in:309: the top level
configure.in:339: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:339: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.in:339: the top level
configure.in:391: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:391: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:391: the top level
configure.in:428: warning: The macro `AC_HEADER_TIME' is obsolete.
configure.in:428: You should run autoupdate.
./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from...
configure.in:428: the top level
configure.in:438: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:438: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
configure.in:438: the top level
configure.in:454: warning: The macro `AC_TYPE_SIGNAL' is obsolete.
configure.in:454: You should run autoupdate.
./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from...
configure.in:454: the top level
configure.in:462: warning: The macro `AC_HELP_STRING' is obsolete.
configure.in:462: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.in:462: the top level
configure.in:192: error: possibly undefined macro: AM_PATH_GTK_3_0
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:388: error: possibly undefined macro: AM_PATH_LIBGCRYPT
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for strerror in -lcposix... no
checking whether NLS is requested... yes
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.36.0
checking for XML::Parser... ok
checking for sed... /usr/bin/sed
checking for grep... /usr/bin/grep
checking for cut... /usr/bin/cut
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) 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 for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
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
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for locale.h... yes
checking for dlopen... (cached) yes
stock buttons enabled by configure options
./configure: line 15575: syntax error near unexpected token `3.24.12,'
./configure: line 15575: `AM_PATH_GTK_3_0(3.24.12, ,'
make: *** No target specified and no makefile found. Stopping.
make: *** No rules to generate target «install». Stopping.
How do I solve the problem?
Sorry for late response here: You should use Gtk 3, not Gtk 2:
libgtk2.0-dev seems to be wrong.
Here I am, unfortunately I had a lot of work.
I tried as you suggested.
I uninstalled the package:
su -c 'apt remove libgtk2.0-dev'
Then Installed:
su -c 'apt install libgtk-3-dev'
After installing GTK 3, I went back to the J-Pilot source directory and tried to configure it again:
./configure --prefix=/usr/local
Here is the log:
$ ./configure --prefix=/usr/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for strerror in -lcposix... no
checking whether NLS is requested... yes
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.36.0
checking for XML::Parser... ok
checking for sed... /usr/bin/sed
checking for grep... /usr/bin/grep
checking for cut... /usr/bin/cut
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) 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 for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
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
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for locale.h... yes
checking for dlopen... (cached) yes
stock buttons enabled by configure options
./configure: line 15575: syntax error near unexpected token `3.24.12,'
./configure: line 15575: `AM_PATH_GTK_3_0(3.24.12, ,'
If I'm not mistaken this is the main mistake:
./configure: line 15575: syntax error near unexpected token `3.24.12,'
./configure: line 15575: `AM_PATH_GTK_3_0(3.24.12, ,'
What should I do?
Not being an expert, asking ChatGPT it told me that the error refers to:
AM_PATH_GTK_3_0 is a pkg-config macro to find GTK3, but it is not recognized.
This can happen if the necessary m4 files are not installed or if the configure script was not regenerated correctly.
I ran
su -c 'apt install pkg-config libgtk-3-dev'
But it did not install anything new, since everything was already installed at the latest version.
Honestly, I currently do not know what is missing in your case. But maybe the following summary of my build on Arch Linux can guide you further: Building J-Pilot and Pilot-Link on Linux. In particular, I do not start with configure but rather with autogen.sh.
Ok, thanks, I'll take a look. One question, but aren't all those commands that it reports as "obsolete" the problem? For example, the macro AM_PATH_GTK_3_0 is obsolete and should not be replaced with PKG_CHECK_MODULES? Example: Original:
AM_PATH_GTK_3_0(3.24.12, ,
AC_MSG_ERROR([*** GTK >= 3.24.12 not found ***]))
Modified:
PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= 3.24.12], [], [AC_MSG_ERROR([*** GTK >= 3.24.12 not found ***])])
As well as all the obsolete macros?
So, I solved it this way: I searched for the archived i386 packages on the debian site: pilot-link_0.12.5-dfsg-2+b3_i386.deb and the required dependencies and jpilot_1.8.2-2_i386.deb, jpilot-plugins_1.8.2-2_i386.deb The program starts. Photo showing the program launch: https://i.ibb.co/MyV8n0wK/5949504001567476405-121.jpg Pilot-link is installed correctly:
pilot-xfer --version
DEPRECATED: The application is calling print_splash()
.-------------------------------------------.
| (c) Copyright 1996-2006, pilot-link team |
| Join the pilot-link lists to help out. |
`------------------------------------------'
This is pilot-xfer, from pilot-link version 0.12.5
Build target..: i686-pc-linux-gnu
Build date....: Aug 9 2015 14:25:03
pilot-link 0.12.5 is covered under the GPL/LGPL
See the file COPYING under docs for more info.
Please use --help for more detailed options.
Although I have installed infrared, and you can see:
$ lsmod | grep irda
irda 139264 1 smsc_ircc2
$ sudo dmesg | grep tty
[sudo] password di Andrea:
[ 0.114854] printk: console [tty0] enabled
[ 5.075807] 00:06: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
I can't sync my PDA with jpilot. I don't know if I'm missing a step...
I don’t know how to do it either. The problem is that I don’t understand. This refers to the physical COM port, you need to connect the cable.
$ sudo dmesg | grep tty
[ 0.114865] printk: console [tty0] enabled
[ 5.070729] 00:06: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
However, if I’m not mistaken, this command says that the Irda device is registered as irda0?
$ sudo dmesg | grep irda
[ 12.261855] irda: loading out-of-tree module taints kernel.
[ 12.380022] IrDA: Registered device irda0
Only one port is used:
$ sudo setserial -g /dev/ttyS[0-3]
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
However, there are many listed here. But there doesn’t seem to be anything resembling irda.
$ ls /dev/tty*
/dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
/dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
/dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
/dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
/dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
/dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttyS0
/dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttyS2
/dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58 /dev/ttyS3
/dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59
/dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
/dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
/dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61
Yet the device communicates: Palm named Andrea with the laptop named Toshiba:
$ sudo irdadump
13:47:25.901635 xid:cmd 70b5c12e > ffffffff S=6 s=0 (14)
13:47:25.997444 xid:cmd 70b5c12e > ffffffff S=6 s=1 (14)
13:47:26.093441 xid:cmd 70b5c12e > ffffffff S=6 s=2 (14)
13:47:26.189443 xid:cmd 70b5c12e > ffffffff S=6 s=3 (14)
13:47:26.265117 xid:rsp 70b5c12e < 25328318 S=6 s=3 Andrea hint=8220 [ PDA/Palmtop IrOBEX ] (23)
13:47:26.285718 xid:cmd 70b5c12e > ffffffff S=6 s=4 (14)
13:47:26.381443 xid:cmd 70b5c12e > ffffffff S=6 s=5 (14)
13:47:26.477489 xid:cmd 70b5c12e > ffffffff S=6 s=* TOSHIBA hint=0400 [ Computer ] (23)
13:47:28.909440 xid:cmd 70b5c12e > ffffffff S=6 s=0 (14)
13:47:28.985247 xid:rsp 70b5c12e < 25328318 S=6 s=0 Andrea hint=8220 [ PDA/Palmtop IrOBEX ] (23)
13:47:29.005454 xid:cmd 70b5c12e > ffffffff S=6 s=1 (14)
13:47:29.101459 xid:cmd 70b5c12e > ffffffff S=6 s=2 (14)
13:47:29.197442 xid:cmd 70b5c12e > ffffffff S=6 s=3 (14)
13:47:29.293463 xid:cmd 70b5c12e > ffffffff S=6 s=4 (14)
13:47:29.389455 xid:cmd 70b5c12e > ffffffff S=6 s=5 (14)
13:47:29.485454 xid:cmd 70b5c12e > ffffffff S=6 s=* TOSHIBA hint=0400 [ Computer ] (23)
13:47:31.917440 xid:cmd 70b5c12e > ffffffff S=6 s=0 (14)
13:47:32.013450 xid:cmd 70b5c12e > ffffffff S=6 s=1 (14)
13:47:32.087943 xid:rsp 70b5c12e < 25328318 S=6 s=1 Andrea hint=8220 [ PDA/Palmtop IrOBEX ] (23)
13:47:32.109452 xid:cmd 70b5c12e > ffffffff S=6 s=2 (14)
13:47:32.205422 xid:cmd 70b5c12e > ffffffff S=6 s=3 (14)
13:47:32.301754 xid:cmd 70b5c12e > ffffffff S=6 s=4 (14)
13:47:32.397449 xid:cmd 70b5c12e > ffffffff S=6 s=5 (14)
13:47:32.493445 xid:cmd 70b5c12e > ffffffff S=6 s=* TOSHIBA hint=0400 [ Computer ] (23)
13:47:34.925439 xid:cmd 70b5c12e > ffffffff S=6 s=0 (14)
13:47:35.000037 xid:rsp 70b5c12e < 25328318 S=6 s=0 Andrea hint=8220 [ PDA/Palmtop IrOBEX ] (23)
13:47:35.021464 xid:cmd 70b5c12e > ffffffff S=6 s=1 (14)
13:47:35.117455 xid:cmd 70b5c12e > ffffffff S=6 s=2 (14)
13:47:35.213473 xid:cmd 70b5c12e > ffffffff S=6 s=3 (14)
13:47:35.309450 xid:cmd 70b5c12e > ffffffff S=6 s=4 (14)
13:47:35.405449 xid:cmd 70b5c12e > ffffffff S=6 s=5 (14)
13:47:35.501450 xid:cmd 70b5c12e > ffffffff S=6 s=* TOSHIBA hint=0400 [ Computer ] (23)
The question arises spontaneously, to which port did the system connect the infrared? The thing that leaves me most perplexed is that if I try to synchronize the palm with jpilot or pilot-link, the connection does not happen, and is permanently interrupted until the PC is restarted. It seems that the infrared blocks. In fact, if I try the connection again with the command $ sudo irdadump, it does not happen anymore, until the PC is restarted.