From: Doug Barton on
Testing it again I see that I didn't go far enough up to find the real
error, sorry Dirk.

The actual problem seems to be with zlib.h. This is from qt4-gui:


c++ -c -pipe -g -g -g -I../../include/Qt -I../../include -D_REENTRANT
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g
-fvisibility=hidden -fvisibility-inlines-hidden -Wall -W
-I/usr/local/include -I/usr/local/include/freetype2 -fPIC -DQT_SHARED
-DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_HAVE_MMX
-DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP
-DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60
-DQ_INTERNAL_QAPP_SRC -DQT_CORE_LIB -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
-I../../include/QtCore -I../../include -I../../include/QtGui
-I.rcc/debug-shared -I../3rdparty/xorg -I/usr/local/include/freetype2
-I../3rdparty/harfbuzz/src -Idialogs -I.moc/debug-shared
-I/usr/local/include -I.uic/debug-shared -I/usr/local/include -o
..obj/debug-shared/qxpmhandler.o image/qxpmhandler.cpp
c++ -c -pipe -g -g -g -I../../include/Qt -I../../include -D_REENTRANT
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g
-fvisibility=hidden -fvisibility-inlines-hidden -Wall -W
-I/usr/local/include -I/usr/local/include/freetype2 -fPIC -DQT_SHARED
-DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_HAVE_MMX
-DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP
-DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60
-DQ_INTERNAL_QAPP_SRC -DQT_CORE_LIB -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
-I../../include/QtCore -I../../include -I../../include/QtGui
-I.rcc/debug-shared -I../3rdparty/xorg -I/usr/local/include/freetype2
-I../3rdparty/harfbuzz/src -Idialogs -I.moc/debug-shared
-I/usr/local/include -I.uic/debug-shared -I/usr/local/include -o
..obj/debug-shared/qpnghandler.o image/qpnghandler.cpp
In file included from /usr/local/include/png.h:391,
from image/qpnghandler.cpp:53:
/usr/include/zlib.h:1561: error: 'off64_t' does not name a type
/usr/include/zlib.h:1562: error: 'off64_t' does not name a type
/usr/include/zlib.h:1563: error: 'off64_t' does not name a type
/usr/include/zlib.h:1564: error: 'off64_t' has not been declared
/usr/include/zlib.h:1565: error: 'off64_t' has not been declared

And when I tried to rebuild all qt4 stuff from scratch, I get this from
qmake:

c++ -c -pipe -g -g -g -g -fPIC -Wall -W -DQT_BOOTSTRAPPED
-DQT_LITE_UNICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII
-DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY
-DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM
-DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
-I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. -I../../../include
-I../../../include/QtCore -I../../../include/QtXml -I/usr/local/include
-o .obj/debug-static/qbytearray.o ../../corelib/tools/qbytearray.cpp
In file included from ../../corelib/tools/qbytearray.cpp:54:
/usr/include/zlib.h:1561: error: 'off64_t' does not name a type
/usr/include/zlib.h:1562: error: 'off64_t' does not name a type
/usr/include/zlib.h:1563: error: 'off64_t' does not name a type
/usr/include/zlib.h:1564: error: 'off64_t' has not been declared
/usr/include/zlib.h:1565: error: 'off64_t' has not been declared
*** Error code 1

Stop in
/usr/local/tmp/usr/local/ports/devel/qt4-moc/work/qt-everywhere-opensource-src-4.6.1/src/tools/bootstrap.
*** Error code 1
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Xin LI on
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2010/03/30 12:22, Doug Barton wrote:
> Testing it again I see that I didn't go far enough up to find the real
> error, sorry Dirk.
>
> The actual problem seems to be with zlib.h. This is from qt4-gui:
[...]
> -DQ_INTERNAL_QAPP_SRC -DQT_CORE_LIB -D_LARGEFILE64_SOURCE
> -D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.

There are some discussion about these _LARGEFILE64_SOURCE usage on zlib
developers' mailing list.

To put it short, it's now believed that the usage of _LARGEFILE64_SOURCE
on FreeBSD is wrong. I'm not quite sure though, if I should use some
workaround over this, like Mac OS X did (newer zlib has a similar change
by requiring _LFS64_SOURCE):

Index: zconf.h
===================================================================
- --- zconf.h (revision 205883)
+++ zconf.h (working copy)
@@ -375,7 +375,7 @@
# endif
#endif

- -#ifdef _LARGEFILE64_SOURCE
+#if defined(_LARGEFILE64_SOURCE) && !defined(__FreeBSD__)
# include <sys/types.h>
#endif

Index: zlib.h
===================================================================
- --- zlib.h (revision 205883)
+++ zlib.h (working copy)
@@ -1556,7 +1556,7 @@
inflateBackInit_((strm), (windowBits), (window), \
ZLIB_VERSION, sizeof(z_stream))

- -#ifdef _LARGEFILE64_SOURCE
+#if defined(_LARGEFILE64_SOURCE) && !defined(__FreeBSD__)
ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int));
ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile));

