Menu

#4 compilation error on rh 7.3

open
nobody
None
5
2002-05-16
2002-05-16
No

I've tried compiling on under RH 7.3. I get the
following error:

/bin/sh ../libtool --silent --mode=compile g++
-DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde
-I/usr/lib/qt3-gcc2.96/include -I/usr/X11R6/include
-O2 -c pluginmgr.cpp
pluginmgr.cpp: In method `KLassieProvider
*KLassiePluginManager::loadProvider (ProviderInfo &,
KLassie *)':
pluginmgr.cpp:60: `lt_ptr_t' undeclared (first use this
function)
pluginmgr.cpp:60: (Each undeclared identifier is
reported only once for
each function it appears in.)
pluginmgr.cpp:60: parse error before `='
pluginmgr.cpp:61: `init_func' undeclared (first use
this function)

It seems that libtool is supposed to define lt_ptr_t,
but is not for some reason. In my libtool, I have:

#if defined (__STDC__) && __STDC__
# define lt_ptr_t void *
#else
# define lt_ptr_t char *
# define const
#endif

So, one would think that it should be defined as void
or char. I tried explicitly defining it as void in the
pluginmgr.cpp, and then get the following error:

/bin/sh ../libtool --silent --mode=compile g++
-DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde
-I/usr/lib/qt3-gcc2.96/include -I/usr/X11R6/include
-O2 -c klassieconfigbase.moc.cpp
klassieconfigbase.moc.cpp:30: no `void
KLassieConfigBase::initMetaObject ()' member function
declared in class
`KLassieConfigBase'
klassieconfigbase.moc.cpp: In method `void
KLassieConfigBase::initMetaObject ()':
klassieconfigbase.moc.cpp:34: `badSuperclassWarning'
undeclared (first
use this function)
klassieconfigbase.moc.cpp:34: (Each undeclared
identifier is reported
only once for each function it appears in.)
klassieconfigbase.moc.cpp: At top level:
klassieconfigbase.moc.cpp:41: prototype for `QString
KLassieConfigBase::tr (const char *)' does not match
any in class
`KLassieConfigBase'
klassieconfigbase.h:28: candidate is: static QString
KLassieConfigBase::tr (const char *, const char * = 0)
klassieconfigbase.moc.cpp: In function `QMetaObject
*KLassieConfigBase::staticMetaObject ()':
klassieconfigbase.moc.cpp:68: no matching function for
call to
`QMetaObject::new_metaobject (const char[18], const
char[8], int, int,
int, int, int, int, int, int, int, int)'
/usr/lib/qt3-gcc2.96/include/qmetaobject.h:199:
candidates are: static QMetaObject
*QMetaObject::new_metaobject (const char *, QMetaObject
*, const QMetaData *, int, const QMetaData *,
int, const QMetaProperty *, int, const QMetaEnum *,
int, const QClassInfo *, int)
klassieconfigbase.moc.cpp:69: no matching function for
call to
`QMetaObject::set_slot_access (QMetaData::Access *&)'

At this point, I don't know what to do.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB