From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Nov 4 20:30:04 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3883116A46B for ; Sun, 4 Nov 2007 20:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 17D7813C4A3 for ; Sun, 4 Nov 2007 20:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id lA4KU13S076120 for ; Sun, 4 Nov 2007 20:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id lA4KU1xR076119; Sun, 4 Nov 2007 20:30:01 GMT (envelope-from gnats) Resent-Date: Sun, 4 Nov 2007 20:30:01 GMT Resent-Message-Id: <200711042030.lA4KU1xR076119@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chad Milios Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC71116A41A for ; Sun, 4 Nov 2007 20:23:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id AC02413C4A3 for ; Sun, 4 Nov 2007 20:23:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id lA4KNHws047315 for ; Sun, 4 Nov 2007 20:23:17 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id lA4KNHZB047314; Sun, 4 Nov 2007 20:23:17 GMT (envelope-from nobody) Message-Id: <200711042023.lA4KNHZB047314@www.freebsd.org> Date: Sun, 4 Nov 2007 20:23:17 GMT From: Chad Milios To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/117824: CONFIGURE_LINE truncated to 2048 chars in [at least] multimedia/vlc-devel X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2007 20:30:04 -0000 >Number: 117824 >Category: ports >Synopsis: CONFIGURE_LINE truncated to 2048 chars in [at least] multimedia/vlc-devel >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 04 20:30:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Chad Milios >Release: 7.0-BETA1 >Organization: Crop Circle Systems >Environment: FreeBSD malcolm.cropcirclesystems.net 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Thu Nov 1 06:51:56 MST 2007 root@malcolm.cropcirclesystems.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: in at least the multimedia/vlc-devel port, the CONFIGURE_LINE that gets defined in the config.h file (during the 'configure' make target) gets truncated to 2048 chars (exactly 2048 includes #define and includes the newline at the end) which for some settings is not long enough. with my settings of a few things disabled and WITH_OPTIMIZED_CFLAGS, just two chars were cut off the end which resulted in a failed make. malcom# make ............................... In file included from /usr/ports/multimedia/vlc-devel/work/vlc-0.9.0-svn/include/vlc_common.h:39, from /usr/ports/multimedia/vlc-devel/work/vlc-0.9.0-svn/include/vlc/vlc.h:155, from libvlc.c:38: ./config.h:29:24: warning: missing terminating " character ............................... libvlc-common.c: In function 'libvlc_InternalCreate': libvlc-common.c:216: error: missing terminating " character libvlc-common.c:216: error: expected expression before ')' token gmake[3]: *** [libvlc_la-libvlc-common.lo] Error 1 .............. Stop in /usr/ports/multimedia/vlc-devel. >How-To-Repeat: disable enough options in the make config stage (disable is one character more than enable) as well as define WITH_OPTIMIZED_CFLAGS (counts for a handful more chars) and then make configure. check the line in work/vlc-0.9.0-svn/config.h that starts with #define CONFIGURE_LINE and make sure it ends with '" if it does then it probably wasnt long enough to get truncated >Fix: my solution was to make configure then hand edit config.h then run the make install. i am not knowledgeable with autoconf or the ports system enough to offer a real fix, or even identify where this truncation occurs. a similar problem may affect other ports. luckily in my case only a couple of bytes were truncated, but had the configure line needed to be longer, it wouldnt have been so apparent to me how to modify the line. if the truncation cannot be fixed [easily enough], a fix should be made to at least raise a more useful error at the point it occurs rather than waiting for some later syntax error because the warning about config.h was pretty burried at that point and it took me a good amount of head scratching before i found that it was the root of my compilation problem. >Release-Note: >Audit-Trail: >Unformatted: