Seems to be a slip-up from this commit [1].

Could you please change dir to OpenSIPS sources, then run the following command, in order to try to patch it?

sed -i 's/\(struct dvpoll dpoll;\)/\1\n\tstruct fd_map* e;/' io_wait_loop.h


[1]: https://github.com/OpenSIPS/opensips/commit/0bd29346

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 12.01.2016 14:02, Nathaniel L. Keeling III wrote:
Just in case it was missed earlier, here is the end of the output from running "NICER=0 make" while compiling opensips.

Compiling net/net_tcp.c
gcc -m64 -Wcast-align -mcpu=ultrasparc -I/usr/include/json -DPKG_MALLOC -DSHM_MMAP -DUSE_MCAST -DDISABLE_NAGLE -DSTATISTICS -DHAVE_RESOLV_RES -DF_MALLOC -DEXTRA_DEBUG -DNAME='"opensips"' -DVERSION='"2.1.1"' -DARCH='"sparc64"' -DOS='"solaris"' -DCOMPILER='"gcc 4.9.2"' -D__CPU_sparc64 -D__OS_solaris -D__SMP_yes -DCFG_DIR='"/opt//etc/opensips/"' -DVERSIONTYPE='"git"' -DTHISREVISION='"7df8a1a"' -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION -D_POSIX_PTHREAD_SEMANTICS -DHAVE_DEVPOLL -DHAVE_SELECT -c net/net_tcp.c -o net/net_tcp.o
In file included from net/../mem/../locking.h:66:0,
                 from net/../mem/../statistics.h:143,
                 from net/../mem/../pt.h:34,
                 from net/../mem/../dprint.h:55,
                 from net/../mem/mem.h:38,
                 from net/net_tcp.c:42:
net/../mem/../lock_alloc.h: In function 'lock_set_alloc':
net/../mem/../lock_alloc.h:70:13: warning: cast increases required alignment of target type [-Wcast-align]
ls->locks=(gen_lock_t*)((char*)ls+sizeof(gen_lock_set_t));
             ^
In file included from net/../globals.h:30:0,
                 from net/net_tcp.c:44:
net/../ip_addr.h: In function 'sockaddr2ip_addr':
net/../ip_addr.h:224:25: warning: cast increases required alignment of target type [-Wcast-align]
    memcpy(ip->u.addr, &((struct sockaddr_in*)sa)->sin_addr, 4);
                         ^
net/../ip_addr.h:229:25: warning: cast increases required alignment of target type [-Wcast-align]
    memcpy(ip->u.addr, &((struct sockaddr_in6*)sa)->sin6_addr, 16);
                         ^
In file included from net/../reactor.h:41:0,
                 from net/net_tcp.c:50:
net/../io_wait_loop.h: In function 'io_wait_loop_devpoll':
net/../io_wait_loop.h:426:4: error: 'e' undeclared (first use in this function)
    e = get_fd_map(h, h->fd_array[r].fd);
    ^
net/../io_wait_loop.h:426:4: note: each undeclared identifier is reported only once for each function it appears in
In file included from net/../globals.h:30:0,
                 from net/net_tcp.c:44:
net/net_tcp.c: In function 'tcp_connect_blocking':
net/../ip_addr.h:168:26: warning: cast increases required alignment of target type [-Wcast-align]
   _port_no = su_getport( (union sockaddr_union*)_su); \
                          ^
net/net_tcp.c:270:4: note: in expansion of macro 'get_su_info'
    get_su_info( servaddr, ip, port);
    ^
net/../ip_addr.h:168:26: warning: cast increases required alignment of target type [-Wcast-align]
   _port_no = su_getport( (union sockaddr_union*)_su); \
                          ^
net/net_tcp.c:300:4: note: in expansion of macro 'get_su_info'
    get_su_info( servaddr, ip, port);
    ^
net/../ip_addr.h:168:26: warning: cast increases required alignment of target type [-Wcast-align]
   _port_no = su_getport( (union sockaddr_union*)_su); \
                          ^
net/net_tcp.c:319:5: note: in expansion of macro 'get_su_info'
     get_su_info( servaddr, ip, port);
     ^
Makefile.rules:25: recipe for target 'net/net_tcp.o' failed
make: *** [net/net_tcp.o] Error 1

thanks

nathaniel

On 1/6/16 3:32 AM, Răzvan Crainea wrote:
can you run 'NICER=0 make"

Thanks,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 01/05/2016 07:55 PM, Nathaniel L. Keeling III wrote:
No. The compile just stops.

Thanks

Nathaniel

On 1/5/16 6:58 AM, Răzvan Crainea wrote:
I doubt you are missing something on your side. Are there any other errors below that?

Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 01/05/2016 02:33 PM, Nathaniel L. Keeling III wrote:
Razvan,

Changing to -lcurses solved that problem. Thanks. Ran into another compile problem when compiling opensips 2.1. Here is the error:

Makefile.rules:25: recipe for target 'net/net_tcp.o' failed
make[1]: *** [net/net_tcp.o] Error 1
make[1]: Leaving directory '/usr/local/src/opensips/opensips_2_1

Is there something else that I am missing?


Thanks

Nathaniel

On 1/5/16 4:56 AM, Răzvan Crainea wrote:
Hi, Nathaniel!

It seems to be a common problem on Solaris[1] - some symbols are defined in libncurses, some in libcurses. Can you try to replace the '-lncurses' with '-lcurses' in menuconfig/Makefile (line 8)? If that doesn't work, try 'LD_EXTRA_OPTS=-lcurses make menuconfig' and post the output.

[1] https://gcc.gnu.org/ml/gcc-help/1999-11n/msg00020.html

Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 01/05/2016 07:18 AM, Nathaniel L. Keeling III wrote:
I am trying to install Opensips 2.1 on Solaris Sparc 10 and I am getting this error when I perform "make menuconfig":

# make menuconfig
Usage: grep -hblcnsviw pattern file . . .
/bin/sh: proto_: not found
make -C menuconfig
make[1]: Entering directory '/usr/local/src/opensips/opensips_2_1/menuconfig' gcc -o configure -m64 -Wcast-align -mcpu=ultrasparc -g -Wall -DMENUCONFIG_CFG_PATH=\"menuconfig/configs/\" -DMENUCONFIG_GEN_PATH=\"etc/\" -DMENUCONFIG_HAVE_SOURCES=1 cfg.o curses.o items.o commands.o menus.o parser.o main.o -lncurses
Undefined                       first referenced
 symbol                             in file
initscr32                           main.o
w32attron                           curses.o
w32attroff                          curses.o
ld: fatal: Symbol referencing errors. No output written to configure
Makefile:12: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/usr/local/src/opensips/opensips_2_1/menuconfig'
Makefile:720: recipe for target 'comp_menuconfig' failed

The version of ncurses install is 5.9 and I have gnu m4 version 1.4.17 installed.


Thanks

Nathaniel


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to