Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Jan 2006 20:13:32 +0000
From:      Mark Ovens <marko@freebsd.org>
To:        freebsd-ports@freebsd.org
Subject:   x11-fonts/ttmkfdir build error
Message-ID:  <43BECF6C.40609@freebsd.org>

next in thread | raw e-mail | index | archive | help
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?

Regards,

Mark




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43BECF6C.40609>