Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failed on snow leopard #13

Open
imxiaobo opened this issue May 28, 2011 · 1 comment
Open

build failed on snow leopard #13

imxiaobo opened this issue May 28, 2011 · 1 comment

Comments

@imxiaobo
Copy link

Bo-Xiaos-MacBook-Pro:mordor xiaobo$ buildtools/build.sh
glibtoolize: putting auxiliary files in .'. glibtoolize: copying file./ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, m4'. glibtoolize: copying filem4/libtool.m4'
glibtoolize: copying file m4/ltoptions.m4' glibtoolize: copying filem4/ltsugar.m4'
glibtoolize: copying file m4/ltversion.m4' glibtoolize: copying filem4/lt~obsolete.m4'
configure.ac:7: installing ./config.sub' configure.ac:6: installing./missing'
configure.ac:6: installing ./install-sh' configure.ac:7: installing./config.guess'
Makefile.am: installing ./depcomp' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking build system type... i386-apple-darwin10.7.0 checking host system type... i386-apple-darwin10.7.0 checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm checking the name lister (/usr/bin/nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm output from gcc object... ok checking for dsymutil... dsymutil checking for nmedit... nmedit checking for lipo... lipo checking for otool... otool checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fno-common -DPIC checking if gcc PIC flag -fno-common -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin10.7.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking whether we are using the GNU C++ compiler... (cached) yes checking whether g++ accepts -g... (cached) yes checking dependency style of g++... (cached) gcc3 checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common -DPIC checking if g++ PIC flag -fno-common -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin10.7.0 dyld checking how to hardcode library paths into programs... immediate checking for gawk... (cached) awk checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for ragel... /usr/local/bin/ragel checking for protoc... protoc checking for library containing pthread_create... none required checking for library containing clock_gettime... no checking for library containing backtrace... none required checking for pkg-config... /usr/local/bin/pkg-config checking whether compiling and linking against OpenSSL works... yes checking if zlib is wanted... yes checking for inflateEnd in -lz... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for inflateEnd in -lz... (cached) yes checking zlib in /usr... ok checking for boostlib >= 1.40... yes checking whether the Boost::Program_Options library is available... yes checking for exit in -lboost_program_options-mt... yes checking whether the Boost::Regex library is available... yes checking for exit in -lboost_regex-mt... yes checking whether the Boost::Thread library is available... yes checking for exit in -lboost_thread-mt... yes checking for CFNetworkCopyProxiesForURL... yes checking for CFRetain... yes checking for SecKeychainItemFreeContent... yes checking for SCDynamicStoreCreate... yes checking for yaml_parser_initialize in -lyaml... no checking pkg-config is at least version 0.9.0... yes checking for PROTOBUF... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking whether to enable assertions... no checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for inline... inline checking for int32_t... yes checking for int64_t... yes checking for pid_t... yes checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for ptrdiff_t... yes checking for error_at_line... no checking whether sys/types.h defines makedev... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... yes checking for working strtod... yes checking for clock_gettime... no checking for ftruncate... yes checking for memchr... yes checking for memmove... yes checking for memset... yes checking for munmap... yes checking for rmdir... yes checking for socket... yes checking for strchr... yes checking for strstr... yes checking for strtoull... yes configure: creating ./config.status config.status: creating Makefile config.status: creating mordor/libmordor.pc config.status: creating mordor/libmordorprotobuf.pc config.status: creating mordor/libmordoryaml.pc config.status: creating mordor/pq/libmordorpq.pc config.status: creating mordor/test/libmordortest.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands g++ -DHAVE_CONFIG_H -pthread -I/usr/local/include -I. -I/usr/include -Wall -Werror -fno-strict-aliasing -g -O2 -x c++-header mordor/pch.h -o mordor/pch.h.gch /usr/local/bin/ragel -C mordor/http/http_parser.rl -o mordor/http/http_parser.cpp /usr/local/bin/ragel -C mordor/json.rl -o mordor/json.cpp /usr/local/bin/ragel -C mordor/uri.rl -o mordor/uri.cpp /usr/local/bin/ragel -C mordor/xml/xml_parser.rl -o mordor/xml/xml_parser.cpp /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -D_THREAD_SAFE -I/usr/local/Cellar/protobuf/2.4.1/include -pthread -I/usr/local/include -I. -I/usr/include -Wall -Werror -fno-strict-aliasing -g -O2 -MT mordor/mordor_libmordorprotobuf_la-protobuf.lo -MD -MP -MF mordor/.deps/mordor_libmordorprotobuf_la-protobuf.Tpo -c -o mordor/mordor_libmordorprotobuf_la-protobuf.lotest -f 'mordor/protobuf.cpp' || echo './'mordor/protobuf.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -D_THREAD_SAFE -I/usr/local/Cellar/protobuf/2.4.1/include -pthread -I/usr/local/include -I. -I/usr/include -Wall -Werror -fno-strict-aliasing -g -O2 -MT mordor/mordor_libmordorprotobuf_la-protobuf.lo -MD -MP -MF mordor/.deps/mordor_libmordorprotobuf_la-protobuf.Tpo -c mordor/protobuf.cpp -o mordor/mordor_libmordorprotobuf_la-protobuf.o depbase=echo mordor/test/antxmllistener.lo | sed 's|[^/]*$|.deps/&|;s|.lo$||'`;
/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -pthread -I/usr/local/include -I. -I/usr/include -Wall -Werror -fno-strict-aliasing -g -O2 -MT mordor/test/antxmllistener.lo -MD -MP -MF $depbase.Tpo -c -o mordor/test/antxmllistener.lo mordor/test/antxmllistener.cpp &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -pthread -I/usr/local/include -I. -I/usr/include -Wall -Werror -fno-strict-aliasing -g -O2 -MT mordor/test/antxmllistener.lo -MD -MP -MF mordor/test/.deps/antxmllistener.Tpo -c mordor/test/antxmllistener.cpp -o mordor/test/antxmllistener.o
In file included from ./mordor/predef.h:4,
from ./mordor/exception.h:5,
from ./mordor/assert.h:5,
from mordor/protobuf.cpp:8:
./mordor/version.h:21:1: error: "BSD" redefined
In file included from /usr/local/Cellar/protobuf/2.4.1/include/google/protobuf/io/coded_stream.h:124,
from /usr/local/Cellar/protobuf/2.4.1/include/google/protobuf/message_lite.h:43,
from /usr/local/Cellar/protobuf/2.4.1/include/google/protobuf/message.h:122,
from mordor/protobuf.cpp:6:
/usr/include/sys/param.h:72:1: error: this is the location of the previous definition

make: *** [mordor/mordor_libmordorprotobuf_la-protobuf.lo] Error 1
make: *** Waiting for unfinished jobs....

Log attached.

@ccutrer
Copy link
Contributor

ccutrer commented May 31, 2011

#12 includes a commit to fix this issue. Unfortunately, Mozy cannot accept it until they get a Contributor License Agreement figured out from their legal department. In the meantime, you can manually apply the commit(s) to your own fork, or use my fork (I will be merging in Mozy updates periodically into my fork).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants