make[2]: Entering directory ‘/usr/src/linux-6.4.0-150700.53.11-obj/x86_64/default’
CC [M] /usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_common.o
CC [M] /usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_dpa_ops.o
CC [M] /usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_driver.o
CC [M] /usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_mon_ops.o
CC [M] /usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_net_ops.o
CC [M] /usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_ports_ops.o
CC [M] /usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_proc.o
CC [M] /usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_specproc.o
CC [M] /usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_tty.o
/usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_tty.c:268:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.send_xchar = dgrp_tty_send_xchar
^~~~~~~~~~~~~~~~~~~
/usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_tty.c:268:21: note: (near initialization for ‘dgrp_tty_ops.send_xchar’)
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-6.4.0-150700.53.11/scripts/Makefile.build:252: /usr/src/packages/BUILD/dgrp-1.9/driver/build/dgrp_tty.o] Error 1
make[2]: *** [../../../linux-6.4.0-150700.53.11/Makefile:2059: /usr/src/packages/BUILD/dgrp-1.9/driver/build] Error 2
make[2]: Leaving directory ‘/usr/src/linux-6.4.0-150700.53.11-obj/x86_64/default’
make[1]: *** [Makefile:89: build] Error 2
make[1]: Leaving directory ‘/usr/src/packages/BUILD/dgrp-1.9/driver/2.6.27’
make: *** [Makefile:59: build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.o2kJ1K (%build)
@Maurizio , I think you’re going to want to open a support case for this one.
The following is an old article, so I doubt the install instructions would be accurate (use the install instructions within the Linux Realport driver release notes). Prior to contacting support/opening the support case, replicate this install after running the # script command first, as seen in this old article:
Get through the install as far as you can, and when the install fails, look for the typescript file described in the article, then provide that to Digi Tech Support when you create your case:
“If errors are seen, the file named “typescript” located in the directory where you began the installation may be helpful for debugging/analysis.“
Please also provide your product’s Serial Number at the time you create the support case, so we can determine warranty/support coverage status.
Good evening, I compiled from tar.gz as described in the release notes, but the error is still present. I tried changing the CC options, but nothing changed. I modified the Makefile directly with the -Wno-error option, and it works.
./configure CFLAGS=“-Wno-error=incompatible-pointer-types”
make all
…
CC [M] /home/divita/dgrp-1.9/driver/build/dgrp_tty.o
/home/divita/dgrp-1.9/driver/build/dgrp_tty.c:268:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.send_xchar = dgrp_tty_send_xchar
^~~~~~~~~~~~~~~~~~~
vi driver/build/Makefile
Send in some extra things…
EXTRA_CFLAGS += -I${MYPWD} -I${MYPWD}/include -I${MYPWD}/../../commoninc \
-DDIGI_VERSION="$(TRUE_VERSION)" -DDGRP_TRACER -Wno-error=incompatible-pointer-types
make all
…
CC [M] /home/divita/dgrp-1.9/driver/build/dgrp_tty.o
/home/divita/dgrp-1.9/driver/build/dgrp_tty.c:268:21: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.send_xchar = dgrp_tty_send_xchar
^~~~~~~~~~~~~~~~~~~
/home/divita/dgrp-1.9/driver/build/dgrp_tty.c:268:21: note: (near initialization for ‘dgrp_tty_ops.send_xchar’)
CC [M] /home/divita/dgrp-1.9/driver/build/dgrp_sysfs.o
LD [M] /home/divita/dgrp-1.9/driver/build/dgrp.o
MODPOST /home/divita/dgrp-1.9/driver/build/Module.symvers
CC [M] /home/divita/dgrp-1.9/driver/build/dgrp.mod.o
LD [M] /home/divita/dgrp-1.9/driver/build/dgrp.ko
BTF [M] /home/divita/dgrp-1.9/driver/build/dgrp.ko
Skipping BTF generation for /home/divita/dgrp-1.9/driver/build/dgrp.ko due to unavailability of vmlinux
make[2]: Leaving directory ‘/usr/src/linux-6.4.0-150700.53.16-obj/x86_64/default’
make[1]: Leaving directory ‘/home/divita/dgrp-1.9/driver/2.6.27’
(cd ditty; make all)
The same DGRP_1.9-44 driver compiles correctly on SLES 15 SP6 even from rpmbuild, as do previous versions.
SLES-15-SP6 gcc version 4.8.5 (SUSE Linux)
SLES-15-SP7 gcc version 7.5.0 (SUSE Linux)