[MacPorts] #25092: gcc finds wrong config.h when building pidgin @2.7.0_0
MacPorts
noreply at macports.org
Tue Jun 1 07:54:51 PDT 2010
#25092: gcc finds wrong config.h when building pidgin @2.7.0_0
--------------------------------+-------------------------------------------
Reporter: stephen@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.99
Keywords: | Port: pidgin
--------------------------------+-------------------------------------------
{{{
Mac OS X 10.5.8
MacBook Pro (Intel Core Duo)
port and ports from svn
pidgin @2.7.0_0
}}}
The build barfs with
{{{
/bin/sh ../../../libtool --silent --tag=CC --mode=compile
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I../../.. -I../../..
-I../../../libpurple -I../../../libpurple
-DLIBDIR=\"/opt/local/lib/purple-2\" -Wall -DPURPLE_DISABLE_DEPRECATED
-DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED
-DGNT_DISABLE_DEPRECATED -D_REENTRANT -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include -fno-common
-DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing
-pipe -I/usr/local/include -I/opt/local/include
-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE -I/opt/local/include -no-
cpp-precomp -g -O2 -arch i386 -MT perl-common.lo -MD -MP -MF .deps/perl-
common.Tpo -c -o perl-common.lo perl-common.c
In file included from perl-common.h:19,
from perl-common.c:4:
../../../libpurple/internal.h:150:2: error: #error Unknown size of time_t
make: *** [perl-common.lo] Error 1
}}}
This is due to the build finding this config.h
{{{
wideload:plugins/perl 23:04$ sudo make perl-common.lo 2>&1 | grep config.h
..... /opt/local/lib/glib-2.0/include/glibconfig.h
... /opt/local/lib/perl5/5.8.9/darwin-2level/CORE/config.h
}}}
instead of pidgin's.
(To get that output, I hacked the Makefile to put -H in LTCOMPILE. Then
some more hacking put -include $(CONFIG_HEADER) in that command to get a
build ... so I don't have main.log etc any more.) I have no clue why gcc
finds the wrong include file, the compile command given above looks OK to
me. I also don't know if pidgin actaully works yet. :-)
--
Ticket URL: <http://trac.macports.org/ticket/25092>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list