binary package cannot be linked to, locally-rebuilt version works
Bug #193372 reported by
Václav Šmilauer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libqglviewer (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
A mini-program to test presence of this lib on the system fails: the linker gives errors about unresolved vtables and such (can attach log if requested, would have to overwrite the local version).
However, after doing
apt-get source libqglviewer
cd libqglviewer-
fakeroot debian/rules binary
cd ..
dpkg -i libqglviewer*.deb
everything works fine. (The binaries in ubuntu probably need to be rebuilt with the current toolchain?)
Regards, Vaclav
current hardy on amd64 (had the same issue on i386 however).
To post a comment you must log in.
Ping... To be precise, this is the test program:
#include "QGLViewer/ qglviewer. h"
int main(){
QGLViewer(1);
return 0;
}
When compiling:
vaclav@falx:/tmp$ g++ qglviewer2-test.cc -lqglviewer -I/usr/ share/qt3/ include -o qglviewer2-test test.cc: (.text+ 0x1d4): undefined reference to `QGLViewer: :~QGLViewer( )' :QGLViewer( QGLFormat const&, QWidget*, char const*, QGLWidget const*, unsigned int)': test.cc: (.text. _ZN9QGLViewerC1 ERK9QGLFormatP7 QWidgetPKcPK9QG LWidgetj[ QGLViewer: :QGLViewer( QGLFormat const&, QWidget*, char const*, QGLWidget const*, unsigned int)]+0x4d): undefined reference to `vtable for QGLViewer' test.cc: (.text. _ZN9QGLViewerC1 ERK9QGLFormatP7 QWidgetPKcPK9QG LWidgetj[ QGLViewer: :QGLViewer( QGLFormat const&, QWidget*, char const*, QGLWidget const*, unsigned int)]+0x59): undefined reference to `vtable for QGLViewer' test.cc: (.text. _ZN9QGLViewerC1 ERK9QGLFormatP7 QWidgetPKcPK9QG LWidgetj[ QGLViewer: :QGLViewer( QGLFormat const&, QWidget*, char const*, QGLWidget const*, unsigned int)]+0x1a4): undefined reference to `QGLViewer: :defaultConstru ctor()'
/tmp/ccDbd9AJ.o: In function `main':
qglviewer2-
/tmp/ccDbd9AJ.o: In function `QGLViewer:
qglviewer2-
qglviewer2-
qglviewer2-
collect2: ld returned 1 exit status
I can provide more info as needed. Please recompile that, as sais, it fixes this thing.