Can't build pyxpcom on OS X 10.6
Posted
by Gj
on Stack Overflow
See other posts from Stack Overflow
or by Gj
Published on 2010-04-21T16:07:10Z
Indexed on
2010/04/21
16:23 UTC
Read the original article
Hit count: 465
I've been following these instructions at https://developer.mozilla.org/en/Building_PyXPCOM but getting this:
$ make
make export
make[2]: Nothing to be done for `export'.
make[4]: Nothing to be done for `export'.
make[4]: Nothing to be done for `export'.
/opt/local/bin/python2.5 ../../../src/config/nsinstall.py -L /usr/local/pyxpcom/build/xpcom/src -m 644 ../../../src/xpcom/src/PyXPCOM.h ../../dist/include
make[3]: Nothing to be done for `export'.
/opt/local/bin/python2.5 ../../../../src/config/nsinstall.py -D ../../../dist/idl
/opt/local/bin/python2.5 ../../../../src/config/nsinstall.py -D ../../../dist/idl
make[4]: *** No rule to make target `_xpidlgen/py_test_component.h', needed by `export'. Stop.
make[3]: *** [export] Error 2
make[2]: *** [export] Error 2
make[1]: *** [export] Error 2
make: *** [default] Error 2
Any ideas?
An interesting anomaly is that despite me setting the PYTHON env variable to Python 2.6, the configure and make both seem to go after the 2.5...
Thanks for any advice!
PS here's the configure output:
$ ../src/configure --with-libxul-sdk=/Users/me/xulrunner-sdk/
loading cache ./config.cache
checking host system type... i386-apple-darwin10.3.0
checking target system type... i386-apple-darwin10.3.0
checking build system type... i386-apple-darwin10.3.0
checking for mawk... (cached) gawk
checking for perl5... (cached) /opt/local/bin/perl5
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for as... (cached) /usr/bin/as
checking for ar... (cached) ar
checking for ld... (cached) ld
checking for strip... (cached) strip
checking for windres... no
checking whether gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking how to run the C++ preprocessor... (cached) c++ -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for minimum required perl version >= 5.006... 5.008009
checking for full perl installation... yes
checking for /opt/local/bin/python... (cached) /opt/local/bin/python2.5
checking for doxygen... (cached) :
checking for whoami... (cached) /usr/bin/whoami
checking for autoconf... (cached) /opt/local/bin/autoconf
checking for unzip... (cached) /usr/bin/unzip
checking for zip... (cached) /usr/bin/zip
checking for makedepend... (cached) /opt/local/bin/makedepend
checking for xargs... (cached) /usr/bin/xargs
checking for pbbuild... (cached) /usr/bin/xcodebuild
checking for sdp... (cached) /usr/bin/sdp
checking for gmake... (cached) /opt/local/bin/gmake
checking for X... (cached) no
checking whether the compiler supports -Wno-invalid-offsetof... yes
checking whether ld has archive extraction flags... (cached) no
checking that static assertion macros used in autoconf tests work... (cached) yes
checking for 64-bit OS... yes
checking for minimum required Python version >= 2.4... yes
checking for -dead_strip option to ld... yes
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for mode_t... (cached) yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for st_blksize in struct stat... (cached) yes
checking for siginfo_t... (cached) yes
checking for int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for int64_t... (cached) yes
checking for int64... (cached) no
checking for uint... (cached) yes
checking for uint_t... (cached) no
checking for uint16_t... (cached) no
checking for uname.domainname... (cached) no
checking for uname.__domainname... (cached) no
checking for usable char16_t (2 bytes, unsigned)... (cached) no
checking for usable wchar_t (2 bytes, unsigned)... (cached) no
checking for compiler -fshort-wchar option... (cached) yes
checking for visibility(hidden) attribute... (cached) yes
checking for visibility(default) attribute... (cached) yes
checking for visibility pragma support... (cached) yes
checking For gcc visibility bug with class-level attributes (GCC bug 26905)... (cached) yes
checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for sys/byteorder.h... (cached) no
checking for compat.h... (cached) no
checking for getopt.h... (cached) yes
checking for sys/bitypes.h... (cached) no
checking for memory.h... (cached) yes
checking for unistd.h... (cached) yes
checking for gnu/libc-version.h... (cached) no
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) no
checking for X11/XKBlib.h... (cached) yes
checking for io.h... (cached) no
checking for sys/statvfs.h... (cached) yes
checking for sys/statfs.h... (cached) no
checking for sys/vfs.h... (cached) no
checking for sys/mount.h... (cached) yes
checking for sys/quota.h... (cached) yes
checking for mmintrin.h... (cached) yes
checking for new... (cached) yes
checking for sys/cdefs.h... (cached) yes
checking for gethostbyname_r in -lc_r... (cached) no
checking for dladdr... (cached) yes
checking for socket in -lsocket... (cached) no
checking whether mmap() sees write()s... yes
checking whether gcc needs -traditional... (cached) no
checking for 8-bit clean memcmp... (cached) yes
checking for random... (cached) yes
checking for strerror... (cached) yes
checking for lchown... (cached) yes
checking for fchmod... (cached) yes
checking for snprintf... (cached) yes
checking for statvfs... (cached) yes
checking for memmove... (cached) yes
checking for rint... (cached) yes
checking for stat64... (cached) yes
checking for lstat64... (cached) yes
checking for truncate64... (cached) no
checking for statvfs64... (cached) no
checking for setbuf... (cached) yes
checking for isatty... (cached) yes
checking for flockfile... (cached) yes
checking for getpagesize... (cached) yes
checking for localtime_r... (cached) yes
checking for strtok_r... (cached) yes
checking for wcrtomb... (cached) yes
checking for mbrtowc... (cached) yes
checking for res_ninit()... (cached) no
checking for gnu_get_libc_version()... (cached) no
../src/configure: line 9881: AM_LANGINFO_CODESET: command not found
checking for an implementation of va_copy()... (cached) yes
checking for an implementation of __va_copy()... (cached) yes
checking whether va_lists can be copied by value... (cached) no
checking for C++ exceptions flag... (cached) -fno-exceptions
checking for gcc 3.0 ABI... (cached) yes
checking for C++ "explicit" keyword... (cached) yes
checking for C++ "typename" keyword... (cached) yes
checking for modern C++ template specialization syntax support... (cached) yes
checking whether partial template specialization works... (cached) yes
checking whether operators must be re-defined for templates derived from templates... (cached) no
checking whether we need to cast a derived template to pass as its base class... (cached) no
checking whether the compiler can resolve const ambiguities for templates... (cached) yes
checking whether the C++ "using" keyword can change access... (cached) yes
checking whether the C++ "using" keyword resolves ambiguity... (cached) yes
checking for "std::" namespace... (cached) yes
checking whether standard template operator!=() is ambiguous... (cached) unambiguous
checking for C++ reinterpret_cast... (cached) yes
checking for C++ dynamic_cast to void*... (cached) yes
checking whether C++ requires implementation of unused virtual methods... (cached) yes
checking for trouble comparing to zero near std::operator!=()... (cached) no
checking for LC_MESSAGES... (cached) yes
checking for tar archiver... checking for gnutar... (cached) gnutar
gnutar
checking for wget... checking for wget... (cached) wget
wget
checking for valid optimization flags... yes
checking for gcc -pipe support... yes
checking whether compiler supports -Wno-long-long... yes
checking whether C compiler supports -fprofile-generate... yes
checking for correct temporary object destruction order... yes
checking for correct overload resolution with const and templates... no
Building Python extensions using python-2.5 from /opt/local/Library/Frameworks/Python.framework/Versions/2.5
creating ./config.status
creating config/autoconf.mk
creating Makefile
creating xpcom/Makefile
creating xpcom/src/Makefile
creating xpcom/src/loader/Makefile
creating xpcom/src/module/Makefile
creating xpcom/components/Makefile
creating xpcom/test/Makefile
creating xpcom/test/test_component/Makefile
creating dom/Makefile
creating dom/src/Makefile
creating dom/test/Makefile
creating dom/test/pyxultest/Makefile
creating dom/nsdom/Makefile
creating dom/nsdom/test/Makefile
© Stack Overflow or respective owner