pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: build failure in editors/lyx15 (pkgsrc-2008Q2)
On Tue 29 Jul 2008 at 14:47:01 -0500, Jeremy C. Reed wrote:
> > ** qt 4 library not found !
>
> Is there a config.log file you can look at to see the exact error that
> caused this? (Start from the bottom.)
The error text originates from these bits in configure:
if test -z "$QT4_LIB"; then
lyx_error_txt="$lyx_error_txt
** qt 4 library not found !
"
I see suspicious empty values here in config.log:
QT4DIR=''
QT4_CORE_CFLAGS=''
QT4_CORE_INCLUDES='-I/usr/pkg/qt4/include -I/usr/pkg/qt4/include/QtCore'
QT4_CORE_LDFLAGS='-L/usr/pkg/qt4/lib'
QT4_CORE_LIB='-lQtCore'
QT4_CORE_LIBS=''
QT4_CPPFLAGS='-DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL
-DQT_NO_KEYWORDS'
QT4_FRONTEND_CFLAGS=''
QT4_FRONTEND_LIBS=''
QT4_INCLUDES='-I/usr/pkg/qt4/include -I/usr/pkg/qt4/include/Qt
-I/usr/pkg/qt4/include/QtCore -I/usr/pkg/qt4/include/QtGui'
QT4_LDFLAGS='-L/usr/pkg/qt4/lib'
QT4_LIB=''
QT4_VERSION=''
especially QT4_LIB.
I think these lines point to where the error occurs:
configure:25434: checking for Qt 4 library name
configure:25483: c++ -o conftest -O2 -I/usr/pkg/include
-I/usr/pkg/include/python2.4 -I/usr/include -I/usr/pkg/qt4/include
-I/usr/pkg/include/freetype2 -I/usr/X11R6/include -I/usr/pkg/qt4/include
-I/usr/pkg/qt4/include/Qt -I/usr/pkg/qt4/include/QtCore
-I/usr/pkg/qt4/include/QtGui -L/usr/pkg/qt4/lib -I/usr/pkg/include
-I/usr/pkg/include/python2.4 -I/usr/include -I/usr/pkg/qt4/include
-I/usr/pkg/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include
-L/usr/pkg/lib -L/usr/pkg/lib/python2.4/config
-Wl,-R/usr/pkg/lib/python2.4/config -L/usr/lib -Wl,-R/usr/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib -L/usr/X11R6/lib
-Wl,-R/usr/X11R6/lib conftest.cpp -lSM -lICE -lm -lz -L/usr/X11R6/lib
-R/usr/X11R6/lib -lX11 -lQtCore >&5
configure:25489: $? = 0
configure:25548: c++ -o conftest -O2 -I/usr/pkg/include
-I/usr/pkg/include/python2.4 -I/usr/include -I/usr/pkg/qt4/include
-I/usr/pkg/include/freetype2 -I/usr/X11R6/include -I/usr/pkg/qt4/include
-I/usr/pkg/qt4/include/Qt -I/usr/pkg/qt4/include/QtCore
-I/usr/pkg/qt4/include/QtGui -L/usr/pkg/qt4/lib -I/usr/pkg/include
-I/usr/pkg/include/python2.4 -I/usr/include -I/usr/pkg/qt4/include
-I/usr/pkg/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include
-L/usr/pkg/lib -L/usr/pkg/lib/python2.4/config
-Wl,-R/usr/pkg/lib/python2.4/config -L/usr/lib -Wl,-R/usr/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib -L/usr/X11R6/lib
-Wl,-R/usr/X11R6/lib conftest.cpp -lSM -lICE -lm -lz -L/usr/X11R6/lib
-R/usr/X11R6/lib -lX11 -lQtCore -lQtGui >&5
/usr/pkg/qt4/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace'
configure:25554: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "LyX"
| #define PACKAGE_TARNAME "lyx"
| #define PACKAGE_VERSION "1.5.4"
| #define PACKAGE_STRING "LyX 1.5.4"
| #define PACKAGE_BUGREPORT "lyx-devel%lists.lyx.org@localhost"
| #define USE_POSIX_PACKAGING 1
| #define PACKAGE "lyx"
| #define HAVE_KPSEWHICH 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STD_COUNT 1
| #define HAVE_OSTREAM 1
| #define HAVE_ISTREAM 1
| #define HAVE_SSTREAM 1
| #define HAVE_LOCALE 1
| #define HAVE_LIMITS 1
| #define HAVE_IOS 1
| #define MODERN_STL_STREAMS 1
| #define HAVE_LIBM 1
| #define HAVE_LIBAIKSAURUS 1
| #define AIKSAURUS_H_LOCATION <Aiksaurus/Aiksaurus.h>
| #define SIZEOF_WCHAR_T 4
| #define HAVE_DLFCN_H 1
| #define HAVE_ICONV 1
| #define ICONV_CONST const
| #define HAVE_ZLIB_H 1
| /* end confdefs.h. */
|
| #include <qglobal.h>
| #include <qstring.h>
|
| int
| main ()
| {
|
| QString s("mangle_failure");
| #if (QT_VERSION < 400)
| break_me_(\\);
| #endif
|
| ;
| return 0;
| }
then
configure:25548: c++ -o conftest -O2 -I/usr/pkg/include
-I/usr/pkg/include/python2.4 -I/usr/include -I/usr/pkg/qt4/include
-I/usr/pkg/include/freetype2 -I/usr/X11R6/include -I/usr/pkg/qt4/include
-I/usr/pkg/qt4/include/Qt -I/usr/pkg/qt4/include/QtCore
-I/usr/pkg/qt4/include/QtGui -L/usr/pkg/qt4/lib -I/usr/pkg/include
-I/usr/pkg/include/python2.4 -I/usr/include -I/usr/pkg/qt4/include
-I/usr/pkg/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include
-L/usr/pkg/lib -L/usr/pkg/lib/python2.4/config
-Wl,-R/usr/pkg/lib/python2.4/config -L/usr/lib -Wl,-R/usr/lib
-Wl,-R/usr/pkg/lib -L/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib -L/usr/X11R6/lib
-Wl,-R/usr/X11R6/lib conftest.cpp -lSM -lICE -lm -lz -L/usr/X11R6/lib
-R/usr/X11R6/lib -lX11 -lQtCore4 -lQtGui4 >&5
ld: cannot find -lQtCore4
configure:25554: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "LyX"
| #define PACKAGE_TARNAME "lyx"
| #define PACKAGE_VERSION "1.5.4"
| #define PACKAGE_STRING "LyX 1.5.4"
| #define PACKAGE_BUGREPORT "lyx-devel%lists.lyx.org@localhost"
| #define USE_POSIX_PACKAGING 1
| #define PACKAGE "lyx"
| #define HAVE_KPSEWHICH 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STD_COUNT 1
| #define HAVE_OSTREAM 1
| #define HAVE_ISTREAM 1
| #define HAVE_SSTREAM 1
| #define HAVE_LOCALE 1
| #define HAVE_LIMITS 1
| #define HAVE_IOS 1
| #define MODERN_STL_STREAMS 1
| #define HAVE_LIBM 1
| #define HAVE_LIBAIKSAURUS 1
| #define AIKSAURUS_H_LOCATION <Aiksaurus/Aiksaurus.h>
| #define SIZEOF_WCHAR_T 4
| #define HAVE_DLFCN_H 1
| #define HAVE_ICONV 1
| #define ICONV_CONST const
| #define HAVE_ZLIB_H 1
| /* end confdefs.h. */
|
| #include <qglobal.h>
| #include <qstring.h>
|
| int
| main ()
| {
|
| QString s("mangle_failure");
| #if (QT_VERSION < 400)
| break_me_(\\);
| #endif
|
| ;
| return 0;
| }
configure:25582: result: failed
(so it tries 2 names for the Qt library, both fail with different
reason, the correct name fails spuriously)
corresponding to
checking for Qt 4 library name... failed
So what is FcFreeTypeQueryFace? According to its man page, it is from
VERSION
Fontconfig version 2.6.0
Does that point to a missing -Wl,-R entry for that Qt lib, or a missing
NEEDED entry? Not according to ldd:
pkg_comp:default.conf# ldd /usr/pkg/qt4/lib/libQtGui.so
/usr/pkg/qt4/lib/libQtGui.so:
-lz.1 => /usr/pkg/lib/libz.so.1
-lm.0 => /usr/lib/libm.so.0
-lpng12.0 => /usr/pkg/lib/libpng12.so.0
-lICE.6 => /usr/X11R6/lib/libICE.so.6
-lSM.6 => /usr/X11R6/lib/libSM.so.6
-lstdc++.6 => /usr/lib/libstdc++.so.6
-lgcc_s.1 => /usr/lib/libgcc_s.so.1
-lpthread.0 => /usr/lib/libpthread.so.0
-lQtCore.4 => /usr/pkg/qt4/lib/libQtCore.so.4
-lX11.6 => /usr/X11R6/lib/libX11.so.6
-lXext.6 => /usr/X11R6/lib/libXext.so.6
-lXi.6 => /usr/X11R6/lib/libXi.so.6
-lXrender.1 => /usr/pkg/lib/libXrender.so.1
-lXrandr.2 => /usr/pkg/lib/libXrandr.so.2
-lXfixes.0 => /usr/pkg/lib/libXfixes.so.0
-lXcursor.1 => /usr/pkg/lib/libXcursor.so.1
-lXinerama.1 => /usr/X11R6/lib/libXinerama.so.1
-lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
-lexpat.1 => /usr/pkg/lib/libexpat.so.1
-lfontconfig.1 => /usr/pkg/lib/libfontconfig.so.1
and
pkg_comp:default.conf# nm /usr/pkg/lib/libfontconfig.so.1 | grep FcFreeTypeQue>
000000000000e650 T FcFreeTypeQueryFace
000000000000e650 t IA__FcFreeTypeQueryFace
looks ok too.
So here I stay puzzled for a while.
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl -- Cetero censeo "authored" delendum esse.
Home |
Main Index |
Thread Index |
Old Index