1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] Compiling and Crashing on boot under Solaris
9
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Compiling%20and%20Crashing%20on%20boot%20under%20Solaris%209&In-Reply-To=Pine.GSO.4.56.0306081253280.8466%40sirius.firelion.org">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"003854.html">
11 <LINK REL=
"Next" HREF=
"003856.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] Compiling and Crashing on boot under Solaris
9</H1>
16 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Compiling%20and%20Crashing%20on%20boot%20under%20Solaris%209&In-Reply-To=Pine.GSO.4.56.0306081253280.8466%40sirius.firelion.org"
17 TITLE=
"[IRCServices] Compiling and Crashing on boot under Solaris 9">achurch at achurch.org
19 <I>Mon Jun
9 16:
12:
26 PDT
2003</I>
21 <LI>Previous message:
<A HREF=
"003854.html">[IRCServices] Compiling and Crashing on boot under Solaris
9
23 <LI>Next message:
<A HREF=
"003856.html">[IRCServices] OPERSERV EXCEPTION add BUG/PROBLEM
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#3855">[ date ]
</a>
27 <a href=
"thread.html#3855">[ thread ]
</a>
28 <a href=
"subject.html#3855">[ subject ]
</a>
29 <a href=
"author.html#3855">[ author ]
</a>
34 <PRE> Thanks for the detailed bug report. Particular issues follow:
36 ><i>First, I had to add a -libs parameter to configure with
"-lsocket -lnsl
37 </I>><i>-lresolv
" so that it would find hstrerror() and gethostbyname().
39 These are now properly checked for.
41 ><i>It refuses to compile
42 </I>><i>dynamic modules, but I didn't care enough to try and correct that.
44 It looks like Solaris can't handle undefined symbols in shared
45 objects. I don't consider this a particularly important problem, since
46 static linking works fine.
49 </I>><i>had to tell Make to be sure to use bash as the shell, instead of Solaris'
50 </I>><i>braindead /bin/sh by adding a SHELL=/usr/local/bin/bash parameter to the
51 </I>><i>make command.
53 I assume you got
"/bin/sh: test: unknown operator -nt
"? This has been
54 fixed (configure now checks for /bin/test and uses it instead if /bin/sh is
57 ><i>After that it compiles fine. It still complains that it cannot find
58 </I>><i>strtok, although this isn't fatal. Solaris does seem to have this
59 </I>><i>function, however. Here is the relevant snippet from the configure.log
60 </I>><i>when it attempts to locate strtok:
62 In this case this was due to a configure typo, but Solaris (at least
63 Solaris
9) seems to have the same strtok() bug found in Linux glibc, namely
64 that the following code snippet will return non-NULL for the second call:
66 char buf[] =
"\
0 b c
";
67 char *s1 = strtok(buf,
" "); /* returns NULL as expected */
68 char *s2 = strtok(NULL,
""); /* returns
&buf[
1]! */
70 so configure will still report strtok() as not being found.
72 ><i>SCENARIO
1. IRC Services was already started with no database files
73 </I>><i>present, so that it created blank files. Services is gracefully shut down
74 </I>><i>with SIGTERM (leaving new db files behind), and then restarted. It
75 </I>><i>segmentation faults and dumps core.
77 ><i>#
0 0x0003b380 in load_one_serverstats (f=
0x25e468) at version4.c:
2163
78 </I>><i>2163 SAFE(read_int32(
&tmp32, f)); /* t_quit */
80 It shouldn't be possible to get a segfault here unless your memory is
83 Can you send me (privately) both of your database sets, so that I can
87 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org
</A>
88 <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
95 <LI>Previous message:
<A HREF=
"003854.html">[IRCServices] Compiling and Crashing on boot under Solaris
9
97 <LI>Next message:
<A HREF=
"003856.html">[IRCServices] OPERSERV EXCEPTION add BUG/PROBLEM
99 <LI> <B>Messages sorted by:
</B>
100 <a href=
"date.html#3855">[ date ]
</a>
101 <a href=
"thread.html#3855">[ thread ]
</a>
102 <a href=
"subject.html#3855">[ subject ]
</a>
103 <a href=
"author.html#3855">[ author ]
</a>