km4ack / 73Linux

72 stars 17 forks source link

Hamlib install fails on Raspi4 - Bullseye #68

Closed dkiesow closed 3 weeks ago

dkiesow commented 1 month ago

First off - this is an amazing tool. I had originally built a Packet Pi using your YouTube videos several years ago. Decided to update - running a Pi 4B and did a fresh install of Bullseye 64bit from an image. APCPU=aarch64 BAPCORE=4 BAPARCH=64 BAPDIST=debian #############################

APPS TO BE INSTALLED

############################# AX25 DIREWOLF FLDIGI FLRIG HAMLIB PAT PATMENU

Everything seemed to proceed, but after reboot - no >rigctl I tried again just with Hamlib and it failed again but without an explicit warning (it proceeded to the exit/reboot window.) I installed Swig and tried again and it worked - so assuming that was the glitch?

Damon N1OJG

km4ack commented 1 month ago

Can you post the entire log file when you only attempted the rig control install? I'll see if I can spot anything.

dkiesow commented 1 month ago

Looks again at the full log - it recognized the need for swig but then failed out on it.

The following additional packages will be installed: swig4.0 Suggested packages: swig-doc swig-examples swig4.0-examples swig4.0-doc The following NEW packages will be installed: swig swig4.0


CRITICAL: parsing error on .bapp /home/kiesowd/73Linux/app/stable/pi/WSJTX.bapp
BAPCPU=aarch64
BAPCORE=4
BAPARCH=64
BAPDIST=debian
BAPDIR=/home/kiesowd/73Linux
BAPCALL=N1OJG
MYCALL=N1OJG
CALL=N1OJG
BAPSRC=/home/kiesowd/.bap-source-files
BAPSYSINFO=/home/kiesowd/73Linux/cache/cpu.bap
BAPPVER=4.0.2
APPSFILES=/home/kiesowd/73Linux/app/stable/pi/*.bapp /home/kiesowd/73Linux/app/community/pi/*.bapp
TEMPCRON=/run/user/1000/tempcron.txt
#############################
#APPS TO BE INSTALLED
#############################
HAMLIB
#############################
##########################
Installing HAMLIB
##########################
package is hamlib-4.4
Dir to remove is /home/kiesowd/.bap-source-files/hamlib-4.4/
Reading package lists...
Building dependency tree...
Reading state information...
libusb-1.0-0 is already the newest version (2:1.0.24-3).
libusb-1.0-0 set to manually installed.
libusb-1.0-0-dev is already the newest version (2:1.0.24-3).
The following packages were automatically installed and are no longer required:
  libfuse2 libwpe-1.0-1 libwpebackend-fdo-1.0-1
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  swig4.0
Suggested packages:
  swig-doc swig-examples swig4.0-examples swig4.0-doc
The following NEW packages will be installed:
  swig swig4.0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,625 kB of archives.
After this operation, 5,876 kB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
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 ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for gawk... (cached) mawk
checking whether ln -s works... yes
checking for g++... yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking for inline... inline
checking AM_CFLAGS for maximum warnings... -Wall
checking AM_CXXFLAGS for maximum warnings... -Wall
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.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 netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking dev/ppbus/ppbconf.hdev/ppbus/ppi.h usability... no
checking dev/ppbus/ppbconf.hdev/ppbus/ppi.h presence... no
checking for dev/ppbus/ppbconf.hdev/ppbus/ppi.h... no
checking linux/hidraw.h usability... yes
checking linux/hidraw.h presence... yes
checking for linux/hidraw.h... yes
checking linux/ioctl.h usability... yes
checking linux/ioctl.h presence... yes
checking for linux/ioctl.h... yes
checking linux/parport.h usability... yes
checking linux/parport.h presence... yes
checking for linux/parport.h... yes
checking linux/ppdev.h usability... yes
checking linux/ppdev.h presence... yes
checking for linux/ppdev.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/ioccom.h usability... no
checking sys/ioccom.h presence... no
checking for sys/ioccom.h... no
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/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking wspiapi.h usability... no
checking wspiapi.h presence... no
checking for wspiapi.h... no
checking for library containing nanosleep... none required
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for sys/types.h... (cached) yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for winioctl.h... no
checking for winbase.h... no
checking for getopt... yes
checking for getopt_long... yes
checking for usleep... yes
checking for sleep... yes
checking for nanosleep... yes
checking for gettimeofday... yes
checking for struct timezone... yes
checking for ssize_t... yes
checking for getopt... (cached) yes
checking for getopt_long... (cached) yes
checking for usleep... (cached) yes
checking for gettimeofday... (cached) yes
checking for Sleep... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking POSIX termios... yes
checking for size_t... yes
checking for siginfo_t... yes
checking for sig_atomic_t... yes
checking for sin... no
checking for connect... yes
checking for gethostbyname... yes
checking for gethostbyname... (cached) yes
checking for struct addrinfo... yes
checking whether gai_strerror is declared... yes
checking for getaddrinfo... (cached) yes
checking for cfmakeraw... yes
checking for floor... no
checking for getpagesize... yes
checking for getpagesize... (cached) yes
checking for gettimeofday... (cached) yes
checking for inet_ntoa... yes
checking for ioctl... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for pow... no
checking for rint... no
checking for select... yes
checking for setitimer... yes
checking for setlocale... yes
checking for sigaction... yes
checking for signal... yes
checking for snprintf... yes
checking for socket... yes
checking for sqrt... no
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for glob... yes
checking for socketpair... yes
checking for working alloca.h... yes
checking for alloca... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
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 the maximum length of command line arguments... 1572864
checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
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 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 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 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... yes
checking how to run the C++ preprocessor... g++ -E
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 -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether C99 struct/array initializers are supported... yes
checking whether to build USB dependent backends... yes
checking for libusb_init in -lusb-1.0... yes
checking libusb.h usability... no
checking libusb.h presence... no
checking for libusb.h... no
checking libusb-1.0/libusb.h usability... yes
checking libusb-1.0/libusb.h presence... yes
checking for libusb-1.0/libusb.h... yes
checking whether to use readline in rigctl/rotctl... yes
checking for a readline compatible library... no
checking whether to use INDI in rigctl/rotctl... checking for nova library... checking libnova/libnova.h usability... no
checking libnova/libnova.h presence... no
checking for libnova/libnova.h... no
no
checking whether to build HTML rig feature matrix... check
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no
checking whether to build rigmem XML support... yes
checking whether to build USRP backend... no
checking pkg-config... no
checking LIBXML2... no
checking whether to build C++ binding... yes
checking whether to build perl binding... no
checking whether to build python binding... yes
checking for python3.9... /usr/bin/python3.9
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python >= '3.0.0'... yes
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python3.9 -I/usr/include/python3.9
checking for Python library path... -L/usr/lib -lpython3.9
checking for Python site-packages path... 
checking python extra libraries... -lcrypt -lpthread -ldl  -lutil -lm -lm
checking python extra linking flags... -L/usr/lib/python3.9/config-3.9-aarch64-linux-gnu -L/usr/lib  -lcrypt -lpthread -ldl  -lutil -lm -lm 
checking consistency of all components of python development environment... yes
checking whether /usr/bin/python3.9 version is >= 2.1... yes
checking for /usr/bin/python3.9 version... 3.9
checking for /usr/bin/python3.9 platform... linux
checking for /usr/bin/python3.9 script directory... ${prefix}/lib/python3.9/site-packages
checking for /usr/bin/python3.9 extension module directory... ${exec_prefix}/lib/python3.9/site-packages
checking Whether to build Tcl bindings... no
checking whether to build lua binding... no
checking for swig... no
checking for swig3.0... no
km4ack commented 1 month ago

So it references swig4.0 but is looking for swig3.0. What happens if you install 3.0 first and then try the install of rigctl using 73Linux? sudo apt install swig3.0

dkiesow commented 1 month ago

OK - started over with a fresh install of Bullseye, update, upgrade, install Swig (I forgot to specify 3 and it defaulted to 4.0) and then the install went perfectly. So, not helpful to the troubleshooting but everything did work. I had to go with a fresh install as I had made too many changes while troubleshooting.

km4ack commented 1 month ago

Thanks for the report. I'll add swig to the list of dependencies.