Last Licq Compile Error (Too many Arguments)...

Matthieu Bonavita m.bonavita at free.fr
Tue May 20 12:15:10 PDT 2003


Maybe a getopt.h problem ? can I upgrade this kind of files ? (C++/C include header files) ?

Le Wed, 14 May 2003 22:56:47 +0200
Matthieu Bonavita <m.bonavita at free.fr> frappa sauvagement:

> Humm sorry, the error message has been lost :)
> 
> here it is : 
> 
> In file included from licq.cpp:23:
> /usr/local/include/getopt.h:115: declaration of C function `int getopt()' 
>    conflicts with
> /usr/include/unistd.h:366: previous declaration `int getopt(int, char* const*, 
>    const char*)' here
> /usr/local/include/getopt.h: In member function `bool CLicq::Init(int, 
>    char**)':
> /usr/local/include/getopt.h:115: too many arguments to function `int getopt()'
> licq.cpp:177: at this point in file
> 
> Sorry again !
> 
> 
> Le Wed, 14 May 2003 22:51:12 +0200
> Matthieu Bonavita <m.bonavita at free.fr> frappa sauvagement:
> 
> > I've upgraded my ports very recently, but I still get a weird error while compiling licq-base
> > 
> > ....
> > 
> > [output snipped, but in attached txt file]
> > 
> > 
> > SOCKS5 support is disabled.
> > OpenSSL secure channel support is enabled.
> > 
> > --- Now type "gmake" to build Licq ---
> > --- If gmake is not working, try "make" ---
> > 
> > ===>  Building for licq-base-1.2.6
> > gmake  all-recursive
> > gmake[1]: Entering directory `/usr/ports/net/licq/work/licq-1.2.6'
> > Making all in share
> > gmake[2]: Entering directory `/usr/ports/net/licq/work/licq-1.2.6/share'
> > gmake[2]: Nothing to be done for `all'.
> > gmake[2]: Leaving directory `/usr/ports/net/licq/work/licq-1.2.6/share'
> > Making all in src
> > gmake[2]: Entering directory `/usr/ports/net/licq/work/licq-1.2.6/src'
> > if c++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -I../include -DINSTALL_PREFIX=\"/usr/local\"   -Wno-deprecated -D_THREAD_SAFE -I/usr/local/include  -O -pipe -mcpu=pentiumpro -Wl,-rpath,/usr/local/lib -fno-exceptions -fno-check-new -pthread -MT licq.o -MD -MP -MF ".deps/licq.Tpo" \
> >   -c -o licq.o `test -f 'licq.cpp' || echo './'`licq.cpp; \
> > then mv ".deps/licq.Tpo" ".deps/licq.Po"; \
> > else rm -f ".deps/licq.Tpo"; exit 1; \
> > fi
> > gmake[2]: Leaving directory `/usr/ports/net/licq/work/licq-1.2.6/src'
> > gmake[1]: Leaving directory `/usr/ports/net/licq/work/licq-1.2.6'
> > *** Error code 2
> > 
> > Stop in /usr/ports/net/licq.
> > 
> > Has anybody encountered this kind of error elsewhere ?
> > 
> > Thanks.
> > 
> > ----
> > M.Bonavita
> > GPG Key : http://membres.lycos.fr/almacinnis/pubkey.asc
> > 
> 
> 
> ----
> M.Bonavita
> GPG Key : http://membres.lycos.fr/almacinnis/pubkey.asc
> 


----
Matthieu Bonavita
GPG Key : http://membres.lycos.fr/almacinnis/pubkey.asc
Running on : FreeBSD 5.0-RELEASE-p7 i386


More information about the freebsd-questions mailing list