compiling on CentOS 7 - arguments list

Bug #1669874 reported by Jonathon Jenkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
percona-pam-for-mysql
New
Undecided
Unassigned

Bug Description

I am having some issues compiling this project on CentOS 7 - please let me know if I can provide any information in addition to what I have below.

Thanks much!

==========================
output of make
==========================
make all-recursive
make[1]: Entering directory `/root/test/percona-pam-for-mysql'
Making all in src
make[2]: Entering directory `/root/test/percona-pam-for-mysql/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DMYSQL_DYNAMIC_PLUGIN -isystem /usr/include/mysql -Wall -Wextra -g -O2 -MT auth_pam_la-groups.lo -MD -MP -MF .deps/auth_pam_la-groups.Tpo -c -o auth_pam_la-groups.lo `test -f 'groups.c' || echo './'`groups.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DMYSQL_DYNAMIC_PLUGIN -isystem /usr/include/mysql -Wall -Wextra -g -O2 -MT auth_pam_la-groups.lo -MD -MP -MF .deps/auth_pam_la-groups.Tpo -c groups.c -fPIC -DPIC -o .libs/auth_pam_la-groups.o
groups.c: In function 'groups_iter_new':
groups.c:55:40: error: too few arguments to function 'mysql_malloc_service->mysql_malloc'
                                        MYF(MY_FAE | MY_ZEROFILL));
                                        ^
groups.c:61:3: error: too few arguments to function 'mysql_malloc_service->mysql_malloc'
   it->buf= (char *) my_malloc(it->buf_size, MYF(MY_FAE));
   ^
groups.c:67:5: warning: passing argument 1 of 'mysql_malloc_service->mysql_realloc' makes integer from pointer without a cast [enabled by default]
     it->buf= (char *) my_realloc(it->buf, it->buf_size, MYF(MY_FAE));
     ^
groups.c:67:5: note: expected 'PSI_memory_key' but argument is of type 'char *'
groups.c:67:5: warning: passing argument 2 of 'mysql_malloc_service->mysql_realloc' makes pointer from integer without a cast [enabled by default]
groups.c:67:5: note: expected 'void *' but argument is of type 'int'
groups.c:67:5: error: too few arguments to function 'mysql_malloc_service->mysql_realloc'
groups.c:81:3: error: too few arguments to function 'mysql_malloc_service->mysql_malloc'
   it->groups= (gid_t *) my_malloc(it->ngroups * sizeof(gid_t), MYF(MY_FAE));
   ^
groups.c:86:38: warning: passing argument 1 of 'mysql_malloc_service->mysql_realloc' makes integer from pointer without a cast [enabled by default]
                                      MYF(MY_FAE));
                                      ^
groups.c:86:38: note: expected 'PSI_memory_key' but argument is of type 'gid_t *'
groups.c:86:38: warning: passing argument 2 of 'mysql_malloc_service->mysql_realloc' makes pointer from integer without a cast [enabled by default]
groups.c:86:38: note: expected 'void *' but argument is of type 'long unsigned int'
groups.c:86:38: error: too few arguments to function 'mysql_malloc_service->mysql_realloc'
groups.c: In function 'groups_iter_next':
groups.c:118:5: warning: passing argument 1 of 'mysql_malloc_service->mysql_realloc' makes integer from pointer without a cast [enabled by default]
     it->buf= (char *) my_realloc(it->buf, it->buf_size, MYF(MY_FAE));
     ^
groups.c:118:5: note: expected 'PSI_memory_key' but argument is of type 'char *'
groups.c:118:5: warning: passing argument 2 of 'mysql_malloc_service->mysql_realloc' makes pointer from integer without a cast [enabled by default]
groups.c:118:5: note: expected 'void *' but argument is of type 'int'
groups.c:118:5: error: too few arguments to function 'mysql_malloc_service->mysql_realloc'
make[2]: *** [auth_pam_la-groups.lo] Error 1
make[2]: Leaving directory `/root/test/percona-pam-for-mysql/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/test/percona-pam-for-mysql'
make: *** [all] Error 2

==========================
end - output of make
==========================

==========================
Specs
==========================
CentOS 7
Linux 3.10.0-514.6.2.el7.x86_64 #1 SMP Thu Feb 23 03:04:39 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Percona-Server-shared-compat-57-5.7.17-11.1.el7.x86_64
Percona-Server-shared-57-5.7.17-11.1.el7.x86_64
Percona-Server-server-57-5.7.17-11.1.el7.x86_64
Percona-Server-devel-57-5.7.17-11.1.el7.x86_64
Percona-Server-client-57-5.7.17-11.1.el7.x86_64
Percona-Server-57-debuginfo-5.7.17-11.1.el7.x86_64

gcc-c++-4.8.5-11.el7.x86_64
libgcc-4.8.5-11.el7.x86_64
gcc-4.8.5-11.el7.x86_64
make-3.82-23.el7.x86_64

<config.log attached>

Revision history for this message
Jonathon Jenkins (jonpjenkins) wrote :
Revision history for this message
Jonathon Jenkins (jonpjenkins) wrote :

I was able to get traction on this by using the src files from the rpm:

cp /usr/src/debug/percona-server-5.7.17-11/percona-server-5.7.17-11/plugin/percona-pam-for-mysql/src/* src/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.