x11-fonts/ttmkfdir build error

Mark Ovens marko at freebsd.org
Fri Jan 6 12:12:31 PST 2006

Trying to upgrade x11-fonts/ttmkfdir fails with this error:

g++ -O2 -fno-strict-aliasing -pipe -march=athlon-mp 
-I/usr/local/include/freetype2 -I/usr/local/include -c commandline.cpp 
-fPIC -DPIC -o .libs/commandline.lo
In file included from /usr/include/c++/3.4/bits/gthr-default.h:44,
                  from /usr/include/c++/3.4/bits/gthr.h:96,
                  from /usr/include/c++/3.4/bits/c++io.h:37,
                  from /usr/include/c++/3.4/iosfwd:47,
                  from /usr/include/c++/3.4/bits/stl_algobase.h:70,
                  from /usr/include/c++/3.4/bits/char_traits.h:46,
                  from /usr/include/c++/3.4/string:47,
                  from commandline.h:5,
                  from commandline.cpp:6:
/usr/include/unistd.h:377: error: declaration of C function `int 
getopt(int, char* const*, const char*)' conflicts with
/usr/local/include/getopt.h:115: error: previous declaration `int 
getopt()' here
gmake: *** [commandline.o] Error 1
*** Error code 2

Stop in /usr/ports/x11-fonts/ttmkfdir.

Looking at /usr/local/include/getopt.h it seems as if __STDC__ and/or 
HAVE_DECL_GETOPT may not be set correctly.

Anyone know the solution please?



More information about the freebsd-ports mailing list