Date: Sun, 4 Nov 2007 20:23:17 GMT From: Chad Milios <freebsd-pr@cropcirclesystems.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/117824: CONFIGURE_LINE truncated to 2048 chars in [at least] multimedia/vlc-devel Message-ID: <200711042023.lA4KNHZB047314@www.freebsd.org> Resent-Message-ID: <200711042030.lA4KU1xR076119@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711042023.lA4KNHZB047314>