pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: compiling linrad under NetBSD



El 15/5/24 a las 12:06, Greg Troxel escribió:
Ramiro Aceves <ea1abz%gmail.com@localhost> writes:

AC_PREREQ(2.50)
setterm -term linux -back white
setterm -term linux -fore black

well that should just be removed.  configure should not be making
choices about how the output looks and should not be reconfiguring the
terminal.

OS=`uname`
AC_SUBST(OS, "${OS}")
MACHINE=$(uname -m)

probably should be -p, not -m.

CPU="CPU_INTEL"

wow, but this should probably be a case, not an assume-intel-unless.

uname at NetBSD outputs this:

rpi4-netbsd$ uname
NetBSD

rpi4-netbsd$ uname -m
evbarm

So it do not work.

Yes, but this is an upstream bug I think.

And, upstream says that the code doesn't work yet on aarch64.

Thanks Greg.

While I wait for upstream advices or hints by email, I could get a bit further.

Now I think it picks the ARM -DCPU=CPU_ARM. Not sure how to set the right CPU target for the RPi4.

I get 102 from 156 *.c files compiled until it breaks here in hid.c file .


cc -D_FILE_OFFSET_BITS=64 -DLUSERS_DEF=0 -DWUSERS_DEF=0 hid.c -DUDEV_LIBNAME=\"libudev.so\" -O2 -DOSNUM=1 -I/usr/include/ -W -Wall -DHAVE_OSS=0 -DCPU=CPU_ARM -DHAVE_SHM=0 -DHAVE_X11=0 -DIA64=1 -DDARWIN=0 -DSERVER=0 -DHAVE_SVGALIB=0 -DOPENCL_PRESENT=0 -DHAVE_CUFFT=0 -Wimplicit -Wreturn-type -Wformat -Wunused -Wcomment -DOSSD=0 -Wchar-subscripts -Wshadow -Wuninitialized -Wparentheses -Wstrict-prototypes -ffast-math -Wundef -fomit-frame-pointer -c -o hid.om
In file included from /usr/include/sys/ttycom.h:43,
                 from /usr/include/sys/ioctl.h:42,
                 from hid.c:13:
hid.c: In function ‘hid_send_feature_report’:
hid.c:960:37: error: ‘_IOC_WRITE’ undeclared (first use in this function); did you mean ‘FIONWRITE’? 960 | #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
      |                                     ^~~~~~~~~~
hid.c:1602:34: note: in expansion of macro ‘HIDIOCSFEATURE’
 1602 |  res = ioctl(dev->device_handle, HIDIOCSFEATURE(length), data);
      |                                  ^~~~~~~~~~~~~~
hid.c:960:37: note: each undeclared identifier is reported only once for each function it appears in 960 | #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
      |                                     ^~~~~~~~~~
hid.c:1602:34: note: in expansion of macro ‘HIDIOCSFEATURE’
 1602 |  res = ioctl(dev->device_handle, HIDIOCSFEATURE(length), data);
      |                                  ^~~~~~~~~~~~~~
hid.c:960:48: error: ‘_IOC_READ’ undeclared (first use in this function); did you mean ‘FIONREAD’? 960 | #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
      |                                                ^~~~~~~~~
hid.c:1602:34: note: in expansion of macro ‘HIDIOCSFEATURE’
 1602 |  res = ioctl(dev->device_handle, HIDIOCSFEATURE(length), data);
      |                                  ^~~~~~~~~~~~~~
hid.c: In function ‘hid_get_feature_report’:
hid.c:963:37: error: ‘_IOC_WRITE’ undeclared (first use in this function); did you mean ‘FIONWRITE’? 963 | #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
      |                                     ^~~~~~~~~~
hid.c:1613:34: note: in expansion of macro ‘HIDIOCGFEATURE’
 1613 |  res = ioctl(dev->device_handle, HIDIOCGFEATURE(length), data);
      |                                  ^~~~~~~~~~~~~~
hid.c:963:48: error: ‘_IOC_READ’ undeclared (first use in this function); did you mean ‘FIONREAD’? 963 | #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
      |                                                ^~~~~~~~~
hid.c:1613:34: note: in expansion of macro ‘HIDIOCGFEATURE’
 1613 |  res = ioctl(dev->device_handle, HIDIOCGFEATURE(length), data);
      |                                  ^~~~~~~~~~~~~~
gmake: *** [Makefile:2248: hid.om] Error 1

This is too complex for me, I think. Anyway, I am learning things in during the process.

rpi4-netbsd$ pkgin se hid | grep USB
libhid-0.2.16nb14    Abstraction layer for HID-class devices over USB/serial
usbhid-dump-1.4      USB HID device dumping utility

Perhaps with this....

This is a nightmare :-)

Regards.
Ramiro.










Home | Main Index | Thread Index | Old Index