lcdproc / lcdproc

Client/server suite for controlling a wide variety of LCD devices
http://lcdproc.org/
GNU General Public License v2.0
109 stars 86 forks source link

Issued building hd44780 #174

Open rogueops opened 3 years ago

rogueops commented 3 years ago

Using FreeBSD 12.2 and able to easily built new versions of the server and client apps and the drivers I has used before, but i just keep getting errors when trying to build hd44780.so, I tried:

./autogen.sh ./configure --enable-drivers=hd44780

if i swap hd44780 with one i have used before no issues, if I tried to build all it gets stuck on just hd44780

then ran make all

the errors point to issues with the files or unable to build the given file, what am I doing wrong?

kripton commented 3 years ago

Would you mind posting the exact error messages? Otherwise, it's almost impossible to judge what might be wrong. And it would be great to know which exact version or git commit you are trying to build

rogueops commented 3 years ago

i did autogen.sh, the configure and enabled hd44780, then make and I get this, i currently use crystalfontz so that builds, but my new box uses an EZIO-100 so will need the HD44780 driver for when i get that box up

hd44780-bwct-usb.c:68:3: warning: implicit declaration of function 'usb_init' is invalid in C99 [-Wimplicit-function-declaration] usb_init(); ^ hd44780-bwct-usb.c:69:3: warning: implicit declaration of function 'usb_find_busses' is invalid in C99 [-Wimplicit-function-declaration] usb_find_busses(); ^ hd44780-bwct-usb.c:70:3: warning: implicit declaration of function 'usb_find_devices' is invalid in C99 [-Wimplicit-function-declaration] usb_find_devices(); ^ hd44780-bwct-usb.c:72:6: error: no member named 'usbHandle' in 'struct hd44780_private_data' p->usbHandle = NULL; ~ ^ hd44780-bwct-usb.c:73:6: error: no member named 'usbIndex' in 'struct hd44780_private_data' p->usbIndex = 0; ~ ^ hd44780-bwct-usb.c:74:14: warning: implicit declaration of function 'usb_get_busses' is invalid in C99 [-Wimplicit-function-declaration] for (bus = usb_get_busses(); bus != NULL; bus = bus->next) { ^ hd44780-bwct-usb.c:74:12: warning: incompatible integer to pointer conversion assigning to 'struct usb_bus *' from 'int' [-Wint-conversion] for (bus = usb_get_busses(); bus != NULL; bus = bus->next) { ^ ~~~~ hd44780-bwct-usb.c:74:54: error: incomplete definition of type 'struct usb_bus' for (bus = usb_get_busses(); bus != NULL; bus = bus->next) {


hd44780-bwct-usb.c:45:10: note: forward declaration of 'struct usb_bus'
  struct usb_bus *bus;
         ^
hd44780-bwct-usb.c:77:19: error: incomplete definition of type 'struct
usb_bus'
    for (dev = bus->devices; dev != NULL; dev = dev->next) {
               ~~~^
hd44780-bwct-usb.c:45:10: note: forward declaration of 'struct usb_bus'
  struct usb_bus *bus;
         ^
hd44780-bwct-usb.c:77:52: error: incomplete definition of type 'struct
usb_device'
    for (dev = bus->devices; dev != NULL; dev = dev->next) {
                                                ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:81:14: error: incomplete definition of type 'struct
usb_device'
      if (dev->descriptor.idVendor != BWCT_USB_VENDORID) {
          ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:85:26: error: incomplete definition of type 'struct
usb_device'
      for (c = 0; c < dev->descriptor.bNumConfigurations; c++) {
                      ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:87:17: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
        for (p->usbIndex = 0; p->usbIndex < dev->config[c].bNumInterfaces;
p->usbIndex++) {
             ~  ^
hd44780-bwct-usb.c:87:34: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
        for (p->usbIndex = 0; p->usbIndex < dev->config[c].bNumInterfaces;
p->usbIndex++) {
                              ~  ^
hd44780-bwct-usb.c:87:48: error: incomplete definition of type 'struct
usb_device'
        for (p->usbIndex = 0; p->usbIndex < dev->config[c].bNumInterfaces;
p->usbIndex++) {
                                            ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:87:79: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
        for (p->usbIndex = 0; p->usbIndex < dev->config[c].bNumInterfaces;
p->usbIndex++) {

 ~  ^
hd44780-bwct-usb.c:91:30: error: incomplete definition of type 'struct
usb_device'
          for (a = 0; a <
dev->config[c].interface[p->usbIndex].num_altsetting; a++) {
                          ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:91:55: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
          for (a = 0; a <
dev->config[c].interface[p->usbIndex].num_altsetting; a++) {
                                                   ~  ^
hd44780-bwct-usb.c:93:22: error: incomplete definition of type 'struct
usb_device'
            if
(((dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceClass ==
0xFF) &&
                  ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:93:47: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
            if
(((dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceClass ==
0xFF) &&
                                           ~  ^
hd44780-bwct-usb.c:94:22: error: incomplete definition of type 'struct
usb_device'

 (dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceSubClass ==
0x01)) ||
                  ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:94:47: error: no member named 'usbIndex' in 'struct
hd44780_private_data'

 (dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceSubClass ==
0x01)) ||
                                           ~  ^
hd44780-bwct-usb.c:95:21: error: incomplete definition of type 'struct
usb_device'
                (dev->descriptor.idProduct == BWCT_USB_PRODUCTID)) {
                 ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:98:18: error: no member named 'usbHandle' in 'struct
hd44780_private_data'
              p->usbHandle = usb_open(dev);
              ~  ^
hd44780-bwct-usb.c:98:30: warning: implicit declaration of function
'usb_open' is invalid in C99 [-Wimplicit-function-declaration]
              p->usbHandle = usb_open(dev);
                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
*** Error code 1

On Sun, May 9, 2021 at 8:50 AM kripton ***@***.***> wrote:

> Would you mind posting the exact error messages? Otherwise, it's almost
> impossible to judge what might be wrong.
> And it would be great to know which exact version or git commit you are
> trying to build
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/lcdproc/lcdproc/issues/174#issuecomment-835832381>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AANE6NZBKJG4GNN562XCAS3TM2VJHANCNFSM44O33EKQ>
> .
>
rogueops commented 3 years ago

version is whatever is currently up, i downloaded it at 2AM on the 9th MST

On Sun, May 9, 2021 at 8:10 PM Jason P @.***> wrote:

i did autogen.sh, the configure and enabled hd44780, then make and I get this, i currently use crystalfontz so that builds, but my new box uses an EZIO-100 so will need the HD44780 driver for when i get that box up

hd44780-bwct-usb.c:68:3: warning: implicit declaration of function 'usb_init' is invalid in C99 [-Wimplicit-function-declaration] usb_init(); ^ hd44780-bwct-usb.c:69:3: warning: implicit declaration of function 'usb_find_busses' is invalid in C99 [-Wimplicit-function-declaration] usb_find_busses(); ^ hd44780-bwct-usb.c:70:3: warning: implicit declaration of function 'usb_find_devices' is invalid in C99 [-Wimplicit-function-declaration] usb_find_devices(); ^ hd44780-bwct-usb.c:72:6: error: no member named 'usbHandle' in 'struct hd44780_private_data' p->usbHandle = NULL; ~ ^ hd44780-bwct-usb.c:73:6: error: no member named 'usbIndex' in 'struct hd44780_private_data' p->usbIndex = 0; ~ ^ hd44780-bwct-usb.c:74:14: warning: implicit declaration of function 'usb_get_busses' is invalid in C99 [-Wimplicit-function-declaration] for (bus = usb_get_busses(); bus != NULL; bus = bus->next) { ^ hd44780-bwct-usb.c:74:12: warning: incompatible integer to pointer conversion assigning to 'struct usb_bus *' from 'int' [-Wint-conversion] for (bus = usb_get_busses(); bus != NULL; bus = bus->next) { ^ ~~~~ hd44780-bwct-usb.c:74:54: error: incomplete definition of type 'struct usb_bus' for (bus = usb_get_busses(); bus != NULL; bus = bus->next) {


hd44780-bwct-usb.c:45:10: note: forward declaration of 'struct usb_bus'
  struct usb_bus *bus;
         ^
hd44780-bwct-usb.c:77:19: error: incomplete definition of type 'struct
usb_bus'
    for (dev = bus->devices; dev != NULL; dev = dev->next) {
               ~~~^
hd44780-bwct-usb.c:45:10: note: forward declaration of 'struct usb_bus'
  struct usb_bus *bus;
         ^
hd44780-bwct-usb.c:77:52: error: incomplete definition of type 'struct
usb_device'
    for (dev = bus->devices; dev != NULL; dev = dev->next) {
                                                ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:81:14: error: incomplete definition of type 'struct
usb_device'
      if (dev->descriptor.idVendor != BWCT_USB_VENDORID) {
          ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:85:26: error: incomplete definition of type 'struct
usb_device'
      for (c = 0; c < dev->descriptor.bNumConfigurations; c++) {
                      ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:87:17: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
        for (p->usbIndex = 0; p->usbIndex < dev->config[c].bNumInterfaces;
p->usbIndex++) {
             ~  ^
hd44780-bwct-usb.c:87:34: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
        for (p->usbIndex = 0; p->usbIndex < dev->config[c].bNumInterfaces;
p->usbIndex++) {
                              ~  ^
hd44780-bwct-usb.c:87:48: error: incomplete definition of type 'struct
usb_device'
        for (p->usbIndex = 0; p->usbIndex < dev->config[c].bNumInterfaces;
p->usbIndex++) {
                                            ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:87:79: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
        for (p->usbIndex = 0; p->usbIndex < dev->config[c].bNumInterfaces;
p->usbIndex++) {

 ~  ^
hd44780-bwct-usb.c:91:30: error: incomplete definition of type 'struct
usb_device'
          for (a = 0; a <
dev->config[c].interface[p->usbIndex].num_altsetting; a++) {
                          ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:91:55: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
          for (a = 0; a <
dev->config[c].interface[p->usbIndex].num_altsetting; a++) {
                                                   ~  ^
hd44780-bwct-usb.c:93:22: error: incomplete definition of type 'struct
usb_device'
            if
(((dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceClass ==
0xFF) &&
                  ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:93:47: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
            if
(((dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceClass ==
0xFF) &&
                                           ~  ^
hd44780-bwct-usb.c:94:22: error: incomplete definition of type 'struct
usb_device'

 (dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceSubClass ==
0x01)) ||
                  ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:94:47: error: no member named 'usbIndex' in 'struct
hd44780_private_data'

 (dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceSubClass ==
0x01)) ||
                                           ~  ^
hd44780-bwct-usb.c:95:21: error: incomplete definition of type 'struct
usb_device'
                (dev->descriptor.idProduct == BWCT_USB_PRODUCTID)) {
                 ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:98:18: error: no member named 'usbHandle' in 'struct
hd44780_private_data'
              p->usbHandle = usb_open(dev);
              ~  ^
hd44780-bwct-usb.c:98:30: warning: implicit declaration of function
'usb_open' is invalid in C99 [-Wimplicit-function-declaration]
              p->usbHandle = usb_open(dev);
                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
*** Error code 1

On Sun, May 9, 2021 at 8:50 AM kripton ***@***.***> wrote:

> Would you mind posting the exact error messages? Otherwise, it's almost
> impossible to judge what might be wrong.
> And it would be great to know which exact version or git commit you are
> trying to build
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/lcdproc/lcdproc/issues/174#issuecomment-835832381>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AANE6NZBKJG4GNN562XCAS3TM2VJHANCNFSM44O33EKQ>
> .
>
rogueops commented 3 years ago

this looks like my issue but I am on freebsd and not debian

https://github.com/lcdproc/lcdproc/issues/57

was tired when i did this so probably missed the above ticket

On Sun, May 9, 2021 at 8:12 PM Jason P @.***> wrote:

version is whatever is currently up, i downloaded it at 2AM on the 9th MST

On Sun, May 9, 2021 at 8:10 PM Jason P @.***> wrote:

i did autogen.sh, the configure and enabled hd44780, then make and I get this, i currently use crystalfontz so that builds, but my new box uses an EZIO-100 so will need the HD44780 driver for when i get that box up

hd44780-bwct-usb.c:68:3: warning: implicit declaration of function 'usb_init' is invalid in C99 [-Wimplicit-function-declaration] usb_init(); ^ hd44780-bwct-usb.c:69:3: warning: implicit declaration of function 'usb_find_busses' is invalid in C99 [-Wimplicit-function-declaration] usb_find_busses(); ^ hd44780-bwct-usb.c:70:3: warning: implicit declaration of function 'usb_find_devices' is invalid in C99 [-Wimplicit-function-declaration] usb_find_devices(); ^ hd44780-bwct-usb.c:72:6: error: no member named 'usbHandle' in 'struct hd44780_private_data' p->usbHandle = NULL; ~ ^ hd44780-bwct-usb.c:73:6: error: no member named 'usbIndex' in 'struct hd44780_private_data' p->usbIndex = 0; ~ ^ hd44780-bwct-usb.c:74:14: warning: implicit declaration of function 'usb_get_busses' is invalid in C99 [-Wimplicit-function-declaration] for (bus = usb_get_busses(); bus != NULL; bus = bus->next) { ^ hd44780-bwct-usb.c:74:12: warning: incompatible integer to pointer conversion assigning to 'struct usb_bus *' from 'int' [-Wint-conversion] for (bus = usb_get_busses(); bus != NULL; bus = bus->next) { ^ ~~~~ hd44780-bwct-usb.c:74:54: error: incomplete definition of type 'struct usb_bus' for (bus = usb_get_busses(); bus != NULL; bus = bus->next) {


hd44780-bwct-usb.c:45:10: note: forward declaration of 'struct usb_bus'
  struct usb_bus *bus;
         ^
hd44780-bwct-usb.c:77:19: error: incomplete definition of type 'struct
usb_bus'
    for (dev = bus->devices; dev != NULL; dev = dev->next) {
               ~~~^
hd44780-bwct-usb.c:45:10: note: forward declaration of 'struct usb_bus'
  struct usb_bus *bus;
         ^
hd44780-bwct-usb.c:77:52: error: incomplete definition of type 'struct
usb_device'
    for (dev = bus->devices; dev != NULL; dev = dev->next) {
                                                ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:81:14: error: incomplete definition of type 'struct
usb_device'
      if (dev->descriptor.idVendor != BWCT_USB_VENDORID) {
          ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:85:26: error: incomplete definition of type 'struct
usb_device'
      for (c = 0; c < dev->descriptor.bNumConfigurations; c++) {
                      ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:87:17: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
        for (p->usbIndex = 0; p->usbIndex <
dev->config[c].bNumInterfaces; p->usbIndex++) {
             ~  ^
hd44780-bwct-usb.c:87:34: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
        for (p->usbIndex = 0; p->usbIndex <
dev->config[c].bNumInterfaces; p->usbIndex++) {
                              ~  ^
hd44780-bwct-usb.c:87:48: error: incomplete definition of type 'struct
usb_device'
        for (p->usbIndex = 0; p->usbIndex <
dev->config[c].bNumInterfaces; p->usbIndex++) {
                                            ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:87:79: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
        for (p->usbIndex = 0; p->usbIndex <
dev->config[c].bNumInterfaces; p->usbIndex++) {

 ~  ^
hd44780-bwct-usb.c:91:30: error: incomplete definition of type 'struct
usb_device'
          for (a = 0; a <
dev->config[c].interface[p->usbIndex].num_altsetting; a++) {
                          ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:91:55: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
          for (a = 0; a <
dev->config[c].interface[p->usbIndex].num_altsetting; a++) {
                                                   ~  ^
hd44780-bwct-usb.c:93:22: error: incomplete definition of type 'struct
usb_device'
            if
(((dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceClass ==
0xFF) &&
                  ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:93:47: error: no member named 'usbIndex' in 'struct
hd44780_private_data'
            if
(((dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceClass ==
0xFF) &&
                                           ~  ^
hd44780-bwct-usb.c:94:22: error: incomplete definition of type 'struct
usb_device'

 (dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceSubClass ==
0x01)) ||
                  ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:94:47: error: no member named 'usbIndex' in 'struct
hd44780_private_data'

 (dev->config[c].interface[p->usbIndex].altsetting[a].bInterfaceSubClass ==
0x01)) ||
                                           ~  ^
hd44780-bwct-usb.c:95:21: error: incomplete definition of type 'struct
usb_device'
                (dev->descriptor.idProduct == BWCT_USB_PRODUCTID)) {
                 ~~~^
hd44780-bwct-usb.c:75:12: note: forward declaration of 'struct usb_device'
    struct usb_device *dev;
           ^
hd44780-bwct-usb.c:98:18: error: no member named 'usbHandle' in 'struct
hd44780_private_data'
              p->usbHandle = usb_open(dev);
              ~  ^
hd44780-bwct-usb.c:98:30: warning: implicit declaration of function
'usb_open' is invalid in C99 [-Wimplicit-function-declaration]
              p->usbHandle = usb_open(dev);
                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
*** Error code 1

On Sun, May 9, 2021 at 8:50 AM kripton ***@***.***> wrote:

> Would you mind posting the exact error messages? Otherwise, it's almost
> impossible to judge what might be wrong.
> And it would be great to know which exact version or git commit you are
> trying to build
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/lcdproc/lcdproc/issues/174#issuecomment-835832381>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AANE6NZBKJG4GNN562XCAS3TM2VJHANCNFSM44O33EKQ>
> .
>