desrod / pilot-link

pilot-link is a suite of tools used to connect your Palm or PalmOS® compatible handheld with Unix, Linux, and any other POSIX-compatible machine.
GNU General Public License v2.0
11 stars 7 forks source link

Issues compiling #16

Open t3kk3n opened 1 year ago

t3kk3n commented 1 year ago

So when I try to compile with autogen, along with trying to run configure, I get the following:

checking for socklen_t... yes checking whether to enable userland conduits... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for BLUEZ... yes ./configure: line 18631: syntax error near unexpected token )' ./configure: line 18631: )'

Line 18631 contains a close parenthesis, so for the heck of it, I commented it out, to then get the following:

checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for BLUEZ... yes ./configure: line 19040: syntax error near unexpected token 'newline' ./configure: line 19040: '''

Before I start going edit crazy, is anyone else having this issue? Has anyone solved or fixed this?

Thanks!

parkerlreed commented 1 year ago

Same here https://gist.github.com/parkerlreed/19a7c0501770e2a2063921f9a11eda9b

sintezcs commented 1 year ago

did anyone manage to solve this?

t3kk3n commented 1 year ago

I was able to get this built/compiled using the pilot-link-git package on the Arch Linux AUR - hope this helps.

desrod commented 1 year ago

I'll try to take a look and push a fix this weekend. I'm pretty backed up on some other PRs as well. Sorry for delays on this!

durrendal commented 9 months ago

This patch appears to fix the compilation issues related to the -Werror CFLAG and configure malformation.

https://aur.archlinux.org/cgit/aur.git/plain/configure-checks.patch?h=pilot-link-git

ncot-tech commented 2 months ago

I was able to get this built/compiled using the pilot-link-git package on the Arch Linux AUR - hope this helps.

I'm trying to do the same, but I get this error when compiling, anyone know how to fix it?

pilot-read-todos.c: In function ‘main’:
pilot-read-todos.c:220:53: error: passing argument 4 of ‘pi_file_read_record’ from incompatible pointer type [-Wincompatible-pointer-types]
  220 |                             (pif, i, (void *) &ptr, &len, &attr, &category,
      |                                                     ^~~~
      |                                                     |
      |                                                     int *
In file included from ../include/pi-socket.h:58,
                 from pilot-read-todos.c:32:
../include/pi-file.h:268:72: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘int *’
  268 |             PI_ARGS((pi_file_t *pf, int recindex, void **bufp, size_t *sizep,
      |                                                                ~~~~~~~~^~~~~
../include/pi-args.h:29:29: note: in definition of macro ‘PI_ARGS’
   29 | #   define PI_ARGS(x)       x
      |                             ^

Well, after some fiddling I can pretend the errors don't exist by editing the Makefiles to make GCC not error out, and then it all compiles and works. I might try to figure out auoconf enough to do this more "properly" but I'm now trying to work out what to do with my Palm now I can sync it with my machine.

To do this you need to change the CFLAGS in the Makefiles to contain

-Wno-incompatible-pointer-types instead of -Wall