[zeromq-dev] zmqpp doesn't build on Mac OS X?

Ivan Figueredo synctrader at gmail.com
Mon May 12 22:00:37 CEST 2014


Mac OS X Lion. gcc4.8.


zmqpp is giving me errors under Mac OS X, gcc4.8,  g++: error: unrecognized
command line option '-rdynamic':

git clone https://github.com/zeromq/zmqpp.git
Cloning into 'zmqpp'...
remote: Reusing existing pack: 900, done.
remote: Total 900 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (900/900), 285.07 KiB | 0 bytes/s, done.
Resolving deltas: 100% (480/480), done.
Checking connectivity... done.
unknown28cfe9012d87:Downloads ivanfigueredo$ cd zmqpp/
unknown28cfe9012d87:zmqpp ivanfigueredo$ make
mkdir -p build/max-g++/obj/zmqpp/
g++   -MMD -std=c++0x -pipe -Wall -fPIC -DBUILD_ENV=max
-DBUILD_VERSION='"3.2.0"' -DBUILD_VERSION_MAJOR=3 -DBUILD_VERSION_MINOR=2
-DBUILD_VERSION_REVISION=0 -DBUILD_DATESTAMP='"2014-05-12 13:10"'
-DBUILD_LIBRARY_NAME='"zmqpp"' -DBUILD_CLIENT_NAME='"zmqpp"' -I./src -O3
-funroll-loops -ffast-math -finline-functions -fomit-frame-pointer -DNDEBUG
-c -o build/max-g++/obj/zmqpp/context.o src/zmqpp/context.cpp
mkdir -p build/max-g++/obj/zmqpp/
g++   -MMD -std=c++0x -pipe -Wall -fPIC -DBUILD_ENV=max
-DBUILD_VERSION='"3.2.0"' -DBUILD_VERSION_MAJOR=3 -DBUILD_VERSION_MINOR=2
-DBUILD_VERSION_REVISION=0 -DBUILD_DATESTAMP='"2014-05-12 13:10"'
-DBUILD_LIBRARY_NAME='"zmqpp"' -DBUILD_CLIENT_NAME='"zmqpp"' -I./src -O3
-funroll-loops -ffast-math -finline-functions -fomit-frame-pointer -DNDEBUG
-c -o build/max-g++/obj/zmqpp/frame.o src/zmqpp/frame.cpp
mkdir -p build/max-g++/obj/zmqpp/
g++   -MMD -std=c++0x -pipe -Wall -fPIC -DBUILD_ENV=max
-DBUILD_VERSION='"3.2.0"' -DBUILD_VERSION_MAJOR=3 -DBUILD_VERSION_MINOR=2
-DBUILD_VERSION_REVISION=0 -DBUILD_DATESTAMP='"2014-05-12 13:10"'
-DBUILD_LIBRARY_NAME='"zmqpp"' -DBUILD_CLIENT_NAME='"zmqpp"' -I./src -O3
-funroll-loops -ffast-math -finline-functions -fomit-frame-pointer -DNDEBUG
-c -o build/max-g++/obj/zmqpp/message.o src/zmqpp/message.cpp
mkdir -p build/max-g++/obj/zmqpp/
g++   -MMD -std=c++0x -pipe -Wall -fPIC -DBUILD_ENV=max
-DBUILD_VERSION='"3.2.0"' -DBUILD_VERSION_MAJOR=3 -DBUILD_VERSION_MINOR=2
-DBUILD_VERSION_REVISION=0 -DBUILD_DATESTAMP='"2014-05-12 13:10"'
-DBUILD_LIBRARY_NAME='"zmqpp"' -DBUILD_CLIENT_NAME='"zmqpp"' -I./src -O3
-funroll-loops -ffast-math -finline-functions -fomit-frame-pointer -DNDEBUG
-c -o build/max-g++/obj/zmqpp/poller.o src/zmqpp/poller.cpp
mkdir -p build/max-g++/obj/zmqpp/
g++   -MMD -std=c++0x -pipe -Wall -fPIC -DBUILD_ENV=max
-DBUILD_VERSION='"3.2.0"' -DBUILD_VERSION_MAJOR=3 -DBUILD_VERSION_MINOR=2
-DBUILD_VERSION_REVISION=0 -DBUILD_DATESTAMP='"2014-05-12 13:10"'
-DBUILD_LIBRARY_NAME='"zmqpp"' -DBUILD_CLIENT_NAME='"zmqpp"' -I./src -O3
-funroll-loops -ffast-math -finline-functions -fomit-frame-pointer -DNDEBUG
-c -o build/max-g++/obj/zmqpp/socket.o src/zmqpp/socket.cpp
mkdir -p build/max-g++/obj/zmqpp/
g++   -MMD -std=c++0x -pipe -Wall -fPIC -DBUILD_ENV=max
-DBUILD_VERSION='"3.2.0"' -DBUILD_VERSION_MAJOR=3 -DBUILD_VERSION_MINOR=2
-DBUILD_VERSION_REVISION=0 -DBUILD_DATESTAMP='"2014-05-12 13:10"'
-DBUILD_LIBRARY_NAME='"zmqpp"' -DBUILD_CLIENT_NAME='"zmqpp"' -I./src -O3
-funroll-loops -ffast-math -finline-functions -fomit-frame-pointer -DNDEBUG
-c -o build/max-g++/obj/zmqpp/zmqpp.o src/zmqpp/zmqpp.cpp
g++  -shared -rdynamic -Wl,-soname -Wl,libzmqpp.so.3 -o
./build/max-g++/libzmqpp.so.3 build/max-g++/obj/zmqpp/context.o
build/max-g++/obj/zmqpp/frame.o build/max-g++/obj/zmqpp/message.o
build/max-g++/obj/zmqpp/poller.o build/max-g++/obj/zmqpp/socket.o
build/max-g++/obj/zmqpp/zmqpp.o  -lzmq
g++: error: unrecognized command line option '-rdynamic'
make: *** [libzmqpp.so] Error 1



If I remove the -rdynamic line from the Makefile, I get this error:



unknown28cfe9012d87:zmqpp ivanfigueredo$ make
g++  -shared -soname -Wl,libzmqpp.so.3 -o ./build/max-g++/libzmqpp.so.3
build/max-g++/obj/zmqpp/context.o build/max-g++/obj/zmqpp/frame.o
build/max-g++/obj/zmqpp/message.o build/max-g++/obj/zmqpp/poller.o
build/max-g++/obj/zmqpp/socket.o build/max-g++/obj/zmqpp/zmqpp.o  -lzmq
g++: error: unrecognized command line option '-soname'
make: *** [libzmqpp.so] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140512/92050304/attachment.htm>


More information about the zeromq-dev mailing list