[OpenSIPS-Users] Failed compilation

Saint Michael venefax at gmail.com
Thu Mar 6 15:24:46 UTC 2025


I did, and after a lot of research, I had to do this
cd /usr/src/opensips-3.4/
git reset --hard HEAD
git pull
cd menuconfig/
rm -f curses.h
ln -sf /usr/src/merged_curses.h curses.h
cd ..

The file, merged_curses.h, attached, is a combination of the  system
curses.h and the opensips curses.h.
The compiler cannot find all the headers it needs on the native opensips
curses.h

My OS is
cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble

Do you have any idea what can be possibly happening?



On Thu, Mar 6, 2025 at 9:19 AM Liviu Chircu <liviu at opensips.org> wrote:

> Make sure to install *libncurses5-dev *DEB package or equivalent for your
> OS, then try again.
> On 03.03.2025 17:45, Saint Michael wrote:
>
> make[1]: Entering directory '/usr/src/opensips-3.4/menuconfig'
> gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops
> -falign-loops -ftree-vectorize -fno-common -mtune=nocona
> -Wold-style-definition -Wmissing-field-initializers -Wredundant-decls -g
> -Wall
> -DMENUCONFIG_CFG_PATH=\"/usr/local//share/opensips//menuconfig_templates/\"
> -DMENUCONFIG_GEN_PATH=\"/usr/local//etc/opensips/\"
> -DMENUCONFIG_HAVE_SOURCES=0    -c -o cfg.o cfg.c
> In file included from cfg.c:28:
> main.h:39:8: error: unknown type name 'WINDOW'
>    39 | extern WINDOW *menu_window;
>       |        ^~~~~~
> make[1]: *** [<builtin>: cfg.o] Error 1
> make[1]: Leaving directory '/usr/src/opensips-3.4/menuconfig'
> make: *** [Makefile:487: opensipsmc] Error 2
> General
> what steps should I take to understand this?
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> --
> Liviu Chircuwww.opensips-solutions.com | www.siphub.com
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20250306/6df746d7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: merged_curses.h
Type: application/octet-stream
Size: 948 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20250306/6df746d7/attachment.obj>


More information about the Users mailing list