g++ problem

C. Kukulies kuku at www.kukulies.org
Thu Nov 6 07:55:05 PST 2003


I tried to compile a virus-scanner for Linux that allows for scanning
Windoze PCs in a network for all sorts of recent viruses (RPC/DCOM and such).

http://www.enyo.de/fw/software/doscan

Compilation fails with the following:

kukuboo2k# gmake
g++ -g -O2 -Wall -I/usr/local/include -I. -I. -I./lib \
        -MMD -MF src/doscan.d \
        -c -o src/doscan.o src/doscan.cc
In file included from src/doscan.cc:28:
/usr/local/include/getopt.h:115: error: declaration of C function `int getopt()
   ' conflicts with
/usr/include/unistd.h:377: error: previous declaration `int getopt(int, char*
   const*, const char*)' here
gmake: *** [src/doscan.o] Error 1

I wonder where /usr/local/include comes from. If I remove that it compiles
smoothly.

Sorry, if this would turn out to be not -current specific.

--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de



More information about the freebsd-current mailing list