Date: Wed, 2 Jul 2003 21:18:40 +0300 (EEST) From: Kostyuk Oleg <cub@cub.org.ua> To: FreeBSD-gnats-submit@FreeBSD.org Cc: freebsd-ports@FreeBSD.org Subject: ports/54037: Ports collection : licq conflict with libgnugetopt Message-ID: <200307021818.h62IIeBe002087@demani.digma> Resent-Message-ID: <200307021820.h62IK9hN075453@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 54037 >Category: ports >Synopsis: Ports collection : licq conflict with libgnugetopt >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 02 11:20:08 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Kostyuk Oleg >Release: FreeBSD 5.1-RELEASE i386 >Organization: >Environment: System: FreeBSD demani.digma 5.1-RELEASE FreeBSD 5.1-RELEASE #8: Mon Jun 30 18:31:05 EEST 2003 root@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. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307021818.h62IIeBe002087>