[AGENT++] build agent++ on tru64/cxx
Jochen Katz
katz at agentpp.com
Thu Sep 15 12:47:24 CEST 2005
Hi,
there are some includes wrong. Apply the attached patch to agent++.
Regards,
Jochen
> Some error messages displayed while building agent++ on tru64 using cxx:
>
> rm -f mib.o
> cxx -g -pthread -D_DEBUG -c -o
> mib.o -I../include -I../../snmp++/include -I/usr/users/dcg/local/include/g++
> -v3 mib.cpp
> cxx: Warning: ../../snmp++/include/snmp_pp/uxsnmp.h, line 372: integer
> conversion resulted in truncation
> const int fd = INVALID_SOCKET);
> --------------------------------------^
> cxx: Warning: ../../snmp++/include/snmp_pp/uxsnmp.h, line 601: integer
> conversion resulted in truncation
> int fd = INVALID_SOCKET);
> ----------------------------^
> cxx: Warning: ../include/agent_pp/List.h, line 1075: delete of pointer to
> incomplete class
> detected during instantiation of
> "void Array<T>::clearAll() [with T=TaskManager]" at line
> 505 of "../include/agent_pp/threads.h"
> delete content[i];
> -------------------------------^
> cxx: Warning: ../include/agent_pp/List.h, line 1203: delete of pointer to
> incomplete class
> detected during instantiation of
> "T *Array<T>::overwriteNth(int, T *) [with
> T=TaskManager]"
> at line 505 of "../include/agent_pp/threads.h"
> if (content[n]) delete content[n];
> ---------------------------------------^
> cxx: Warning: ../include/agent_pp/List.h, line 1224: delete of pointer to
> incomplete class
> detected during instantiation of
> "int Array<T>::trim(int) [with T=TaskManager]" at line
> 505
> of "../include/agent_pp/threads.h"
> if (t) delete t;
> --------------------------------------^
> cxx: Error: ../include/agent_pp/List.h, line 1261: pointer to incomplete
> class type is not allowed
> detected during instantiation of
> "Array<T> *Array<T>::clone() [with T=TaskManager]" at
> line
> 505 of "../include/agent_pp/threads.h"
> r->content[i] = (T*)content[i]->clone();
> --------------------------------------------^
> cxx: Error: ../include/agent_pp/List.h, line 1273: pointer to incomplete
> class type is not allowed
> detected during instantiation of "Array<T>
> &Array<T>::operator=(const Array<T> &) [with
> T=TaskManager]" at line 505 of
> "../include/agent_pp/threads.h"
> content[i] = (T*)o.content[i]->clone();
> -----------------------------------------^
> cxx: Warning: ../include/agent_pp/List.h, line 300: delete of pointer to
> incomplete class
> detected during instantiation of
> "void List<T>::clearAll() [with T=MibEntry]" at line 138
> of "../include/agent_pp/mib_entry.h"
> delete tmp->item;
> -------------------------------^
> cxx: Warning: ../include/agent_pp/List.h, line 482: delete of pointer to
> incomplete class
> detected during instantiation of
> "T *List<T>::overwriteNth(int, T *) [with T=MibEntry]"
> at
> line 138 of "../include/agent_pp/mib_entry.h"
> delete p->item;
> -----------------------------------------------^
> cxx: Warning: ../include/agent_pp/List.h, line 501: delete of pointer to
> incomplete class
> detected during instantiation of
> "int List<T>::trim(int) [with T=MibEntry]" at line 138
> of
> "../include/agent_pp/mib_entry.h"
> delete t;
> -------------------------------^
> cxx: Warning: ../include/agent_pp/List.h, line 300: delete of pointer to
> incomplete class
> detected during instantiation of
> "void List<T>::clearAll() [with T=MibTable]" at line
> 1216
> of "../include/agent_pp/mib.h"
> delete tmp->item;
> -------------------------------^
> cxx: Warning: ../include/agent_pp/List.h, line 482: delete of pointer to
> incomplete class
> detected during instantiation of
> "T *List<T>::overwriteNth(int, T *) [with T=MibTable]"
> at
> line 1216 of "../include/agent_pp/mib.h"
> delete p->item;
> -----------------------------------------------^
> cxx: Warning: ../include/agent_pp/List.h, line 501: delete of pointer to
> incomplete class
> detected during instantiation of
> "int List<T>::trim(int) [with T=MibTable]" at line 1216
> of
> "../include/agent_pp/mib.h"
> delete t;
> -------------------------------^
> cxx: Info: 2 errors detected in the compilation of "mib.cpp".
>
>
> If I delete some code in threads.h around line 505:
> < #if !defined (AGENTPP_DECL_TEMPL_ARRAY_TASKMANAGER)
> < #define AGENTPP_DECL_TEMPL_ARRAY_TASKMANAGER
> < AGENTPP_DECL_TEMPL template class AGENTPP_DECL Array<TaskManager>;
> < #endif
> the file could pass compile process. Other files also encounter such
> probolem.
> Is there anything should I do to get the correct result?
>
> Best Regards,
> Moore
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: includes.txt
Url: http://lists.agentpp.org/pipermail/agentpp/attachments/20050915/65b360db/attachment.txt
More information about the AGENTPP
mailing list