ve7fet / linuxax25

This is NOT the official home of the Linux AX.25 software suite (libax25, ax25-apps, and ax25-tools). The official home is hosted by the Linux Ham group at https://linux-ax25.in-berlin.de/wiki/Main_Page That is where official development should take place.
20 stars 5 forks source link

autoconf failed to find ncurses libraries on Arch Linux #18

Open kq6up opened 9 months ago

kq6up commented 9 months ago

the ncurses library is installed on this system, but it seems to be looking for ncursesw (wide). I found something that talks about ncursesw and Arch here, but wanted to get your input first before messing with the autoconf file:

https://bbs.archlinux.org/viewtopic.php?id=117029

Here is the error when I go to compile ax25-apps checking for ncursesw/curses.h... no configure: error: Required headers missing; aborting

Thanks, Chris KQ6UP

ve7fet commented 9 months ago

You are welcome to mess with the code all you like, no warranties expressed or implied that it will work. :)

I have not tried compiling it on Arch, as almost everything I've tried doing with Arch has been painful.

You may find that if you change it back to ncurses, it still may not compile, if it can't find the functions it is looking for (that would normally be in the ncursesw library). You will have to try and see.

Lee

kq6up commented 9 months ago

I tried simply using ed to ",s/ncursesw/ncurses/g" the configure macro. Same problem, but then found: https://aur.archlinux.org/packages/ncurses-git which states that it includes: "libformw.so, libmenuw.so, libncurses++w.so, libncursesw.so, libpanelw.so, ncurses", but now I am wondering if it includes the headers for build. I installed that instead of the regular package, and it still can't find the headers. I am not a programmer, so consider me in the know enough to be dangerous camp. I have been playing with Linux packet for a while, so not a n00b there, but as far as this stuff I can get in over my head fast.

The file in question is here on my system:

/usr/include/curses.h /usr/include/ncurses.h /usr/include/slcurses.h /usr/include/brltty/get_curses.h /usr/include/python3.11/py_curses.h

But I don't know how to modify the prefix of the search folders in the configure script.

-73 de Chris KQ6UP

hellocodelinux commented 1 day ago

Please note the following changes that need to be applied across the codebase:

Header File Update: All instances of #include <ncursesw/ncurses.h> should be replaced with #include <ncurses.h>.

Listener.c Modification: Add #include <time.h> at the beginning of listener.c.

Configuration Update: Replace the line related to configure with 5011.

   for ac_header in arpa/inet.h fcntl.h limits.h memory.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h syslog.h termio.h termios.h utime.h curses.h

Header File Check: For the following headers, please ensure they are updated accordingly:
    arpa/inet.h
    fcntl.h
    limits.h
    memory.h
    netdb.h
    netinet/in.h
    sys/ioctl.h
    sys/socket.h
    sys/time.h
    syslog.h
    termio.h
    termios.h
    utime.h
    curses.h