Liviu,
Thanks. That got me pass that error just to get to another error during
linking. I have these environmental variables set; CFLAGS=-m64
CXXFLAGS=-m64. I had to set these variables when compiling opensips 1.8
in order to get opensips to compile and install correctly. Here is the
error.
Compiling net/proto_udp/proto_udp.c
In file included from net/proto_udp/../../locking.h:66:0,
from net/proto_udp/../../statistics.h:143,
from net/proto_udp/../../pt.h:70,
from net/proto_udp/proto_udp.c:33:
net/proto_udp/../../lock_alloc.h: In function 'lock_set_alloc':
net/proto_udp/../../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/proto_udp/../../socket_info.h:34:0,
from net/proto_udp/proto_udp.c:35:
net/proto_udp/../../ip_addr.h: In function 'sockaddr2ip_addr':
net/proto_udp/../../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/proto_udp/../../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);
^
Compiling lex.yy.c
In file included from locking.h:66:0,
from statistics.h:143,
from pt.h:70,
from dprint.h:402,
from cfg.lex:62:
lock_alloc.h: In function 'lock_set_alloc':
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 globals.h:30:0,
from cfg.lex:63:
ip_addr.h: In function 'sockaddr2ip_addr':
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);
^
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);
^
Compiling cfg.tab.c
In file included from parser/../locking.h:66:0,
from parser/../statistics.h:143,
from parser/../pt.h:70,
from parser/../dprint.h:402,
from parser/../ip_addr.h:46,
from parser/msg_parser.h:48,
from pvar.h:32,
from route_struct.h:102,
from cfg.y:91:
parser/../lock_alloc.h: In function 'lock_set_alloc':
parser/../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 parser/msg_parser.h:48:0,
from pvar.h:32,
from route_struct.h:102,
from cfg.y:91:
parser/../ip_addr.h: In function 'sockaddr2ip_addr':
parser/../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);
^
parser/../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);
^
Linking opensips
ld: fatal: file data_lump.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to opensips
Makefile.rules:38: recipe for target 'opensips' failed
make[1]: *** [opensips] Error 1
Thanks
Nathaniel
On 1/15/16 3:26 AM, Liviu Chircu wrote:
They're not the same. There's a double declaration slip-up that I
edited out from the initial gist.
And yes, you first need to un-apply the previous patch :)
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 15.01.2016 02:51, Nathaniel L. Keeling III wrote:
Liviu,
No problem, but it looks like the same patch. Also, do I need to
un-apply the previous patch first or can I just apply the updated
version?
Thanks
Nathaniel L Keeling
On 1/14/16 3:40 AM, Liviu Chircu wrote:
Updated the patch [1]. My bad!
[1]: https://gist.github.com/liviuchircu/00bdc9bad3b750e8a265
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 14.01.2016 08:45, Nathaniel L. Keeling III wrote:
Liviu,
I removed the previous change and applied the patch and here is the
error that I got:
Compiling net/net_udp.c
In file included from net/../locking.h:66:0,
from net/../statistics.h:143,
from net/../pt.h:70,
from net/net_udp.c:30:
net/../lock_alloc.h: In function 'lock_set_alloc':
net/../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/../reactor_defs.h:39:0,
from net/../reactor.h:38,
from net/net_udp.c:32:
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_udp.c:32:
net/../io_wait_loop.h: In function 'io_wait_loop_devpoll':
net/../io_wait_loop.h:403:17: error: redeclaration of 'e' with no
linkage
struct fd_map* e;
^
net/../io_wait_loop.h:402:17: note: previous declaration of 'e' was
here
struct fd_map* e;
^
Makefile.rules:25: recipe for target 'net/net_udp.o' failed
make[1]: *** [net/net_udp.o] Error 1
Thanks
Nathaniel
On 1/13/16 4:28 AM, Liviu Chircu wrote:
sed -i 's/\(struct dvpoll dpoll;\)/\1\n\tstruct fd_map* e;/'
io_wait_loop.h
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users