Bug 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),
Summary: databases/mysql51-client: manager.c:132:10: error: too few arguments to func...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-11 20:50 UTC by O. Hartmann
Modified: 2012-08-28 09:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2012-05-11 20:50:12 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-05-11 20:50:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2012-05-14 09:46:26 UTC
State Changed
From-To: open->feedback

MySQL has not changed, maybe is something related to new clang. 
Anyway, the issue is that gethostbyname_r is not recognized by 
configure script, you should send me the config.log.
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2012-08-28 09:15:36 UTC
State Changed
From-To: feedback->closed

Feedback not received.