[MacPorts] #24541: gcc43 failed to compile because of typedef conflict
MacPorts
noreply at macports.org
Sun Apr 18 09:10:48 PDT 2010
#24541: gcc43 failed to compile because of typedef conflict
-----------------------------------+----------------------------------------
Reporter: rwilsont1@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.2
Keywords: gcc43 | Port:
-----------------------------------+----------------------------------------
As a result of trying to install py26-scipy @0.7.1 I need gcc43. The
compilation was failing because of a conflict between the type of
pointer_t in /usr/include/mach/vm_types.h and that in the module.c file.
I introduced the following change in module.c and the compilation
proceeded, but it is hard to be sure that it will work correctly. In the
end scipy.test() had 4 errors.:
{{{
#define P_UNKNOWN 0
#define P_OTHER 1
#define P_NAMESPACE 2
#define P_COMPONENT 3
#define P_SYMBOL 4
#if 0
typedef enum
{
P_UNKNOWN = 0, P_OTHER, P_NAMESPACE, P_COMPONENT, P_SYMBOL
}
pointer_t;
#endif
}}}
The relevant part of the report from using -d is:
{{{
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/work/build
/./prev-gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/work/build
/./prev-gcc/
-B/opt/local/x86_64-apple-darwin10/bin/ -c -g -O2 -DIN_GCC -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -I. -Ifortran
-I../../gcc-4.3.4/gcc -I../../gcc-4.3.4/gcc/fortran
-I../../gcc-4.3.4/gcc/../include
-I../../gcc-4.3.4/gcc/../libcpp/include -I/opt/local/include
-I/opt/local/include -I../../gcc-4.3.4/gcc/../libdecnumber
-I../../gcc-4.3.4/gcc/../libdecnumber/dpd -I../libdecnumber
../../gcc-4.3.4/gcc/fortran/module.c -o fortran/module.o
../../gcc-4.3.4/gcc/fortran/module.c:102: error: conflicting types for
'pointer_
t'
/usr/include/mach/vm_types.h:40: error: previous declaration of
'pointer_t' was
here
make[3]: *** [fortran/module.o] Error 1
}}}
--
Ticket URL: <http://trac.macports.org/ticket/24541>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list