Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2012 19:49:05 GMT
From:      Oliver Hartmann <ohartman@zedat.fu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/167805: databases/mysql51-client: 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), 
Message-ID:  <201205111949.q4BJn5lJ090118@red.freebsd.org>
Resent-Message-ID: <201205111950.q4BJoCnX028212@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167805
>Category:       ports
>Synopsis:       databases/mysql51-client:  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),
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 11 19:50:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Hartmann
>Release:        FreeBSD 10.0-CURRENT/amd64
>Organization:
FU Berlin
>Environment:
>Description:
Compiling/updating port databases/mysql51-client ends up in the below shown error:

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 -pipe -O3 -fno-strict-aliasing -march=native -MT libmysql.lo -MD -MP -MF .deps/libmysql.Tpo -c libmysql.c -o libmysql.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 -pipe -O3 -fno-strict-aliasing -march=native -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 -pipe -O3 -fno-strict-aliasing -march=native -MT manager.lo -MD -MP -MF .deps/manager.Tpo -c manager.c  -fPIC -DPIC -o .libs/manager.o
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
mv -f .deps/libmysql.Tpo .deps/libmysql.Plo
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.

===>>> make failed for databases/mysql51-client
===>>> Aborting update

===>>> Update for databases/mysql51-client failed
===>>> Aborting update

Terminated

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205111949.q4BJn5lJ090118>