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.
|