bugGChemPaint - Bugs: bug #15184, No vewsion ever compiled for same...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #15184: No vewsion ever compiled for same reason on fedora

Submitter:  None
Submitted:  Sun 11 Dec 2005 12:16:43 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  jean_brefort
Open/Closed:  Closed

Wed 27 Feb 2013 07:41:48 AM UTC, comment #2: 

Too ancient, closing.

Jean Bréfort <jean_brefort>
Group administrator
Sun 11 Dec 2005 08:42:59 AM UTC, comment #1: 

seems you also use glib from cvs. g_data_set_time is deprecated, so this code has to be changed. At the moment, the simplest fix is to remove G_DISABLE_DEPRECATED from the FLAGS.
I am not certain the crash is related to this, I cannot reproduce it even with tyour changes. If you coud provide a stack trace, it would be quite useful.

Jean Bréfort <jean_brefort>
Group administrator
Sun 11 Dec 2005 12:16:43 AM UTC, original submission:  


This is # uname -a
Linux kmberry.org 2.6.14-1.1749_FC5 #1 Thu Dec 8 18:29:22 EST 2005 i686 i686 i386 GNU/Linux

Output gcc-4.1.0-0.6:

document.cc: In constructor 'gcpDocument::gcpDocument(gcpApplication*, bool)':
document.cc:63: error: 'g_date_set_time' was not declared in this scope
document.cc: In member function 'xmlDoc* gcpDocument::BuildXMLTree()':
document.cc:638: error: 'g_date_set_time' was not declared in this scope
document.cc:639: error: 'g_date_set_time' was not declared in this scope
document.cc: In member function 'void gcpDocument::RemoveAtom(gcpAtom*)':
document.cc:703: warning: suggest parentheses around assignment used as truth value
document.cc: In member function 'void gcpDocument::RemoveFragment(gcpFragment*)':
document.cc:719: warning: suggest parentheses around assignment used as truth value
make: * [document.lo] Error 1


This function doesn't work:
g_date_set_time(&CreationDate, time(NULL));
Don't know about ths one:
g_date_clear(&RevisionDate,1);

I can comment out certain of  code which would be as follows:
//      g_date_set_time(&CreationDate, time(NULL));

        if (!g_date_valid (&CreationDate))
        //      g_date_set_time (&CreationDate, time (NULL));
//      g_date_set_time (&RevisionDate, time (NULL));
        gchar buf[64];
//      g_date_strftime (buf, sizeof (buf), "%m/%d/%Y", &CreationDate);
//      xmlNewProp (xml->children, (xmlChar*) "creation", (xmlChar*) buf);
//      g_date_strftime (buf, sizeof (buf), "%m/%d/%Y", &RevisionDate);
//      xmlNewProp (xml->children, (xmlChar*) "revision", (xmlChar*) buf);

I don't know what xmlNewProp and g_date_strftime have to do with it.

--then I get segfault:
[root@kmberry gchempaint]# gchempaint-unstable
Segmentation fault
[root@kmberry gchempaint]#

I am using cvs openbabel, goffice and chemical-mime-data.  I got ghemical cvs running with mopac7 cvs  and mpqc cvs so I think my openbabel cvs is good.

I know chemtool has a problem where it segfaults because an array dimension must be changed from 15 to 22 and it was originally thought to be a gcc bug but wasn't.  Even chemtool cvs has this problem.


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2013-02-27 jean_brefort Open/ClosedOpen Closed
2005-12-11 jean_brefort Assigned toNone jean_brefort
2005-12-11 jean_brefort StatusNone Need Info

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code