Slackware This Forum is for the discussion of Slackware Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
06-01-2010, 03:51 PM
#1
LQ Newbie
Registered: Aug 2006
Location: Merelbeke, Belgium
Distribution: Slackware
Posts: 13
Rep:
Slackware 13.1 + Postfix + MySQL
I'm trying to compile Postfix with MySQL support on Slackware 13.1. This is what I get:
Code:
make -f Makefile.init makefiles \
> 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql' \
> 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm'
Code:
make
rm -f libexec/post-install && ln -sf ../conf/post-install libexec/post-install
rm -f libexec/postfix-files && ln -sf ../conf/postfix-files libexec/postfix-files
rm -f libexec/postfix-script && ln -sf ../conf/postfix-script libexec/postfix-script
rm -f libexec/postfix-wrapper && ln -sf ../conf/postfix-wrapper libexec/postfix-wrapper
rm -f libexec/main.cf && ln -sf ../conf/main.cf libexec/main.cf
rm -f libexec/master.cf && ln -sf ../conf/master.cf libexec/master.cf
rm -f libexec/postmulti-script && ln -sf ../conf/postmulti-script libexec/postmulti-script
set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master src/postfix src/fsstone src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/qmqpd src/spawn src/flush src/verify src/virtual src/proxymap src/anvil src/scache src/discard src/tlsmgr src/postmulti; do \
(set -e; echo "[$i]"; cd $i; make 'CC=gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE ' update MAKELEVEL=) || exit 1; \
done
[src/util]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c alldig.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c allprint.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c argv.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c argv_split.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c attr_clnt.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c attr_print0.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c attr_print64.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c attr_print_plain.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c attr_scan0.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c attr_scan64.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c attr_scan_plain.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -g -O -I. -DLINUX2 -c auto_clnt.c
In file included from auto_clnt.c:105:
/usr/include/mysql/events.h:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Event_parse_data'
/usr/include/mysql/events.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Event_db_repository'
/usr/include/mysql/events.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Event_queue'
/usr/include/mysql/events.h:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Event_scheduler'
/usr/include/mysql/events.h:47: error: expected ')' before 's'
/usr/include/mysql/events.h:70: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Events'
make: *** [auto_clnt.o] Error 1
make: *** [update] Error 1
Slackware 13.1 with MySQL 5.1.46
Postfix 2.7.0
Any ideas?
Click here to see the post LQ members have rated as the most helpful post in this thread.
06-02-2010, 03:03 AM
#2
Slackware Contributor
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999
Yes I've hit the same issue myself.
Same builds fine on 13.0.
I'll let you know if I find a solution.
06-03-2010, 02:36 AM
#3
LQ Newbie
Registered: Jun 2010
Posts: 1
Rep:
i have the same problem too, please let us know if ever you solved it ...
thanks in advance
06-03-2010, 12:33 PM
#4
Member
Registered: Feb 2008
Location: Leghorn, Tuscany, Italy
Distribution: Slackware
Posts: 122
Rep:
Rename /usr/include/mysql/events.h, because postfix has a file src/util/events.h and when builds postfix with mysql support it will use the mysql files
Last edited by conraid; 06-03-2010 at 12:34 PM .
4 members found this post helpful.
06-03-2010, 02:26 PM
#5
LQ Newbie
Registered: Aug 2006
Location: Merelbeke, Belgium
Distribution: Slackware
Posts: 13
Original Poster
Rep:
Thank you, it worked :-)
Quote:
cd /usr/include/mysql/
mv events.h events.h.bak
06-03-2010, 04:45 PM
#6
Slackware Contributor
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999
Yes, Thank you.
11-29-2012, 04:50 PM
#7
LQ Newbie
Registered: Nov 2012
Location: Russia, Moscow
Distribution: Slackware
Posts: 1
Rep:
if you don't have root permissions
Code:
mv /usr/include/mysql/events.h /usr/include/mysql/events.h.bkp
mv: cannot move `/usr/include/mysql/events.h' to `/usr/include/mysql/events.h.bkp': Permission denied
you can replace
#include <events.h> on
#include "../../src/util/events.h" in sources
Code:
cd ${POSTFIX_BUILDDIR}
sed -ri 's!<events.h>!"events.h"!g ; s!"events.h"!"../../src/util/events.h"!g' $(grep -r '#include [<|"]events.h["|>]' * | cut -d: -f1 | uniq)
Last edited by Hans R Steiner; 12-04-2012 at 06:04 AM .
All times are GMT -5. The time now is 06:32 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News