ports/176105: [databases/mysql51-client] 5.1.68 Fails to build with clang

Spil spil.oss at gmail.com
Wed Feb 13 11:50:00 UTC 2013


>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 at 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 <sys/timeb.h> which is deprecated" [-W#warnings]
#warning "this file includes <sys/timeb.h> 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:


More information about the freebsd-ports-bugs mailing list