On 6/2/16 7:14 , Frank Yu wrote: > gcc -fno-strict-aliasing -pipe -O2 -pipe -O2 -DHAVE_DB_185_H -pthread > -I/usr/include -I/opt/local/include -I/opt/local/include/db4 > -I/opt/local/include/ncurses -DNDEBUG -pipe -O2 -pipe -O2 -DHAVE_DB_185_H > -pthread -I/usr/include -I/opt/local/include -I/opt/local/include/db4 > -I/opt/local/include/ncurses -fPIC > -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API > -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION > -I/opt/local/lib/python2.7/site-packages/numpy/core/include > -I/opt/local/lib/python2.7/site-packages/numpy/core/include > -I/opt/local/include/libpng16 -I/opt/local/include > -I/opt/local/include/freetype2 -I/usr/local/include -I. > -I/opt/local/include/python2.7 -c src/ft2font_wrapper.cpp -o > build/temp.solaris-2.11-i86pc.64bit-2.7/src/ft2font_wrapper.o > In file included from /opt/local/include/python2.7/Python.h:44:0, > from src/mplutils.h:21, > from src/ft2font_wrapper.cpp:1: > /usr/include/unistd.h:521:75: error: declaration of C function 'void > swab(const void, void, ssize_t)' conflicts with > In file included from /opt/local/include/python2.7/Python.h:42:0, > from src/mplutils.h:21, > from src/ft2font_wrapper.cpp:1: > /usr/include/stdlib.h:169:13: error: previous declaration 'void swab(const > char, char, ssize_t)' here > error: command 'gcc' failed with exit status 1
Hmm, so it looks like what's happened is that over time the definition of swab() has changed in the various single unix specifications. Looking at our headers, it looks like the guards are set up in such a way that you can end up with both definitions and we'll likely need to figure out which one it is, though I'm not 100% sure how that's happened from the compiler flags in question. Do you happen to have a link to the source for that file? Also, have you checked if this is available in pkgsrc? Robert ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
