Hi Daniel.<br>
<br>
First, I have to apologize because I made you lost some time about this issue.<br>
<br>
Following a recommendation of Jeffrey because something we detected
trying to diagnose the problem of snmpstat module, I recompiled and
instaled from scratch the whole componentes of my instalation: MySQL,
Libradiusclient and snmp; later Openser. <br>
At my previous test, I recompiled individual modules, or I used "non
clean" source directories, and, in the same way that happened with
snmpstats, I think that the error which was causing the segmentation
fault could be produced by an inconsistent linking on the compilation
process.<br>
<br>
At this time, I can confirm that Openser is working perfectly compiled
on Solaris SPARC hardware, on 64 bits, and using the recommended
optimizations for the package GCC for Sparc Systems.<br>
<br>
There were just a couple of things I had to have present at compilation time:<br>
<br>
1. I included within my Solaris installation the Freeware packages,
which include libxml. So, for the compilation, I had to include in
CFLAGS the directory of includes (/usr/sfw/include) and in LDFLAGS the
libraries directory (/usr/sfw/lib/sparcv). Would it be possible to
include within makefiles this path as a possible header/libraries
search path, on Solaris Platforms?<br>
<br>
2. I commented out the -Wcast-align option, avoiding a bunch of warnings about cast alignment.<br>
<br>
If you consider it worth, I can publish some lines about these
optimizations. For the results of my performance tests, I found an
improvement of Openser behaviour when compiled using this optimized
version of GCC.<br>
<br>
Again, I apologize for my mistake.<br>
<br>
Thank you Daniel, and thanks to Jeffrey by his guidance.<br>
<br>
Kind regards.<br>
<br>
Sergio Gutiérrez.<br>
<br>
<br><br><div><span class="gmail_quote">On 3/30/07, <b class="gmail_sendername">Daniel-Constantin Mierla</b> <<a href="mailto:daniel@voice-system.ro">daniel@voice-system.ro</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Sergio,<br><br>very strange that the column type gets DB_INT. Could you apply attached<br>patch (just prints the type of mysql field), compile and install<br>openser, run in debug=7 and send to me the log.<br><br>I would need the version of mysql client library you have installed to
<br>match the value printed in log.<br><br>Thanks,<br>Daniel<br><br>On 03/30/07 19:59, Sergio Gutierrez wrote:<br>> Hi Daniel.<br>><br>> There it goes:<br>><br>> mysql> desc location;<br>> +---------------+------------------+------+-----+---------------------+----------------+
<br>>
| Field |
Type
| Null | Key | Default<br>> | Extra |<br>> +---------------+------------------+------+-----+---------------------+----------------+<br>>
|
id |
int(10) unsigned | NO | PRI | NULL<br>> | auto_increment |<br>> | username | varchar(64) | NO | MUL |<br>> | |<br>>
| domain |
varchar(128) | NO
| |<br>> | |<br>>
| contact |
varchar(255) | NO
| |<br>> | |<br>>
| received |
varchar(255) |
YES | | NULL<br>> | |<br>>
| path |
varchar(255) |
YES | | NULL<br>> | |<br>>
| expires |
datetime |
NO | | 2020-05-28 21:32:15<br>> | |<br>>
|
q
| float(10,2) | NO
| | 1.00<br>> | |<br>>
| callid |
varchar(255) | NO
| | Default-Call-ID<br>> | |<br>>
| cseq |
int(11) |
NO | | 13<br>> | |<br>>
| last_modified |
datetime |
NO | | 1900-01-01 00:00:00<br>> | |<br>>
| flags |
int(11) |
NO | | 0<br>> | |<br>>
| cflags |
int(11) |
NO | | 0<br>> | |<br>> | user_agent | varchar(255) | NO | |<br>> | |<br>>
| socket |
varchar(128) |
YES | | NULL<br>> | |<br>>
| methods |
int(11) |
YES | | NULL<br>> | |<br>> +---------------+------------------+------+-----+---------------------+----------------+<br>><br>><br>> | location | CREATE TABLE `location` (<br>> `id` int(10) unsigned NOT NULL auto_increment,
<br>> `username` varchar(64) NOT NULL default '',<br>> `domain` varchar(128) NOT NULL default '',<br>> `contact` varchar(255) NOT NULL default '',<br>> `received` varchar(255) default NULL,
<br>> `path` varchar(255) default NULL,<br>> `expires` datetime NOT NULL default '2020-05-28 21:32:15',<br>> `q` float(10,2) NOT NULL default '1.00',<br>> `callid` varchar(255) NOT NULL default 'Default-Call-ID',
<br>> `cseq` int(11) NOT NULL default '13',<br>> `last_modified` datetime NOT NULL default '1900-01-01 00:00:00',<br>> `flags` int(11) NOT NULL default '0',<br>> `cflags` int(11) NOT NULL default '0',
<br>> `user_agent` varchar(255) NOT NULL default '',<br>> `socket` varchar(128) default NULL,<br>> `methods` int(11) default NULL,<br>> PRIMARY KEY (`id`),<br>> KEY `udc_loc` (`username`,`domain`,`contact`)
<br>> ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1 |<br>><br>><br>> mysql> select * from location;<br>> +----+----------+--------+---------------------------------+----------+------+---------------------+-------+-------------------------------------------+------+---------------------+-------+--------+--------------------------------------------+--------------------------+---------+
<br>><br>>
| id | username | domain |
contact
| received<br>> | path | expires | q |<br>>
callid |
cseq | last_modified<br>> | flags | cflags |
user_agent
|<br>>
socket
| methods |<br>> +----+----------+--------+---------------------------------+----------+------+---------------------+-------+-------------------------------------------+------+---------------------+-------+--------+--------------------------------------------+--------------------------+---------+
<br>><br>> | 13 | 3950031 | | sip:3950031@192.168.198.10:5060 | NULL<br>> | NULL | 2007-03-27 00:46:08 | -1.00 |<br>> <a href="mailto:5e897d38-ce5af712-6f3a7b51@192.168.198.10">5e897d38-ce5af712-6f3a7b51@192.168.198.10
</a><br>> <mailto:<a href="mailto:5e897d38-ce5af712-6f3a7b51@192.168.198.10">5e897d38-ce5af712-6f3a7b51@192.168.198.10</a>> | 75 | 2007-03-27<br>> 00:45:08 | 0 | 0 | PolycomSoundPointIP-SPIP_300-UA/1.6.5.0043
<br>> | udp:<a href="http://192.168.199.200:5060">192.168.199.200:5060</a> <<a href="http://192.168.199.200:5060">http://192.168.199.200:5060</a>> | 8063 |<br>> +----+----------+--------+---------------------------------+----------+------+---------------------+-------+-------------------------------------------+------+---------------------+-------+--------+--------------------------------------------+--------------------------+---------+
<br>><br>><br>> The last information is the record I have stored.<br>><br>><br>> Kind regards.<br>><br><br></blockquote></div><br>