Cheers,
- --
Xin LI <delphij(a)delphij.net> http://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBAgAGBQJLslHRAAoJEATO+BI/yjfBXOUIAKW6UkjU8JGw2CQyNWVhqxXg
dz1OKJVk5iS1abpPANZPPWRnl/XK2MiDIVdkc5HQCCbFIuodR4nWlbZN21yGMJvf
DZX3L15nhXE7LSMLxOgrfzqlgIRxnu6P/7mjlZq/y/TERrpHh48lN7HcHfRrWZd4
H/dFdSQbL81T7/LGPmrHOsR9uXPOmlaa1hUMCgJhNl2S6AahfyfcEj5hQeCBXqHd
ms9gORkFuMb9LStS3kaTSpb6/D81ci+WbGpHozIA1zGyTazyj9AJjFkYHhC9VZLF
9kSGF3yuD95pGHrOrZJQSyTNBMtWFAoLm1qMMZu+D8b1vpP3AnVdSGVhTR8QrM8=
=vFcJ
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Doug Barton on
I can't comment intelligently on whether or not the fix below is
"correct," but with it, qt4-qmake compiles. I'll move on to try
recompiling the rest of qt4.


Doug


On 03/30/10 12:32, Xin LI wrote:
> On 2010/03/30 12:22, Doug Barton wrote:
>> Testing it again I see that I didn't go far enough up to find the real
>> error, sorry Dirk.
>
>> The actual problem seems to be with zlib.h. This is from qt4-gui:
> [...]
>> -DQ_INTERNAL_QAPP_SRC -DQT_CORE_LIB -D_LARGEFILE64_SOURCE
>> -D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
>
> There are some discussion about these _LARGEFILE64_SOURCE usage on zlib
> developers' mailing list.
>
> To put it short, it's now believed that the usage of _LARGEFILE64_SOURCE
> on FreeBSD is wrong. I'm not quite sure though, if I should use some
> workaround over this, like Mac OS X did (newer zlib has a similar change
> by requiring _LFS64_SOURCE):
>
> Index: zconf.h
> ===================================================================
> --- zconf.h (revision 205883)
> +++ zconf.h (working copy)
> @@ -375,7 +375,7 @@
> # endif
> #endif
>
> -#ifdef _LARGEFILE64_SOURCE
> +#if defined(_LARGEFILE64_SOURCE) && !defined(__FreeBSD__)
> # include <sys/types.h>
> #endif
>
> Index: zlib.h
> ===================================================================
> --- zlib.h (revision 205883)
> +++ zlib.h (working copy)
> @@ -1556,7 +1556,7 @@
> inflateBackInit_((strm), (windowBits), (window), \
> ZLIB_VERSION, sizeof(z_stream))
>
> -#ifdef _LARGEFILE64_SOURCE
> +#if defined(_LARGEFILE64_SOURCE) && !defined(__FreeBSD__)
> ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
> ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int));
> ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile));
>
> Cheers,

--

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover! http://SupersetSolutions.com/

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Gary Jennejohn on
On Tue, 30 Mar 2010 12:32:33 -0700
Xin LI <delphij(a)delphij.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2010/03/30 12:22, Doug Barton wrote:
> > Testing it again I see that I didn't go far enough up to find the real
> > error, sorry Dirk.
> >
> > The actual problem seems to be with zlib.h. This is from qt4-gui:
> [...]
> > -DQ_INTERNAL_QAPP_SRC -DQT_CORE_LIB -D_LARGEFILE64_SOURCE
> > -D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
>
> There are some discussion about these _LARGEFILE64_SOURCE usage on zlib
> developers' mailing list.
>
> To put it short, it's now believed that the usage of _LARGEFILE64_SOURCE
> on FreeBSD is wrong. I'm not quite sure though, if I should use some
> workaround over this, like Mac OS X did (newer zlib has a similar change
> by requiring _LFS64_SOURCE):
>
> Index: zconf.h
> ===================================================================
> - --- zconf.h (revision 205883)
> +++ zconf.h (working copy)
> @@ -375,7 +375,7 @@
> # endif
> #endif
>
> - -#ifdef _LARGEFILE64_SOURCE
> +#if defined(_LARGEFILE64_SOURCE) && !defined(__FreeBSD__)
> # include <sys/types.h>
> #endif
>
> Index: zlib.h
> ===================================================================
> - --- zlib.h (revision 205883)
> +++ zlib.h (working copy)
> @@ -1556,7 +1556,7 @@
> inflateBackInit_((strm), (windowBits), (window), \
> ZLIB_VERSION, sizeof(z_stream))
>
> - -#ifdef _LARGEFILE64_SOURCE
> +#if defined(_LARGEFILE64_SOURCE) && !defined(__FreeBSD__)
> ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
> ZEXTERN off64_t ZEXPORT gzseek64 OF((gzFile, off64_t, int));
> ZEXTERN off64_t ZEXPORT gztell64 OF((gzFile));
>

This patch also fixes the build for vlc.

--
Gary Jennejohn
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

 | 
Pages: 1
Prev: Old ports bugs analyzis
Next: opennms port