Date: Sat, 19 Oct 2013 08:14:13 GMT From: Guillaume Bibaut <yom@iaelu.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/183097: www/w3m does not compile with clang on 9.2-RELEASE Message-ID: <201310190814.r9J8ED2J035202@oldred.freebsd.org> Resent-Message-ID: <201310190820.r9J8K2fG005090@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 183097 >Category: ports >Synopsis: www/w3m does not compile with clang on 9.2-RELEASE >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: Sat Oct 19 08:20:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Guillaume Bibaut >Release: 9.2-RELEASE >Organization: - >Environment: FreeBSD iaelu.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0: Fri Sep 27 12:34:12 CEST 2013 root@iaelu.net:/usr/obj/usr/src/sys/IAELUNET amd64 >Description: This port does not compile on my system. I just did a portsnap fetch update and while upgrading my installed ports I encountered this problem. My system is set to compile everything with clang (since in 10.0 there will be only clang by default). Also it does not work in a poudriere jail that has been configured to do the same. =======================<phase: build >============================ ===> Building for w3m-0.5.3_2 (echo '#define DEFUN(x,y,z) x y'; sed -ne '/^DEFUN/{p;n;/^[ ]/p;}' ./main.c ./menu.c) | clang-cpp - | awk '$1 ~ /^[_A-Za-z]/ { for (i=2;i<=NF;i++) { print $i, $1} }' > funcname.tab.tmp funcname.tab updated sort funcname.tab | /usr/bin/awk -f ./funcname1.awk > funcname1.h clang -I. -I. -O2 -pipe -fno-strict-aliasing -I./libwc -I/usr/include/openssl -I/usr/local/include -I/usr/local/include -DHAVE_CONFIG_H -DAUXBIN_DIR=\"/usr/local/libexec/w3m\" -DCGIBIN_DIR=\"/usr/local/libexec/w3m/cgi-bin\" -DHELP_DIR=\"/usr/local/share/w3m\" -DETC_DIR=\"/usr/local/etc\" -DCONF_DIR=\"/usr/local/etc/w3m\" -DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/usr/local/share/locale\" -c main.c main.c:836:23: error: assigning to 'GC_warn_proc' (aka 'void (*)(char *, GC_word)') from incompatible type 'void' orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:2264:37: warning: incompatible pointer types passing 'char **' to parameter of type 'wc_uchar **' (aka 'unsigned char **') [-Wincompatible-pointer-types] return wc_any_to_ucs(wtf_parse1(&p)); ^~ ./libwc/wtf.h:71:41: note: passing argument to parameter 'p' here extern wc_wchar_t wtf_parse1(wc_uchar **p); ^ 1 warning and 1 error generated. *** [main.o] Error code 1 Stop in /wrkdirs/usr/ports/www/w3m/work/w3m-0.5.3. *** [do-build] Error code 1 Stop in /usr/ports/www/w3m. ===> Cleaning for w3m-0.5.3_2 build of /usr/ports/www/w3m ended at Sat Oct 19 10:05:06 CEST 2013 >How-To-Repeat: set clang as the default compile in /etc/make.conf CC=clang CXX=clang++ CPP=clang-cpp NO_WERROR= WERROR= try to compile www/w3m >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310190814.r9J8ED2J035202>