Bugs item #1384825, was opened at 2005-12-19 04:20 Message generated for change (Comment added) made by bogdan_iancu You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1384825&group_id=139143
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: ver 1.0.x >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Dmitry Isakbayev (isakdim) >Assigned to: Bogdan (bogdan_iancu) Summary: udp_init error on SPARC Solaris - invalid setsockopt arg. Initial Comment: On SPARC SOLARIS, the proxy logs ERROR: udp_init: setsockopt(IP_MULTICAST_LOOP): Invalid argument. and exits. ---------------------------------------------------------------------- >Comment By: Bogdan (bogdan_iancu) Date: 2005-12-19 20:56 Message: Logged In: YES user_id=1275325 indeed, seams that setsockopt() for IP_MULTICAST_LOOP and IP_MULTICAST_TTL expects on some OS unsigned char for option value instead of int. Changing the global variable is not the best aproach since mcast_ttl may be negative (do not change it) and cannot be mapped over usigned char - I used a local varaible to do the casting. ---------------------------------------------------------------------- Comment By: Dmitry Isakbayev (isakdim) Date: 2005-12-19 19:49 Message: Logged In: YES user_id=1351890 Removing -DUSE_MCAST seems to work. Also, changing type of the mcast_loopback variable (main.c and globals.h) from int to unsigned char makes SPARC and x86 Solaris happy. I have not tried it on Linux yet. ---------------------------------------------------------------------- Comment By: Daniel Flinkmann (dflinkmann) Date: 2005-12-19 19:39 Message: Logged In: YES user_id=74742 Removing -DUSE_MCAST allows at least to run openser. ---------------------------------------------------------------------- Comment By: Daniel Flinkmann (dflinkmann) Date: 2005-12-19 18:53 Message: Logged In: YES user_id=74742 Oh sorry. Please remove / ignore my last compile issue I have posted. I just remove too many gcc - arguments for that test. ---------------------------------------------------------------------- Comment By: Daniel Flinkmann (dflinkmann) Date: 2005-12-19 18:46 Message: Logged In: YES user_id=74742 I tried it with removing "-MUSE_MCAST", but now the compile run breaks as following: gcc -g -O9 -funroll-loops -Wall -mcpu=ultrasparc -mtune=ultrasparc -DNAME='"openser"' -DVERSION='"1.0.0"' -DARCH='"sparc64"' -DOS='"solaris"' -DCOMPILER='"/usr/local/bin/gcc 3.4"' -D__CPU_sparc64 -D__OS_solaris -DCFG_DIR='"/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -c msg_translator.c -o msg_translator.o msg_translator.c: In function `build_req_buf_from_sip_req': msg_translator.c:1339: error: `id_buf' undeclared (first use in this function) msg_translator.c:1339: error: (Each undeclared identifier is reported only once msg_translator.c:1339: error: for each function it appears in.) msg_translator.c:1340: error: `id_len' undeclared (first use in this function) make[1]: *** [msg_translator.o] Error 1 ---------------------------------------------------------------------- Comment By: Daniel Flinkmann (dflinkmann) Date: 2005-12-19 18:31 Message: Logged In: YES user_id=74742 Have you tried removing Multicast Support ? (-MUSE_MCAST in Makefile.defs ) Daniel ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-12-19 18:29 Message: Logged In: NO Have you tried to remove MCAST support ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1384825&group_id=139143 _______________________________________________ Devel mailing list [email protected] http://openser.org/cgi-bin/mailman/listinfo/devel
