Red Hat Bugzilla – Bug 16993
compiling QT fails with __res_state undef...
Last modified: 2008-05-01 11:37:58 EDT
to reproduduce, install pinstripe iso.
download QT source, do ./configure, then make.
It builds the libraries but on the first app
link it says...
-Wl,-rpath,/usr/X11R6/lib -o /grumpy/peter/src/kde_cvs/qt-copy/bin/uic
uic.o ../shared/widgetdatabase.o ../shared/domtool.o -lqutil -L../lib
-lqt -lXext -lX11 -lm -lSM -lICE -L/usr/X11R6/lib -lGLU -lGL -lXmu
/grumpy/peter/src/kde_cvs/qt-copy/lib/libqt.so: undefined reference to
collect2: ld returned 1 exit status
make: *** [/grumpy/peter/src/kde_cvs/qt-copy/bin/uic] Error 1
[peter@grumpy uic]$ pwd
[peter@grumpy qt-copy]$ nm /usr/lib/libresolv.so | grep res_stat
Is it a glibc thing?
I entered "pinstripe" as the version, initially, but that got changed into 4.2.
Suspect a problem in bigzilla.
oh... and it's the network/qdns.cpp module implicitly using __res_state.
The #includes look ok (the struct is defined in resolv.h, which looks like
it is included) Why is it saying it's a (void) ?
It was a bug in glibc's resolv.h header, fixed on 2000-08-09.