From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 13 11:50:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9A5AB9C3 for ; Wed, 13 Feb 2013 11:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 803EBCE3 for ; Wed, 13 Feb 2013 11:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1DBo045038291 for ; Wed, 13 Feb 2013 11:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1DBo0vF038289; Wed, 13 Feb 2013 11:50:00 GMT (envelope-from gnats) Resent-Date: Wed, 13 Feb 2013 11:50:00 GMT Resent-Message-Id: <201302131150.r1DBo0vF038289@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, Spil Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A18AB877 for ; Wed, 13 Feb 2013 11:41:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 7A8B5C28 for ; Wed, 13 Feb 2013 11:41:27 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1DBfQ00034781 for ; Wed, 13 Feb 2013 11:41:26 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r1DBfQL2034774; Wed, 13 Feb 2013 11:41:26 GMT (envelope-from nobody) Message-Id: <201302131141.r1DBfQL2034774@red.freebsd.org> Date: Wed, 13 Feb 2013 11:41:26 GMT From: Spil To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/176105: [databases/mysql51-client] 5.1.68 Fails to build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 11:50:00 -0000 >Number: 176105 >Category: ports >Synopsis: [databases/mysql51-client] 5.1.68 Fails to build with clang >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 Feb 13 11:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Spil >Release: FreeBSD 9.1-RELEASE >Organization: n.a. >Environment: FreeBSD gw.example.org 9.1-RELEASE FreeBSD 9.1-RELEASE #1 r243787: Mon Dec 3 18:52:28 CET 2012 root@gw.example.org:/usr/obj/usr/src/sys/BEASTIE91 i386 >Description: Building 5.1.68 with clang fails, building with gcc (base) completes without problems. Output from make libtool: compile: clang -DDEFAULT_CHARSET_HOME=\"/usr/local\" -DMYSQL_DATADIR=\"/var/db/mysql\" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR=\"/usr/local/etc\" -DSHAREDIR=\"/usr/local/share/mysql\" -DMYSQL_CLIENT_NO_THREADS -DDONT_USE_RAID -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -march=pentium-m -O3 -fno-omit-frame-pointer -fno-gcse -MT password.lo -MD -MP -MF .deps/password.Tpo -c password.c -o password.o >/dev/null 2>&1 mv -f .deps/password.Tpo .deps/password.Plo /bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile clang -DDEFAULT_CHARSET_HOME="\"/usr/local\"" -DMYSQL_DATADIR="\"/var/db/mysql\"" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR="\"/usr/local/etc\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DMYSQL_CLIENT_NO_THREADS -DDONT_USE_RAID -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -march=pentium-m -O3 -fno-omit-frame-pointer -fno-gcse -MT manager.lo -MD -MP -MF .deps/manager.Tpo -c -o manager.lo manager.c libtool: compile: clang -DDEFAULT_CHARSET_HOME=\"/usr/local\" -DMYSQL_DATADIR=\"/var/db/mysql\" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR=\"/usr/local/etc\" -DSHAREDIR=\"/usr/local/share/mysql\" -DMYSQL_CLIENT_NO_THREADS -DDONT_USE_RAID -I. -I../include -I../include -I../include -O2 -fno-strict-aliasing -pipe -march=pentium-m -O3 -fno-omit-frame-pointer -fno-gcse -MT manager.lo -MD -MP -MF .deps/manager.Tpo -c manager.c -fPIC -DPIC -o .libs/manager.o clang: warning: argument unused during compilation: '-fno-gcse' In file included from manager.c:20: In file included from ../include/my_global.h:444: /usr/include/sys/timeb.h:42:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ manager.c:132:10: error: too few arguments to function call, expected 6, have 5 hp = my_gethostbyname_r(host,&tmp_hostent,buff2,sizeof(buff2), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/my_net.h:113:74: note: expanded from macro 'my_gethostbyname_r' #define my_gethostbyname_r(A,B,C,D,E) gethostbyname_r((A),(B),(C),(D),(E)) ~~~~~~~~~~~~~~~ ^ /usr/include/netdb.h:250:1: note: 'gethostbyname_r' declared here int gethostbyname_r(const char *, struct hostent *, char *, size_t, ^ 1 warning and 1 error generated. *** [manager.lo] Error code 1 1 error *** [all] Error code 2 1 error *** [all-recursive] Error code 1 1 error *** [do-build] Error code 1 Stop in /usr/ports/databases/mysql51-client. >How-To-Repeat: Use clang Build databases/mysql51-client >Fix: Use gcc >Release-Note: >Audit-Trail: >Unformatted: