D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
Installing /home/pterjan/rpmbuild/SRPMS/mysqludf_curl-1.0-8.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.wNH0kv
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build
+ test -d /home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build
+ /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2JA5RS
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build
+ rm -rf mysql-udf-http-1.0
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/mysql-udf-http-1.0.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mysql-udf-http-1.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/mysqludf_curl-1.0-gcc14.patch
+ sed -i -e 's|mysql-udf-http\(\.so\)|mysql_udf_http\1|g' README
+ sed -i -e 's|mysql-udf-http\([_\.]la\)|mysql_udf_http\1|g' -e 's|\(-module\)|\1 -avoid-version|g' src/Makefile.am
+ touch NEWS AUTHORS ChangeLog
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.sIshUK
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd mysql-udf-http-1.0
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ autoreconf -fi
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:3: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:3: You should use the 'AC_CONFIG_HEADERS' macro instead.
aclocal.m4:10247: AM_CONFIG_HEADER is expanded from...
configure.ac:3: the top level
configure.ac:5: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:9969: AM_INIT_AUTOMAKE is expanded from...
configure.ac:5: the top level
configure.ac:8: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:8: You should run autoupdate.
aclocal.m4:122: AC_PROG_LIBTOOL is expanded from...
configure.ac:8: the top level
configure.ac:15: warning: The macro 'AC_HELP_STRING' is obsolete.
configure.ac:15: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
config/ac_curl.m4:38: LIBCURL_CHECK_CONFIG is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from...
./lib/autoconf/general.m4:2892: _AC_LINK_IFELSE is expanded from...
./lib/autoconf/general.m4:2909: AC_LINK_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
config/ac_curl.m4:38: LIBCURL_CHECK_CONFIG is expanded from...
configure.ac:15: the top level
configure.ac:30: warning: AC_OUTPUT should be used without arguments.
configure.ac:30: You should run autoupdate.
configure.ac:5: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:5: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:7: installing 'config/compile'
configure.ac:5: installing 'config/missing'
Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Makefile.am: installing './INSTALL'
Makefile.am: installing './COPYING' using GNU General Public License v3 file
Makefile.am:     Consider adding the COPYING file to the version control system
Makefile.am:     for your code, to avoid questions about which license your project uses
src/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am: installing 'config/depcomp'
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ CONFIGURE_TOP=.
+ '[' 1 = 1 ']'
++ find . -name config.guess -o -name config.sub
+ for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub)
++ basename ./config/config.guess
+ '[' -f /usr/lib/rpm/mageia/config.guess ']'
++ basename ./config/config.guess
+ cp -af /usr/lib/rpm/mageia/config.guess ./config/config.guess
+ for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub)
++ basename ./config/config.sub
+ '[' -f /usr/lib/rpm/mageia/config.sub ']'
++ basename ./config/config.sub
+ cp -af /usr/lib/rpm/mageia/config.sub ./config/config.sub
+ /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool
Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html)
+ /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool
Modifying config/ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking)
+ /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking
+ /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs .
+ /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64
+ ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-mysql=/usr/bin/mysql_config
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking for x86_64-mageia-linux-gnu-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... none
checking build system type... x86_64-mageia-linux-gnu
checking host system type... x86_64-mageia-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-mageia-linux-gnu file names to x86_64-mageia-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-mageia-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for x86_64-mageia-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-mageia-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-mageia-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for x86_64-mageia-linux-gnu-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64-mageia-linux-gnu-strip... no
checking for strip... strip
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-mageia-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for mysql_config... "/usr/bin/mysql_config"
checking for gawk... (cached) gawk
checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 8.12.1
checking whether libcurl is usable... yes
checking for curl_free... yes
checking for x86_64-mageia-linux-gnu-pkg-config... /usr/bin/x86_64-mageia-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libcurl >= 7.15... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for limits.h... yes
checking for syslimits.h... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/curl_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ /usr/bin/make -O -j16 V=1 VERBOSE=1
Making all in src
/usr/bin/make  all-am
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build/mysql-udf-http-1.0/src'
/bin/sh ../libtool --preserve-dup-deps  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include/mysql -I/usr/include/mysql/mysql   -lcurl    -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o mysql-udf-http.lo mysql-udf-http.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include/mysql -I/usr/include/mysql/mysql -lcurl -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c mysql-udf-http.c  -fPIC -DPIC -o .libs/mysql-udf-http.o
mysql-udf-http.c:9:23: error: unknown type name 'UDF_INIT'
    9 | my_bool http_get_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
      |                       ^~~~~~~~
mysql-udf-http.c:9:41: error: unknown type name 'UDF_ARGS'
    9 | my_bool http_get_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
      |                                         ^~~~~~~~
mysql-udf-http.c:10:16: error: unknown type name 'UDF_INIT'
   10 | char *http_get(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, char *is_null, char *error);
      |                ^~~~~~~~
mysql-udf-http.c:10:34: error: unknown type name 'UDF_ARGS'
   10 | char *http_get(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, char *is_null, char *error);
      |                                  ^~~~~~~~
mysql-udf-http.c:11:22: error: unknown type name 'UDF_INIT'
   11 | void http_get_deinit(UDF_INIT *initid);
      |                      ^~~~~~~~
mysql-udf-http.c:13:24: error: unknown type name 'UDF_INIT'
   13 | my_bool http_post_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
      |                        ^~~~~~~~
mysql-udf-http.c:13:42: error: unknown type name 'UDF_ARGS'
   13 | my_bool http_post_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
      |                                          ^~~~~~~~
mysql-udf-http.c:14:17: error: unknown type name 'UDF_INIT'
   14 | char *http_post(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, char *is_null, char *error);
      |                 ^~~~~~~~
mysql-udf-http.c:14:35: error: unknown type name 'UDF_ARGS'
   14 | char *http_post(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, char *is_null, char *error);
      |                                   ^~~~~~~~
mysql-udf-http.c:15:23: error: unknown type name 'UDF_INIT'
   15 | void http_post_deinit(UDF_INIT *initid);
      |                       ^~~~~~~~
mysql-udf-http.c:17:23: error: unknown type name 'UDF_INIT'
   17 | my_bool http_put_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
      |                       ^~~~~~~~
mysql-udf-http.c:17:41: error: unknown type name 'UDF_ARGS'
   17 | my_bool http_put_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
      |                                         ^~~~~~~~
mysql-udf-http.c:18:16: error: unknown type name 'UDF_INIT'
   18 | char *http_put(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, char *is_null, char *error);
      |                ^~~~~~~~
mysql-udf-http.c:18:34: error: unknown type name 'UDF_ARGS'
   18 | char *http_put(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, char *is_null, char *error);
      |                                  ^~~~~~~~
mysql-udf-http.c:19:22: error: unknown type name 'UDF_INIT'
   19 | void http_put_deinit(UDF_INIT *initid);
      |                      ^~~~~~~~
mysql-udf-http.c:21:26: error: unknown type name 'UDF_INIT'
   21 | my_bool http_delete_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
      |                          ^~~~~~~~
mysql-udf-http.c:21:44: error: unknown type name 'UDF_ARGS'
   21 | my_bool http_delete_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
      |                                            ^~~~~~~~
mysql-udf-http.c:22:19: error: unknown type name 'UDF_INIT'
   22 | char *http_delete(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, char *is_null, char *error);
      |                   ^~~~~~~~
mysql-udf-http.c:22:37: error: unknown type name 'UDF_ARGS'
   22 | char *http_delete(UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, char *is_null, char *error);
      |                                     ^~~~~~~~
mysql-udf-http.c:23:25: error: unknown type name 'UDF_INIT'
   23 | void http_delete_deinit(UDF_INIT *initid);
      |                         ^~~~~~~~
mysql-udf-http.c:53:23: error: unknown type name 'UDF_INIT'
   53 | my_bool http_get_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
      |                       ^~~~~~~~
mysql-udf-http.c:53:41: error: unknown type name 'UDF_ARGS'
   53 | my_bool http_get_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
      |                                         ^~~~~~~~
mysql-udf-http.c:75:16: error: unknown type name 'UDF_INIT'
   75 | char *http_get(UDF_INIT *initid, UDF_ARGS *args,
      |                ^~~~~~~~
mysql-udf-http.c:75:34: error: unknown type name 'UDF_ARGS'
   75 | char *http_get(UDF_INIT *initid, UDF_ARGS *args,
      |                                  ^~~~~~~~
In file included from mysql-udf-http.c:6:
mysql-udf-http.c:93:5: error: expected end of line before 'push'
   93 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:93:5: error: expected end of line before 'ignored'
   93 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:93:5: error: expected end of line before 'pop'
   93 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:94:5: error: expected end of line before 'push'
   94 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:94:5: error: expected end of line before 'ignored'
   94 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:94:5: error: expected end of line before 'pop'
   94 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:95:5: error: expected end of line before 'push'
   95 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:95:5: error: expected end of line before 'ignored'
   95 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:95:5: error: expected end of line before 'pop'
   95 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:96:5: error: expected end of line before 'push'
   96 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:96:5: error: expected end of line before 'ignored'
   96 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:96:5: error: expected end of line before 'pop'
   96 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:114:22: error: unknown type name 'UDF_INIT'
  114 | void http_get_deinit(UDF_INIT *initid)
      |                      ^~~~~~~~
mysql-udf-http.c:126:24: error: unknown type name 'UDF_INIT'
  126 | my_bool http_post_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
      |                        ^~~~~~~~
mysql-udf-http.c:126:42: error: unknown type name 'UDF_ARGS'
  126 | my_bool http_post_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
      |                                          ^~~~~~~~
mysql-udf-http.c:148:17: error: unknown type name 'UDF_INIT'
  148 | char *http_post(UDF_INIT *initid, UDF_ARGS *args,
      |                 ^~~~~~~~
mysql-udf-http.c:148:35: error: unknown type name 'UDF_ARGS'
  148 | char *http_post(UDF_INIT *initid, UDF_ARGS *args,
      |                                   ^~~~~~~~
mysql-udf-http.c:169:5: error: expected end of line before 'push'
  169 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:169:5: error: expected end of line before 'ignored'
  169 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:169:5: error: expected end of line before 'pop'
  169 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:170:5: error: expected end of line before 'push'
  170 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:170:5: error: expected end of line before 'ignored'
  170 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:170:5: error: expected end of line before 'pop'
  170 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:171:5: error: expected end of line before 'push'
  171 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:171:5: error: expected end of line before 'ignored'
  171 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:171:5: error: expected end of line before 'pop'
  171 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:172:5: error: expected end of line before 'push'
  172 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:172:5: error: expected end of line before 'ignored'
  172 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:172:5: error: expected end of line before 'pop'
  172 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:173:5: error: expected end of line before 'push'
  173 |     curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:173:5: error: expected end of line before 'ignored'
  173 |     curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:173:5: error: expected end of line before 'pop'
  173 |     curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:174:5: error: expected end of line before 'push'
  174 |     curl_easy_setopt(curl, CURLOPT_POSTFIELDS, args->args[1]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:174:5: error: expected end of line before 'ignored'
  174 |     curl_easy_setopt(curl, CURLOPT_POSTFIELDS, args->args[1]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:174:5: error: expected end of line before 'pop'
  174 |     curl_easy_setopt(curl, CURLOPT_POSTFIELDS, args->args[1]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:192:23: error: unknown type name 'UDF_INIT'
  192 | void http_post_deinit(UDF_INIT *initid)
      |                       ^~~~~~~~
mysql-udf-http.c:204:23: error: unknown type name 'UDF_INIT'
  204 | my_bool http_put_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
      |                       ^~~~~~~~
mysql-udf-http.c:204:41: error: unknown type name 'UDF_ARGS'
  204 | my_bool http_put_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
      |                                         ^~~~~~~~
mysql-udf-http.c:226:16: error: unknown type name 'UDF_INIT'
  226 | char *http_put(UDF_INIT *initid, UDF_ARGS *args,
      |                ^~~~~~~~
mysql-udf-http.c:226:34: error: unknown type name 'UDF_ARGS'
  226 | char *http_put(UDF_INIT *initid, UDF_ARGS *args,
      |                                  ^~~~~~~~
mysql-udf-http.c:247:5: error: expected end of line before 'push'
  247 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:247:5: error: expected end of line before 'ignored'
  247 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:247:5: error: expected end of line before 'pop'
  247 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:248:5: error: expected end of line before 'push'
  248 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:248:5: error: expected end of line before 'ignored'
  248 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:248:5: error: expected end of line before 'pop'
  248 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:249:5: error: expected end of line before 'push'
  249 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:249:5: error: expected end of line before 'ignored'
  249 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:249:5: error: expected end of line before 'pop'
  249 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:250:5: error: expected end of line before 'push'
  250 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:250:5: error: expected end of line before 'ignored'
  250 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:250:5: error: expected end of line before 'pop'
  250 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:251:5: error: expected end of line before 'push'
  251 |     curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:251:5: error: expected end of line before 'ignored'
  251 |     curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:251:5: error: expected end of line before 'pop'
  251 |     curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:252:5: error: expected end of line before 'push'
  252 |     curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:252:5: error: expected end of line before 'ignored'
  252 |     curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:252:5: error: expected end of line before 'pop'
  252 |     curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:253:5: error: expected end of line before 'push'
  253 |     curl_easy_setopt(curl, CURLOPT_POSTFIELDS, args->args[1]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:253:5: error: expected end of line before 'ignored'
  253 |     curl_easy_setopt(curl, CURLOPT_POSTFIELDS, args->args[1]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:253:5: error: expected end of line before 'pop'
  253 |     curl_easy_setopt(curl, CURLOPT_POSTFIELDS, args->args[1]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:271:22: error: unknown type name 'UDF_INIT'
  271 | void http_put_deinit(UDF_INIT *initid)
      |                      ^~~~~~~~
mysql-udf-http.c:283:26: error: unknown type name 'UDF_INIT'
  283 | my_bool http_delete_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
      |                          ^~~~~~~~
mysql-udf-http.c:283:44: error: unknown type name 'UDF_ARGS'
  283 | my_bool http_delete_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
      |                                            ^~~~~~~~
mysql-udf-http.c:305:19: error: unknown type name 'UDF_INIT'
  305 | char *http_delete(UDF_INIT *initid, UDF_ARGS *args,
      |                   ^~~~~~~~
mysql-udf-http.c:305:37: error: unknown type name 'UDF_ARGS'
  305 | char *http_delete(UDF_INIT *initid, UDF_ARGS *args,
      |                                     ^~~~~~~~
mysql-udf-http.c:323:5: error: expected end of line before 'push'
  323 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:323:5: error: expected end of line before 'ignored'
  323 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:323:5: error: expected end of line before 'pop'
  323 |     curl_easy_setopt(curl, CURLOPT_URL, args->args[0]);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:324:5: error: expected end of line before 'push'
  324 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:324:5: error: expected end of line before 'ignored'
  324 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:324:5: error: expected end of line before 'pop'
  324 |     curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, result_cb);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:325:5: error: expected end of line before 'push'
  325 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:325:5: error: expected end of line before 'ignored'
  325 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:325:5: error: expected end of line before 'pop'
  325 |     curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)res);
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:326:5: error: expected end of line before 'push'
  326 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:326:5: error: expected end of line before 'ignored'
  326 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:326:5: error: expected end of line before 'pop'
  326 |     curl_easy_setopt(curl, CURLOPT_USERAGENT, "mysql-udf-http/1.0");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:327:5: error: expected end of line before 'push'
  327 |     curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:327:5: error: expected end of line before 'ignored'
  327 |     curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:327:5: error: expected end of line before 'pop'
  327 |     curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
      |     ^~~~~~~~~~~~~~~~
mysql-udf-http.c:345:25: error: unknown type name 'UDF_INIT'
  345 | void http_delete_deinit(UDF_INIT *initid)
      |                         ^~~~~~~~
make[2]: *** [Makefile:465: mysql-udf-http.lo] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/mysqludf_curl-1.0-build/mysql-udf-http-1.0/src'
make[1]: *** [Makefile:347: all] Error 2
make: *** [Makefile:401: all-recursive] Error 1
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.sIshUK (%build)

RPM build errors:
    Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.sIshUK (%build)
I: [iurt_root_command] ERROR: chroot