Ports collection : licq conflict with libgnugetopt

Kostyuk Oleg cub at cub.org.ua
Wed Jul 2 11:18:54 PDT 2003


>Submitter-Id:	current-users
>Originator:	Kostyuk Oleg
>Organization:	
>Confidential:	no 
>Synopsis:	Ports collection : licq conflict with libgnugetopt
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		sw-bug
>Release:	FreeBSD 5.1-RELEASE i386
>Environment:
System: FreeBSD demani.digma 5.1-RELEASE FreeBSD 5.1-RELEASE #8: Mon Jun 30 18:31:05 EEST 2003 root at demani.digma:/usr/src/sys/i386/compile/CUB i386


>Description:
	`portupgrade :licq' generate errors :


	In file included from licq.cpp:29:
	/usr/local/include/getopt.h:115: declaration of C function `int getopt()'
	   conflicts with
	/usr/include/unistd.h:377: 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:189: at this point in file
	gmake[2]: *** [licq.o] ïÛÉÂËÁ 1
	gmake[2]: Leaving directory `/var/.0/tmp/mnt/digma/usr/ports/net/licq/work/licq-1.2.7/src'
	gmake[1]: *** [all-recursive] ïÛÉÂËÁ 1
	gmake[1]: Leaving directory `/var/.0/tmp/mnt/digma/usr/ports/net/licq/work/licq-1.2.7'
	gmake: *** [all] ïÛÉÂËÁ 2
	*** Error code 2

	Stop in /mnt/digma/usr/ports/net/licq.
	** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade35172.0 make
	** Fix the problem and try again.


>How-To-Repeat:
	Upgrade licq from 1.2.6 to 1.2.7 with installed libgnugetopt-1.2

>Fix:
	/usr/local/include/getopt.h - file from libgnugetopt-1.2 package.
	When I deinstall libgnugetopt, compiling licq done well.
	But I need libgnugetopt (for other packages), and I don't know
	how to fix this error whitout deinstalling libgnugetopt.

	May be, change `configure' from licq to detect situation when both
	/usr/include/unistd.h and /usr/local/include/getopt.h present
	in system...

	I think, this error in configure (and, really, in autoconf),
	because I have an experience with so trouble in the last
	(with other ports, but I don't remember exactly packages).

	Note: I use cvsup and portupgrade packages, so I have up to
	date ports collection and installed software.



More information about the freebsd-ports mailing list