Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21631 - opensp 1.5-r1 undefined unref
Summary: opensp 1.5-r1 undefined unref
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-24 15:35 UTC by Bernd Martin Wollny
Modified: 2003-06-05 06:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Martin Wollny 2003-05-24 15:35:15 UTC
Hello , 

in the class Ptr (include/Ptr.h Ptr.cxx) are the member funtction unref undefined. 

// Class defination 
----------------------------------------------------------------------
template<class T>
class Ptr {
public:
  Ptr() : ptr_(0) { }
  Ptr(T *ptr);
  ~Ptr();
  Ptr(const Ptr<T> &);
  Ptr<T> &operator=(const Ptr<T> &);
  Ptr<T> &operator=(T *);
  T *pointer() const { return ptr_; }
  T *operator->() const { return ptr_; }
  T &operator*() const { return *ptr_; }
  void swap(Ptr<T> &p) {
    T *tem = p.ptr_;
    p.ptr_ = ptr_;
    ptr_ = tem;
  }
  Boolean isNull() const { return ptr_ == 0; }
  // operator const void *() const { return ptr_; }
  void clear();
  Boolean operator==(const Ptr<T> &p) const {
    return ptr_ == p.ptr_;
  }
  Boolean operator!=(const Ptr<T> &p) const {
    return ptr_ != p.ptr_;
  }

// First usage ..................
template<class T>
Ptr<T>::~Ptr()
{
  if (ptr_) {
    if (ptr_->unref())
      delete ptr_;
    ptr_ = 0;
  }
}


it seemd that the base class are missing 

bye
  bernd
Comment 1 Andreas Wege 2003-05-27 07:55:39 UTC
Had the same problem. This seems to happen only with gcc 3.3:

http://sourceforge.net/tracker/index.php?func=detail&aid=742608&group_id=2115&atid=102115
Comment 2 Andreas Wege 2003-05-27 11:17:11 UTC
There is also a patch on the page:

http://sourceforge.net/tracker/index.php?func=detail&aid=742214&group_id=2115&atid=302115
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2003-06-02 05:48:11 UTC
thanks andreas

i'll look into putting this patch into portage shortly.
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2003-06-02 06:06:20 UTC
i've added the gcc 3.3 patch to opensp-1.5-r1 now. can the bug reporter please try and emerge it again?

thanks
Comment 5 Bernd Martin Wollny 2003-06-05 06:19:30 UTC
Hello, 

sorry for the delay, It seemd that the Problem are solved thank you 


bye
bernd
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2003-06-05 06:38:10 UTC
thanks for the confirmation