[gnuwin32 - Help] Problems building libtiff

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.windows.gnu.user
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=6617123
By: roboro

Hi,

I am trying to build libtiff from the GnuWin32 source package. I am using Bash
and Make from MSYS 1.0.10, and I have the current BinUtils and GCC from MinGW
5.1.4. I edited config.status to fix the glibc path for my machine and I ran
make. It failed compiling tif_unix.c.

In file included from ../../tiff-3.8.2-src/libtiff/tif_unix.c:97:
D:/Progra~1/GnuWin32/include/glibc/sys/mman.h:32: error: conflicting types for
'off_t'
d:/win32app/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/types.h:41:
error: previous declaration of 'off_t' was here

...

It appears that MinGW is not compatible with the large file support that is
enabled in the GnuWin32 libtiff source (off_t is a long in MinGW). I thought
that I could easily fix this by making sure that the HAVE_SYS_TYPES_H macro
was not defined. I commented out the two relevant lines in the config.status
script and ran it again. However, attempting to run make again resulted in the
exact same error as above. I looked at the tif_config.h file and verified that
HAVE_SYS_TYPES_H was not defined. I don't understand why sys/types.h is still
being pulled in from MinGW.

Any insights will be greatly appreciated. Thanks in advance.

Rob

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.