Hi, To avoid that issues, the modules are distributed together with OpenCA itself. You should try using those versions instead. Try updating your expat to a v2.+. The XML-Parser should be fine. Try to uninstall the perl-XML-Twig.
Cheers, MAx On 08/09/2011 09:50 AM, kbag wrote:
The segfault is caused by the parsefile method of XML::Twig, indeed. As described in http://mail.libexpat.org/pipermail/expat-bugs/2009-November/002849.html I created a test XML-Twig.pl file that uses the method parsefile to parse a simple XML document and reproduced the problem. My versions of the relative packages are: expat-1.95.8-8.3.el5_5.3 expat-devel-1.95.8-8.3.el5_5.3 perl-5.8.8-32.el5_6.3 perl-DBI-1.52 perl-DBD-Pg-1.49 perl-XML-Parser-2.34 perl-XML-Twig-3.26 Should I use different versions or some patch?? kbag wrote:Thank you for your answer Max, I tried using /bin/bash instead of /bin/sh but the segfault is still thrown. I found out the line of bin/openca-configure that causes the problem (it is the one highlighted below): ## load and translate file my @stat = stat $ARGV[1]; my $file = $tools->getFile($ARGV[1], "utf8"); ## "utf8" without "-" is essential here (perldoc Encode) if (not $file) { print "Error: ".$OpenCA::TRIStateCGI::errno."\n"; print "Message: ".$OpenCA::TRIStateCGI::errval."\n"; exit 0; } where $ARGV = ('/usr/local/openCA/etc/openca/config.xml', './openca_stop.template', './openca_stop') I tried to use openca-base-1.1.0 since with openca-base-1.1.1 I had some compilation issues. This time everything went fine with compilation and installation but when I try to generate the configuration files I face the same problem again. Thank you again for your suggestion. Cheers, Katerina Massimiliano Pala-7 wrote:Hello, This is a very strange error.. it seems like it is tied to some XML parsing issue.. which should not happened :D It seems like you have a problem with the shell.. you can try doing the following. In the top part of the script, change /bin/sh into /bin/bash and see if this solves the problem... the line of the segfault is a simple "do" so.. I have no clue about what the real issue is there.. Cheers, Max On 08/05/2011 12:38 AM, kbag wrote:Hello everyone, I am new to openCA and linux. I have tried to install openCA-base-1.1.1 from sources on CentOS 5.5. During the configuration of the sources to be installed I chose as prefix the directory /usr/local/openCA I have installed all the prerequisite modules and programs (perl and perl modules,mod_ssl etc) and generally I followed the instructions of the guide "Open Source PKI with OpenCA". I have reached the point where I run ./configure_etc.sh The result is the following: ================================================================= fixing directory: /usr/local/openCA/etc/openca ================================================================= -------------begin file----------------- template: ./openca_stop.template target: ./openca_stop UPDATE => 1 status: To be updated ./configure_etc.sh: line 45: 13428 Segmentation fault ${exec_prefix}/bin/openca-configure /usr/local/openCA/etc/openca/config.xml $H $H_RESULT As you can see I get a Segmentation fault after the openca_stop.template. Why do I get this fault? Is this a bug?? Could someone help me with this a bit?? Thanks very much in advance.-- http://member.acm.org/~openca/ Massimiliano Pala, Ph.D. Director, OpenCA Labs Professor, NYU Poly ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos& much more. Register early& save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Openca-Users mailing list Openca-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openca-users
-- http://member.acm.org/~openca/ Massimiliano Pala, Ph.D. Director, OpenCA Labs Professor, NYU Poly
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________ Openca-Users mailing list Openca-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openca-users