LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-01-2010, 03:51 PM   #1
jan.linux
LQ Newbie
 
Registered: Aug 2006
Location: Merelbeke, Belgium
Distribution: Slackware
Posts: 13

Rep: Reputation: 1
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.
Old 06-02-2010, 03:03 AM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
Yes I've hit the same issue myself.

Same builds fine on 13.0.

I'll let you know if I find a solution.
 
Old 06-03-2010, 02:36 AM   #3
paissad
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
i have the same problem too, please let us know if ever you solved it ...
thanks in advance
 
Old 06-03-2010, 12:33 PM   #4
conraid
Member
 
Registered: Feb 2008
Location: Leghorn, Tuscany, Italy
Distribution: Slackware
Posts: 78

Rep: Reputation: 28
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.
Old 06-03-2010, 02:26 PM   #5
jan.linux
LQ Newbie
 
Registered: Aug 2006
Location: Merelbeke, Belgium
Distribution: Slackware
Posts: 13

Original Poster
Rep: Reputation: 1
Thank you, it worked :-)

Quote:
cd /usr/include/mysql/
mv events.h events.h.bak
 
Old 06-03-2010, 04:45 PM   #6
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
Yes, Thank you.
 
Old 11-29-2012, 04:50 PM   #7
Hans R Steiner
LQ Newbie
 
Registered: Nov 2012
Location: Russia, Moscow
Distribution: Slackware
Posts: 1

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix mysql dovecot csdhiman Linux - Server 2 10-03-2009 12:26 PM
postfix mysql csdhiman Linux - Server 6 08-11-2007 02:44 AM
Postfix with mysql asi.linux Linux - Networking 6 05-30-2006 09:28 AM
postfix + mysql cb9fl Linux - General 1 09-01-2004 12:19 AM
Compiling Postfix/MySQL hypernetics Linux - Software 0 12-15-2003 01:43 AM


All times are GMT -5. The time now is 12:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration