Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 2006 00:45:56 +0800 (CST)
From:      "=?gb2312?B?wO65+se/?=" <lgqzlx@126.com>
To:        freebsd-stable@freebsd.org
Subject:   about compiling /usr/ports/x11-fonts/ttmkfdir
Message-ID:  <43D113C4.0000B5.29045@m188.126.com>

next in thread | raw e-mail | index | archive | help

Hi,all

  I want to setup TrueType fonts,so I make ttmkdir.But I get some errors for compiling it shown like as follow.



===>  Building for ttmkfdir-20021109_1

libtool13 --mode=compile g++ -O -pipe `freetype-config --cflags` -o commandline.o -c commandline.cpp

rm -f .libs/commandline.lo

g++ -O -pipe -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:376: 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


Tanks.

With Regard.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43D113C4.0000B5.29045>