From nobody@FreeBSD.org  Wed Sep  8 23:14:57 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A1E3410656A4
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Sep 2010 23:14:57 +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 7675D8FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Sep 2010 23:14:57 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o88NEuvI093960
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 8 Sep 2010 23:14:56 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o88NEuXS093959;
	Wed, 8 Sep 2010 23:14:56 GMT
	(envelope-from nobody)
Message-Id: <201009082314.o88NEuXS093959@www.freebsd.org>
Date: Wed, 8 Sep 2010 23:14:56 GMT
From: Marko Njezic <mrmax063@maxempire.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: misc/mc - new version fails to build due to linker error
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         150396
>Category:       ports
>Synopsis:       misc/mc - new version fails to build due to linker error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    fjoe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 08 23:20:00 UTC 2010
>Closed-Date:    Thu Sep 09 12:14:12 UTC 2010
>Last-Modified:  Thu Sep 09 12:14:12 UTC 2010
>Originator:     Marko Njezic
>Release:        8.1-RELEASE
>Organization:
MAX Interactive corp.
>Environment:
FreeBSD vmbsd 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
After Midnight Commander port has been updated to the version 4.7.4, it now fails to build due to linker error.

By a quick look, it appears that the configure script is not able to find SLANG library headers due to some change in the new m4 macros from version 4.7.4 compared to the old version 4.7.2, where everything worked fine.
>How-To-Repeat:
[root@vmbsd]:/usr/ports/misc/mc> make
..
===>  Found saved configuration for mc-4.7.0.1
===>  Extracting for mc-4.7.4
=> MD5 Checksum OK for mc-4.7.4.tar.lzma.
=> SHA256 Checksum OK for mc-4.7.4.tar.lzma.
===>   mc-4.7.4 depends on file: /usr/local/bin/perl5.10.1 - found
===>  Patching for mc-4.7.4
===>   mc-4.7.4 depends on file: /usr/local/bin/perl5.10.1 - found
===>  Applying FreeBSD patches for mc-4.7.4
/usr/bin/sed -i.bak -e 's/SUBDIRS = intl/SUBDIRS =/' /usr/ports/misc/mc/work/mc-4.7.4/Makefile.in
===>   mc-4.7.4 depends on executable: pkg-config - found
===>   mc-4.7.4 depends on executable: gmake - found
===>   mc-4.7.4 depends on file: /usr/local/bin/perl5.10.1 - found
===>   mc-4.7.4 depends on executable: pkg-config - found
===>   mc-4.7.4 depends on shared library: slang.2 - found
===>   mc-4.7.4 depends on shared library: iconv.3 - found
===>   mc-4.7.4 depends on shared library: intl - found
===>   mc-4.7.4 depends on shared library: glib-2.0.0 - found
===>  Configuring for mc-4.7.4
..
checking for subshell support... no
checking for SLANG... yes
checking for slang/slang.h... no
..
  CCLD   mc
/usr/local/lib/libslang.so: undefined reference to `tgetnum'
/usr/local/lib/libslang.so: undefined reference to `tgetflag'
/usr/local/lib/libslang.so: undefined reference to `tgetent'
/usr/local/lib/libslang.so: undefined reference to `tgetstr'
gmake[3]: *** [mc] Error 1
gmake[3]: Leaving directory `/usr/ports/misc/mc/work/mc-4.7.4/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/misc/mc/work/mc-4.7.4/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/misc/mc/work/mc-4.7.4'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/misc/mc.
*** Error code 1

Stop in /usr/ports/misc/mc.

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->fjoe 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Sep 8 23:20:10 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150396 
State-Changed-From-To: open->closed 
State-Changed-By: fjoe 
State-Changed-When: Thu Sep 9 12:13:42 UTC 2010 
State-Changed-Why:  
Should be fixed in 4.7.4_1 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150396 
>Unformatted:
