Make error

Issue #1064 resolved
Jorge Gomes created an issue

Hi Janos, thanks for this lovely piece of software.

OS: Centos 7 - updated

Last upgrade: ok, in 4 apr 2019

Using the CLI commands::

./configure --localstatedir=/var --with-database=mysql --enable-memcached --enable-tcpwrappers
make
make install


Now I’m trying to upgrade from 1.3.5-pre1 to the lates 1.3.8, using your repo, but I’m getting this error::

Making all in src
make[1]: Entering directory /root/piler/src' gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c dirs.c -o dirs.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c base64.c -o base64.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c misc.c -o misc.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c counters.c -o counters.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c cfg.c -o cfg.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c sig.c -o sig.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c decoder.c -o decoder.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c hash.c -o hash.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c parser.c -o parser.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c parser_utils.c -o parser_utils.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c rules.c -o rules.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c smtp.c -o smtp.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c session.c -o session.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c bdat.c -o bdat.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c message.c -o message.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c attachment.c -o attachment.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c digest.c -o digest.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c store.c -o store.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c archive.c -o archive.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c tai.c -o tai.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c import.c -o import.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c import_maildir.c -o import_maildir.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c import_mailbox.c -o import_mailbox.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c import_pop3.c -o import_pop3.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c import_imap.c -o import_imap.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c imap.c -o imap.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c pop3.c -o pop3.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c extract.c -o extract.o extract.c: In function ‘extract_attachment_content’: extract.c:208:122: warning: unused parameter ‘rec’ [-Wunused-parameter] void extract_attachment_content(struct session_data *sdata, struct parser_state *state, char *filename, char *type, int *rec, struct config *cfg){ ^ extract.c: At top level: cc1: warning: unrecognized command line option "-Wno-format-truncation" [enabled by default] gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c mydomains.c -o mydomains.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c tokenizer.c -o tokenizer.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c memc.c -o memc.o gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -c mysql.c -o mysql.o ar cr libpiler.a dirs.o base64.o misc.o counters.o cfg.o sig.o decoder.o hash.o parser.o parser_utils.o rules.o smtp.o session.o bdat.o message.o attachment.o digest.o store.o archive.o tai.o import.o import_maildir.o import_mailbox.o import_po p3.o import_imap.o imap.o pop3.o extract.o mydomains.o tokenizer.o memc.o mysql.o ranlib libpiler.a gcc -shared -Wl,-soname,libpiler.so.0.1.1 -o libpiler.so.0.1.1 dirs.o base64.o misc.o counters.o cfg.o sig.o decoder.o hash.o parser.o parser_utils.o rules.o smtp.o session.o bdat.o message.o attachment.o digest.o store.o archive.o tai.o import .o import_maildir.o import_mailbox.o import_pop3.o import_imap.o imap.o pop3.o extract.o mydomains.o tokenizer.o memc.o mysql.o ln -sf libpiler.so.0.1.1 libpiler.so ln -sf libpiler.so.0.1.1 libpiler.so.0 gcc -std=c99 -O2 -fPIC -Wall -Wextra -Wuninitialized -Wno-format-truncation -g -I. -I.. -I/usr/include/mysql -I/usr/include/mysql/mysql -D_GNU_SOURCE -DHAVE_TRE -DHAVE_MEMCACHED -DNEED_MYSQL -o piler piler.c -lpiler -lz -lm -ldl -lcrypto -lss l -ltre -lwrap -lnsl -L/usr/lib64/ -lmariadb -L. /usr/bin/ld: /usr/lib64//libmariadb.a(mariadb_lib.c.o): undefined reference to symbol 'pthread_once@@GLIBC_2.2.5' //usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[1]: *** [piler] Error 1 make[1]: Leaving directory/root/piler/src'
make: *** [all-recursive] Error 1

Can you help in any way?

Thanks in advance.

JG

Comments (4)

  1. Jorge Gomes reporter

    Hi Janos,

    Thank your for your reply.

    Yes, that was the trick to solve the issue.

    I just come here to say that, LOL.

    Thank you for your support.

    TTK closed

    Regards.

    JG

  2. Log in to comment