Recompiling Postfix with MySQL support

It took me so much time that I think the following explanation could be useful.
Goal: Recompiling Postfix with MySQL support without losing compatibility with Apple administration tools
Original instructions from webutilities:
downloaded the postfix from the Darwin Sources here:
http://www.opensource.apple.com/darwinsource/10.4.3/
Thx to pterobyte
i created the directorys
/src
i put the source in there
/src/postfix-144
and
/AppleInternal/Deverloper/Headers
i put the Sasl headers in there
/AppleInternal/Deverloper/Headers/sasl
then i modyfied the makefile in postfix-144
SRCROOT=
to
SRCROOT=/src/postfix-144
and
build :
echo "ENV = $(ENV)"
$(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) makefiles OPT="-DBIND8COMPAT -DHAS_SSL -DUSESASLAUTH -D_APPLE_ \
-I/AppleInternal/Developer/Headers/sasl -framework DirectoryService $(CFLAGS)" \
AUXLIBS="-L/usr/lib -lssl -lsasl2.2.0.1 -lgssapi_krb5"
$(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT)
cd $(SRCROOT)/postfix/src/smtpstone && make all
to
build :
echo "ENV = $(ENV)"
$(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) makefiles OPT="-DBIND8COMPAT -DHAS_SSL -DUSESASLAUTH -D_APPLE_ \
-I/AppleInternal/Developer/Headers/sasl -framework DirectoryService $(CFLAGS) -DHAS_MYSQL -I/usr/include/mysql" \
AUXLIBS="-L/usr/lib/sasl2 -lssl -lsasl2.2.0.1 -lgssapi_krb5 -L/usr/lib/mysql -lmysqlclient -lz -lm"
$(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT)
cd $(SRCROOT)/postfix/src/smtpstone && make all
then in the cli
cd /src/postfix-144
make build
cd postfix
i tryed to
make update
but it gave me
nothing to do back
so i made a backup of the postfix files
mv /usr/sbin/postfix /usr/sbin/postfix.bak
mv /usr/sbin/postfconf /usr/sbin/postfconf.bak
mv /usr/libexec/postfix /usr/libexec/postfix.bak
i moved
mv src/postfix/postfix /usr/sbin
mv src/postfconf/postfconf /usr/sbin
mv libexec /usr/libexec/postfix
Here is what I did not understand first:
1. SASL headers
These headers can be found in Apple's distribution of passwordserver_sasl-59.3 (http://www.opensource.apple.com/darwinsource/10.4.4/). Here is the list:
-rw-r--r-- 1 administ admin 5472 Sep 3 2002 exits.h
-rw-r--r-- 1 root wheel 3547 Apr 11 2005 gai.h
-rw-r--r-- 1 root wheel 1368 Apr 11 2005 hmac-md5.h
-rw-r--r-- 1 root wheel 1442 Apr 11 2005 md5.h
-rw-r--r-- 1 root wheel 1007 Apr 11 2005 md5global.h
-rw-r--r-- 1 root wheel 7273 Apr 11 2005 prop.h
-rw-r--r-- 1 root wheel 47906 Apr 11 2005 sasl.h
-rw-r--r-- 1 root wheel 30986 Apr 11 2005 saslplug.h
-rw-r--r-- 1 root wheel 2648 Apr 11 2005 saslutil.h
2. Postfix update
I did a "make build", then moved to /src/postfix-144/postfix and did a "make update". But it was not enough, I had to follow the instructions by manually copying the files (src/postfix/postfix, src/postfconf/postfconf, libexec).
And it seems to work fine!
David

It took me so much time that I think the following explanation could be useful.
Goal: Recompiling Postfix with MySQL support without losing compatibility with Apple administration tools
Original instructions from webutilities:
downloaded the postfix from the Darwin Sources here:
http://www.opensource.apple.com/darwinsource/10.4.3/
Thx to pterobyte
i created the directorys
/src
i put the source in there
/src/postfix-144
and
/AppleInternal/Deverloper/Headers
i put the Sasl headers in there
/AppleInternal/Deverloper/Headers/sasl
then i modyfied the makefile in postfix-144
SRCROOT=
to
SRCROOT=/src/postfix-144
and
build :
echo "ENV = $(ENV)"
$(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) makefiles OPT="-DBIND8COMPAT -DHAS_SSL -DUSESASLAUTH -D_APPLE_ \
-I/AppleInternal/Developer/Headers/sasl -framework DirectoryService $(CFLAGS)" \
AUXLIBS="-L/usr/lib -lssl -lsasl2.2.0.1 -lgssapi_krb5"
$(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT)
cd $(SRCROOT)/postfix/src/smtpstone && make all
to
build :
echo "ENV = $(ENV)"
$(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT) makefiles OPT="-DBIND8COMPAT -DHAS_SSL -DUSESASLAUTH -D_APPLE_ \
-I/AppleInternal/Developer/Headers/sasl -framework DirectoryService $(CFLAGS) -DHAS_MYSQL -I/usr/include/mysql" \
AUXLIBS="-L/usr/lib/sasl2 -lssl -lsasl2.2.0.1 -lgssapi_krb5 -L/usr/lib/mysql -lmysqlclient -lz -lm"
$(ENV) $(MAKE) -C $(SRCROOT)/$(PROJECT)
cd $(SRCROOT)/postfix/src/smtpstone && make all
then in the cli
cd /src/postfix-144
make build
cd postfix
i tryed to
make update
but it gave me
nothing to do back
so i made a backup of the postfix files
mv /usr/sbin/postfix /usr/sbin/postfix.bak
mv /usr/sbin/postfconf /usr/sbin/postfconf.bak
mv /usr/libexec/postfix /usr/libexec/postfix.bak
i moved
mv src/postfix/postfix /usr/sbin
mv src/postfconf/postfconf /usr/sbin
mv libexec /usr/libexec/postfix
Here is what I did not understand first:
1. SASL headers
These headers can be found in Apple's distribution of passwordserver_sasl-59.3 (http://www.opensource.apple.com/darwinsource/10.4.4/). Here is the list:
-rw-r--r-- 1 administ admin 5472 Sep 3 2002 exits.h
-rw-r--r-- 1 root wheel 3547 Apr 11 2005 gai.h
-rw-r--r-- 1 root wheel 1368 Apr 11 2005 hmac-md5.h
-rw-r--r-- 1 root wheel 1442 Apr 11 2005 md5.h
-rw-r--r-- 1 root wheel 1007 Apr 11 2005 md5global.h
-rw-r--r-- 1 root wheel 7273 Apr 11 2005 prop.h
-rw-r--r-- 1 root wheel 47906 Apr 11 2005 sasl.h
-rw-r--r-- 1 root wheel 30986 Apr 11 2005 saslplug.h
-rw-r--r-- 1 root wheel 2648 Apr 11 2005 saslutil.h
2. Postfix update
I did a "make build", then moved to /src/postfix-144/postfix and did a "make update". But it was not enough, I had to follow the instructions by manually copying the files (src/postfix/postfix, src/postfconf/postfconf, libexec).
And it seems to work fine!
David

Similar Messages

  • Building postfix with mysql problem

    Hi all,
    I have a sun fire v880 machine running solaris 10, i need to set an email server using postfix+mysql.
    I already installed myql and its working fine. but when trying to build postfix with mysql i get a compliation error, here's wts going on:
    bash-3.00# make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/bdb/include -I/opt/mysql/mysql/include -DUSE_SASL_AUTH' 'AUXLIBS=-L/opt/mysql/mysql/lib -R/opt/mysql/mysql/lib -lmysqlclient -lz -lm'
    (echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
    set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp; \
    else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null
    set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master src/postfix 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; do \
    (set -e; echo "[$i]"; cd $i; rm -f Makefile; \
    make -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
    done;
    [src/util]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/global]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/dns]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/tls]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/xsasl]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/milter]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/master]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postfix]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtpstone]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/sendmail]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/error]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/pickup]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/cleanup]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtpd]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/local]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/trivial-rewrite]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/qmgr]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/oqmgr]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtp]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/bounce]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/pipe]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/showq]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postalias]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postcat]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postconf]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postdrop]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postkick]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postlock]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postlog]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postmap]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postqueue]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postsuper]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/qmqpd]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/spawn]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/flush]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/verify]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/virtual]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/proxymap]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/anvil]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/scache]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/discard]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/tlsmgr]
    (set -e; echo "# DO NOT EDIT"; /bin/sh ../../makedefs && cat Makefile.in) >Makefile
    rm -f Makefile; (cat conf/makedefs.out Makefile.in) >Makefile
    * Then when i run:
    bash-3.00# /usr/local/bin/make
    The compilation goes on till i get the following error
    "ld: warning: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64
    Undefined first referenced
    symbol in file
    mysql_fetch_row ../../lib/libglobal.a(dict_mysql.o)
    mysql_query ../../lib/libglobal.a(dict_mysql.o)
    mysql_error ../../lib/libglobal.a(dict_mysql.o)
    mysql_close ../../lib/libglobal.a(dict_mysql.o)
    mysql_free_result ../../lib/libglobal.a(dict_mysql.o)
    mysql_store_result ../../lib/libglobal.a(dict_mysql.o)
    mysql_init ../../lib/libglobal.a(dict_mysql.o)
    mysql_real_connect ../../lib/libglobal.a(dict_mysql.o)
    mysql_real_escape_string ../../lib/libglobal.a(dict_mysql.o)
    mysql_num_rows ../../lib/libglobal.a(dict_mysql.o)
    mysql_num_fields ../../lib/libglobal.a(dict_mysql.o)
    mysql_escape_string ../../lib/libglobal.a(dict_mysql.o)
    ld: fatal: Symbol referencing errors. No output written to error
    collect2: ld returned 1 exit status
    make: *** [error] Error 1
    make: *** [update] Error 1"
    Please help me with this issue, i use gcc-3.3.2 and used both GNU make and the "make" shipped with solaris, both gave the same result.
    I installed Mysql as a pkg and didn't compile it from source.
    Thanks in advance.

    "ld: warning: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64Usually this kind of error is an indication that both 32- and 64-bit object files are being used in building the application. Use all 32-bit objects or 64-bit objects - please do not mix them during compilation.
    If building from scratch is not mandatory for you, you can try installing postfix {and other applications, libraries, ..} with the help of Blastwave's 'pkg-get'. Some instrustions are at: http://technopark02.blogspot.com/2005/06/solaris-installing-appspackages-with.html
    % pkg-get -a | grep postfix
                 postfix 2.2.8,REV=2006.03.13

  • Problem building postfix with mysql

    Hi all,
    I have a sun fire v880 machine running solaris 10, i need to set an email server using postfix+mysql.
    I already installed myql and its working fine. but when trying to build postfix with mysql i get a compliation error, here's wts going on:
    bash-3.00# make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/bdb/include -I/opt/mysql/mysql/include -DUSE_SASL_AUTH' 'AUXLIBS=-L/opt/mysql/mysql/lib -R/opt/mysql/mysql/lib -lmysqlclient -lz -lm'
    (echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
    set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp; \
    else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null
    set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master src/postfix 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; do \
    (set -e; echo "[$i]"; cd $i; rm -f Makefile; \
    make -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
    done;
    [src/util]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/global]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/dns]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/tls]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/xsasl]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/milter]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/master]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postfix]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtpstone]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/sendmail]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/error]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/pickup]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/cleanup]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtpd]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/local]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/trivial-rewrite]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/qmgr]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/oqmgr]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/smtp]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/bounce]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/pipe]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/showq]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postalias]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postcat]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postconf]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postdrop]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postkick]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postlock]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postlog]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postmap]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postqueue]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/postsuper]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/qmqpd]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/spawn]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/flush]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/verify]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/virtual]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/proxymap]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/anvil]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/scache]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/discard]
    (cat ../../conf/makedefs.out Makefile.in) >Makefile
    [src/tlsmgr]
    (set -e; echo "# DO NOT EDIT"; /bin/sh ../../makedefs && cat Makefile.in) >Makefile
    rm -f Makefile; (cat conf/makedefs.out Makefile.in) >Makefile
    * Then when i run:
    bash-3.00# /usr/local/bin/make
    The compilation goes on till i get the following error
    "ld: warning: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64
    Undefined first referenced
    symbol in file
    mysql_fetch_row ../../lib/libglobal.a(dict_mysql.o)
    mysql_query ../../lib/libglobal.a(dict_mysql.o)
    mysql_error ../../lib/libglobal.a(dict_mysql.o)
    mysql_close ../../lib/libglobal.a(dict_mysql.o)
    mysql_free_result ../../lib/libglobal.a(dict_mysql.o)
    mysql_store_result ../../lib/libglobal.a(dict_mysql.o)
    mysql_init ../../lib/libglobal.a(dict_mysql.o)
    mysql_real_connect ../../lib/libglobal.a(dict_mysql.o)
    mysql_real_escape_string ../../lib/libglobal.a(dict_mysql.o)
    mysql_num_rows ../../lib/libglobal.a(dict_mysql.o)
    mysql_num_fields ../../lib/libglobal.a(dict_mysql.o)
    mysql_escape_string ../../lib/libglobal.a(dict_mysql.o)
    ld: fatal: Symbol referencing errors. No output written to error
    collect2: ld returned 1 exit status
    make: *** [error] Error 1
    make: *** [update] Error 1"
    Please help me with this issue, i use gcc-3.3.2 and used both GNU make and the "make" shipped with solaris, both gave the same result.
    I installed Mysql as a pkg and didn't compile it from source.
    Thanks in advance.

    "ld: warning: file /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64Usually this kind of error is an indication that both 32- and 64-bit object files are being used in building the application. Use all 32-bit objects or 64-bit objects - please do not mix them during compilation.
    If building from scratch is not mandatory for you, you can try installing postfix {and other applications, libraries, ..} with the help of Blastwave's 'pkg-get'. Some instrustions are at: http://technopark02.blogspot.com/2005/06/solaris-installing-appspackages-with.html
    % pkg-get -a | grep postfix
                 postfix 2.2.8,REV=2006.03.13

  • How many people would like postfix with sasl support ?

    Let me know and i will see about making a binary for the Arch Linux database.

    whyu not just feature request it through the bug tracker? unless it adds cumbersome dependencies to postfix i cannot see why they would not build support in. it can be a real pain when there are different unofficial builds of existing official packages.
    imo

  • AmaroK 1.4 with moodbar support...

    Just upgraded to amaroK 1.4 and its running fine here
    The only thing i have noticed is that the moodbar is not enabled in the version from the repos because of missing exscalibar... Moodbar shows the "mood" of your music by colorful and configurable sliders, its a nice feature i think...
    This is how moodbar looks like (look at the playlist and slider):
    If you want to recompile amarok with moodbar support, just grab the exscalibar PKGBUILD (thx to snowman again) from AUR and recompile amarok with this PKGBUILD...
    I have noticed the package maintainer about this, maybe he will include this in one of the next package versions, at least i hope so...
    Greetings
    Funkyou
    -EDIT- Beware, this has some stability issues and amaroK uses more of your CPU-power to scan your music. I also had one OGG track until now where the moodbar-subprozess seemed to hang and amaroK raised its CPU-consumption up to 99%. Because of these issues and in arrangement with the package maintainer i will not upload the package to AUR, maybe this will happen later when its running more stable... If you want to test and play with it, you can download the PKGBUILD from this post here, but do not complain if it behaves unexpected...

    I have uploaded a new exscalibar-PKGBUILD to AUR. Please try this one... Maybe you have some missing (but not critical) dependencies and these may not be required for exscalibar itself, but maybe for some functionality in exscalibar which amarok needs to have...
    Also check carefully the first messages of the exscalibar build-process. The message that GIT ist not installed can be safely ignored, but all the other libs should be installed...
    I have tried it again here and it works, even with the old PKGBUILD of exscalibar...

  • Snort with mysql [solved]

    Hi All,
    I relatively new to arch.
    Now I want to run snort with mysql support. My log file claims that the default pkg through pacman does not have mysql support enabled.
    How do I go about enabling this in a simple way. Is there somewhere where I can obtain the original PKGBUILD so I can tweak that one, or do I have to start from scratch?
    Or, am I doing something wrong in the first place?
    thanks,
    Leon..

    You're not doing anything wrong - snort is indeed compiled --without-mysql. You can get the PKGBUILD and associated build files from the CVS link here,  or by running abs to acquire the entire Arch package tree.
    If you haven't built any Arch packages before, modifying an existing one like this is a good way to start. The relevant wiki articles are highly recommended reading.

  • Tora pkgbuild: oracle tool with postgresql and mysql support

    Tora is a tool for oracle databases with some support for postgresql and mysql.
    tora PKGBUILD
    pkgname=tora-alpha
    pkgver=1.3.14.1
    pkgrel=1
    pkgdesc="Qt toolkit originally for Oracle databases administration with some support for Postgresql and Mysql"
    url="http://www.globecom.net/tora/"
    depends=('qt')
    makedepends=('perl')
    conflicts=('tora')
    source=(http://dl.sourceforge.net/tora/${pkgname}-${pkgver}.tar.gz)
    md5sums=('5560b5104438e1b71bd89386d0fcdc00')
    build() {
    cd $startdir/src/tora-$pkgver
    ./configure --prefix=/usr
    --without-kde
    --without-oracle
    --without-rpath
    make || return 1
    make ROOT=$startdir/pkg install
    I'm posting this pkgbuild only for testing/research.
    Fist, it's alpha (aka devel) version but stable release does not want to easly compile on my machine and it's too old IMO.
    As you can see it can be built without the need for kde (good news for other WMs/DEs users).
    The funny thing is that I built it without support for... oracle :-) That's because it needs lots of oracle stuff installed and I don't have it. If someone has, he can build a static version of oracle support (if you do please post some info here if it works, etc.).
    The postgresql/mysql support depends on the qt package configuration. Current qt arch package does not inlcude postgresql/mysql plugin support. The next qt release will have mysql support at least (http://bugs.archlinux.org/index.php?do=details&id=1040, http://bugs.archlinux.org/index.php?do=details&id=1166) and I have made a feature reqest for postgresql http://bugs.archlinux.org/index.php?do=details&id=1244.
    I'm still not 100% sure if postgresql and mysql should/shouldn't be put in makedepends (according to the docs and mailinglists it's not needed). I'll check that again when new qt release will be available.
    In other words in such configuration and present qt version this application is pretty useless :-) (though it can be run). But I'm posting this pkgbuild for the others (if someone needs to test it or tries to build it, etc.). I'm sure tora will soon be more attractive especially for someone using oracle databases.

    This won't work using a newer oracle instant client version though, since the pathes won't be set correct.
    The Project TOra won't use automake, since the author refuses doing so.
    Probably it would be a larger patching work to get it working with instantclient_10_2 (the current release version from Oracle).
    Why so?
    It seems as if the include pathes for the oracle client won't be set correclty, since TOra seems to expect a full oracle product installation.
    The configure does not accept a --with-oracle-includes or --with-oracle-libs option any longer (in 1.3.21 it did). Therefore, TOra won't find in example oci.h, since it's not in any include directory known.
    Also, some other files are not in the path TOra expects them to be.
    Without the possibility of passing by configure options handling this, i guess it won't be possible to get this TOra version running with the current instantclient.
    // STi

  • Postfix w/o MySQL Support

    I just installed Arch because I love the simplicity and the fact that I am given the most minimalistic base from any distro I have tried but when I attempt to install Postfix, I notice I am being forced to download and install Postfix with many MySQL dependencies...
    I just want a standalone Postfix server running ClamAV & Amavisd-new. I wont be running a MySQL database for email.
    Is this possible on Arch or am I forced to install unwanted / un-used dependencies?

    Carlwill wrote:So in order to do this which I am sure the Wiki explains, do I need to know all the normal dependencies required for a stand alone Postfix server?
    If you take the standard PKGBUILD from ABS, all the dependencies are already listed in there. Just take out the ones you don't need/want.
    I do the same thing with Postfix. No MySQL for me!
    Last edited by fukawi2 (2009-09-17 22:48:05)

  • [closed] PAM won't authenticate with mysql (make_scrambled_password)

    Hi all,
    I have spent some time searching for this and it seems I'm the only one having problem with PAM not authenticating through mysql so I thought I will post my problem here and if I find solution I will post here as well for others to follow.
    In short - I'm running postfix with saslauthd and dovecot. Both are authenticating through pam employing mysql as credentials source.
    Everything was working fine until today update - I can't connect to mail server any more and here is what I see in logs:
    PAM unable to dlopen(/usr/lib/security/pam_mysql.so): /usr/lib/security/pam_mysql.so: undefined symbol: make_scrambled_password
    PAM adding faulty module: /usr/lib/security/pam_mysql.so
    DEBUG: auth_pam: pam_authenticate failed: Module is unknown
    do_auth : auth failure: [user=xxxx] [service=smtp] [realm=xxxx] [mech=pam] [reason=PAM auth error]
    So I may be wrong but to my understanding pam_mysql.so is using deprecated make_scrambled_password that is not supported by mysql any more.
    I don't know what the solution would be and will appreciate if anybody can advice.
    Many thanks in advance,
    Greg
    Last edited by Gregosky (2014-03-01 22:41:53)

    Thanks, I have seen them but I thought this should be patched at source so no other Arch user would come across it.
    I'm wondering why am I seeing this error now, after such a long time of using my postfix setup.. This must have been caused by latest update I ran yesterday as I have not modified any configuration.
    I still did not find solution to this.
    I submitted  bug report on project page, hopefully some hints will arrive from there.
    Now also submitted on Arch bug tracker.
    Support for pam_mysql dropped. I will move to another backend. Case closed however there is no solution for pam_mysql.
    Last edited by Gregosky (2014-03-01 22:40:54)

  • Clob mapping not working with mysql

    Hi,
    I have an application that i'm running with MySQL and Oracle at the same
    time. At some point, i need to use a 'clob' mapping. When i do this, it
    just works fine with oracle but it fails with mysql. i have the exception:
    Field "com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description"
    is mapped as a clob, but should be represented as a different mapping.
    If the field is a string and you would like to force it to map as a
    clob, add an extension to its field metadata with a key of "jdbc-size"
    and a value of
    -1.[com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description]
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:132)
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:118)
         at
    kodo.jdbc.meta.ClobFieldMapping.fromMappingInfo(ClobFieldMapping.java:46)
    if i use a value mapping, it works with MySQL but fails with Oracle (I
    have sql error because a clob is used in a distinct select).
    In the manual, it is written "Note that some databases can support
    string of unlimited length without using a CLOB; when this is the case
    the mapping tool will install a value mapping in favor of
    this mapping.". So apparently, this is not the case with MySQLDictionary.
    To solve my problem and have my code working with both databases, i had
    to extend the MySQLDictionary and overwrite the replaceFieldMapping
    method in order to replace the clob mapping by a value mapping at
    runtime but i don't feel confident to do this kind of modifications by
    mysel and would expect this behaviour to be solved quite soon.
    Thanks for your help since this problem is urgent for us,
    Laurent Czinczenheim

    Laurent-
    The best solution would probably be to just have separate mappings for
    the MySQL and Oracle databases. The easiest way to accomplish this would
    be to have a separate setting for each of the databases. E.g.:
    kodo.jdbc.meta.MappingFactory: file(SingleFile=true, FileName=oracle.mapping)
    kodo.jdbc.meta.MappingFactory: file(SingleFile=true, FileName=mysql.mapping)
    That way, you can use a clob mapping for Oracle, and a normal value
    mapping for MySQL (since MySQL doesn't need to use the CLOB mapping, and
    it isn't very efficient).
    For more details on this, see:
    http://docs.solarmetric.com/manual.html#ref_guide_mapping_factory
    Another solution is to just stick with your custom extension of the
    MySQLDictionary, which is a perfectly valid way of having special CLOB
    handling in MySQL. Note, though, that CLOB handling is less efficient
    than VARCHAR handling, so it should be a mapping of last resort, and
    there isn't any need to use it in MySQL.
    In article <[email protected]>, czinczenheim wrote:
    Hi,
    I have an application that i'm running with MySQL and Oracle at the same
    time. At some point, i need to use a 'clob' mapping. When i do this, it
    just works fine with oracle but it fails with mysql. i have the exception:
    Field "com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description"
    is mapped as a clob, but should be represented as a different mapping.
    If the field is a string and you would like to force it to map as a
    clob, add an extension to its field metadata with a key of "jdbc-size"
    and a value of
    -1.[com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description]
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:132)
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:118)
         at
    kodo.jdbc.meta.ClobFieldMapping.fromMappingInfo(ClobFieldMapping.java:46)
    if i use a value mapping, it works with MySQL but fails with Oracle (I
    have sql error because a clob is used in a distinct select).
    In the manual, it is written "Note that some databases can support
    string of unlimited length without using a CLOB; when this is the case
    the mapping tool will install a value mapping in favor of
    this mapping.". So apparently, this is not the case with MySQLDictionary.
    To solve my problem and have my code working with both databases, i had
    to extend the MySQLDictionary and overwrite the replaceFieldMapping
    method in order to replace the clob mapping by a value mapping at
    runtime but i don't feel confident to do this kind of modifications by
    mysel and would expect this behaviour to be solved quite soon.
    Thanks for your help since this problem is urgent for us,
    Laurent Czinczenheim
    Marc Prud'hommeaux
    SolarMetric Inc.

  • How to use CMP in Weblogic 9.2 with MySQL?

    Hello all...
    So I've been tasked wiith moving an Oracle/Weblogic installation to a MySQL/Weblogic platform. Things are moving along well, except that in my CMP (Container-Managed Persistence) descriptors, the database-type is set to "Oracle" and there are references to columns of type "OracleBlob" and "OracleClob".
    I changed database-type to "MySQL" and those columns to "Blob" and "Clob", but it doesn't work -- Weblogic reports that MySQL doesn't support Blobs and Clobs (which is untrue, but perhaps Weblogic 9.2 doesn't know how to deal with MySQL Blobs and Clobs).
    Has anyone encountered this before? Is there a workaround? I've Google'd it and looked here, and it doesn't seem like many people use this combination of MySQL and Weblogic, so there's not much discussed on this topic.
    Any help would be much appreciated!
    - Tim Bessie

    First you need to make sure that you are using supported configuration. CMP (WebLogic feature) is supported with MySql4 with Connect/J
    http://edocs.bea.com/platform/suppconfigs/configs92/92_over/supported_db.html#1177621
    Thanks,
    Jayesh
    Yagna Sys

  • Php with mysqli, mbstring and xsl extensions

    I don't understand why php isn't build with mysqli and mbstring extensions since mysql4 is installed and there are a lot of languages that need multibytes strings. Here is a PKGBUILD that enable them. I also added xsl extension to use xsl files with php.
    # $Id: PKGBUILD,v 1.51 2004/12/16 22:03:19 judd Exp $
    # Maintainer: dorphell <[email protected]>
    # Contributor: Benoit Chesneau <[email protected]>
    pkgname=php
    pkgver=5.0.3
    pkgrel=2
    pkgdesc="A high-level scripting language"
    url="http://www.php.net"
    backup=(etc/php.ini)
    depends=('openssl' 'libjpeg' 'freetype2' 'libpng' 'pam'
    'gdbm' 'libxml2' 'openldap' 'ncurses' 'curl' 'libxslt')
    makedepends=('apache' 'mysql' 'imap' 'postgresql' 'bzip2' 'smtp-server'
    'gd' 'fam' 'sqlite3' 'unixodbc')
    source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz php.ini)
    md5sums=('bf89557056ce34d502e20e24071616c7' 'd5b9b37fbb746f0967d795763106735a')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --with-apxs2 --prefix=/usr --sysconfdir=/etc
    --with-layout=PHP
    --with-ttf --enable-mailparse --with-config-file-scan-dir=/etc
    --enable-bcmath=shared --enable-calendar=shared --enable-ftp=shared
    --enable-gd-native-ttf --enable-magic-quotes --enable-posix=shared
    --enable-session --enable-shared --enable-shmop=shared --with-imap
    --with-imap-ssl --with-ncurses --with-readline --with-sqlite=shared
    --enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars
    --enable-trans-sid --enable-safe-mode --enable-sockets=shared
    --enable-xml --with-bz2=shared --with-curl --with-mime-magic
    --with-unixODBC=shared
    --enable-dba --without-db2 --without-db3 --with-inifile --with-flatfile
    --with-gdbm --with-freetype-dir=/usr --with-gd=shared --enable-exif
    --with-jpeg-dir=/usr --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config
    --with-ldap=shared
    --with-mysql-sock=/tmp/mysql.sock --with-openssl --with-gettext
    --with-pear=/usr/share/pear --with-dom --with-dom-xslt
    --with-pgsql=shared --with-pgsql-sock=/tmp/pgsql.sock
    --with-png-dir=/usr --with-regex=php --with-zlib --with-fam=shared
    --with-xsl
    --enable-mbstring=all --enable-mbregex
    # fixes a build error in sqlite support
    ln -s main/php_config.h ./config.h
    make || return 1
    mkdir -p $startdir/pkg/usr/lib/apache
    # cp config_vars.mk config_vars.old
    # sed "s|^INSTALL_IT.*$|INSTALL_IT = apxs -i -a -S LIBEXECDIR=$startdir/pkg/usr/lib/apache -n php4 libs/libphp4.so|" config_vars.old >config_vars.mk
    sed -i "s|-i -a -n php5|-i -n php5|g" Makefile
    make INSTALL_ROOT=$startdir/pkg EXTENSION_DIR=/usr/lib/php install
    cp ../php.ini $startdir/pkg/etc

    i suggest filing a feature request through the bug tracker.
    As for why such features may not be compiled in is that whoever maintains the package may have never had the need to have such features in php or experienced any issue because of it. You will experience this with many distros so I suggest not getting accusatory and simply request the feature through the proper channels.
    Each persons needs and experience are different and that is why developers write their code to encompass as many features as their users request.  How robust a package needs to be in arch is up to people like you giving the crucial feedback.
    (btw i don't see why your request would not be granted. I suggest the feature request though because i know the maintainer of the PHP package is not a frequent visitor to this forum but he will get your request if you make to the bug tracker)

  • Php4 with mysql

    I need to get this to work..... php4.3.10 with mysql...
    tried about every single PKGbuild i could find, but every single one
    of them dont give me support for mysql... Meaning trying to use phpmyadmin i get mysql module not loaded ... I have used this pkgbuild in which you can see i do use the --with mysql flag/option... can some one plz help me out here or tell me where i go wrong or what i have to do to make it work ???? plz ....
    pkgname=php
    pkgver=4.3.10
    pkgrel=2
    pkgdesc="A high-level scripting language"
    backup=(etc/php.ini)
    depends=('openssl' 'libjpeg' 'freetype2' 'libpng' 'pam' 
             'gdbm' 'libxslt' 'openldap')
    makedepends=('apache' 'mysql' 'bzip2' 'smtp-server')
    source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz php.ini)
    url="http://www.php.net"
    build() {
      cd $startdir/src/$pkgname-$pkgver
      ./configure --with-apxs2 --prefix=/usr --sysconfdir=/etc 
        --with-ttf --enable-mailparse --with-config-file-scan-dir=/etc 
        --enable-bcmath=shared --enable-calendar=shared --enable-ftp=shared 
        --enable-gd-native-ttf --enable-magic-quotes --enable-posix=shared 
        --enable-session --enable-shared --enable-shmop=shared 
        --enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars 
        --enable-trans-sid --enable-safe-mode --enable-sockets=shared 
        --enable-xml --with-bz2=shared --without-db2 --without-db3 
        --with-freetype-dir=/usr --with-gd --with-gdbm --enable-exif 
        --with-jpeg-dir=/usr --with-mysql=shared,/usr --with-ldap 
        --with-mysql-sock=/tmp/mysql.sock --with-openssl --with-gettext 
        --with-pear=/usr/share/pear --with-dom --with-dom-xslt 
        --with-png-dir=/usr --with-regex=php --with-zlib --with-curl
      make || return 1
      mkdir -p $startdir/pkg/usr/lib/apache
    #  cp config_vars.mk config_vars.old
    #  sed "s|^INSTALL_IT.*$|INSTALL_IT = apxs -i -a -S LIBEXECDIR=$startdir/pkg/usr/lib/apache -n php4 libs/libphp4.so|" config_vars.old >config_vars.mk
      sed -i "s|-i -a -n php4|-i -n php4|g" Makefile
      make INSTALL_ROOT=$startdir/pkg EXTENSION_DIR=/usr/lib/php install
      cp ../php.ini $startdir/pkg/etc

    exactly. build php. install the package.
    find out what the name of the mysql extension is..
    ls -lR /usr/lib/php/extensions | grep -i 'sql'
    look for the one that is similar to mysql.so or something..
    then edit php.ini, and add
    extension=mysql.so
    if might already be in there...just uncomment it if it is.
    then restart apache.

  • Radius server (not elektron!) interacting with mysql DB and LDAP

    I am installing a service that requires a radius server. I have tried to build and install freeradius from source, as well as used the installer packages that are out there. None of them include support for mysql. As soon as you turn on sql in the radiusd.conf you get an error like this:
    rlm_sql: Could not link driver rlmsqlmysql: file not found
    Similar to the problem described here:
    http://www.freeradius.org/faq/#4.14
    Except that I get an error saying that rlmsqlmysql.a is an invalid image. The file exists and freeradius sees it and can find it, it's just not usable by freeradius. Like I said I have tried building this from the latest cvs source, and finally got it to build completely fine, and even except connections.
    I just need it to authenticate to mysql now.
    Anybody have any pointers. I have tried some of the suggestions on the freeradius faq, but I think what I am encountering is an issue specific to os x tiger. I have even tried to install using darwinports, but the installation fails.
    The system I am trying to install this on is running 10.4.2 (I am apprehensive about updating the system, because of issues with mysql being hosed.)
    If anyone thinks or knows that 10.4.2 has specific issues as to why it cannot be installed on 10.4.2 I may need to look into doing a backup and then upgrade of the server, and attempt freeradius install on 10.4.7.
    Thanks in advance for any and all help!

    Big help you OS Xers are. J/P!
    Since this place is supposed to be about education, let's educate!
    I ended up installing OpenRadius and using RADsql (it comes with openradius). It's a bit finicky, but in the end it seems to be working. You also have to install Perl DBI, and Perl DBD Mysql, all of which I installed using darwing ports (also btw, you are better off getting the darwin/macports source and compiling it yourself, rather than using the DMG installer) If you are paranoid about using terminal there is an app out their called PORT AUTHORITY which is basically a gui front end to install darwinport apps.
    You may have to do a little searching, but the key is getting the behaviour file and the config file correct, I found examples of the two I needed here:
    http://www.mirrors.wiretapped.net/security/authentication/radius/openradius/exam ples/0.9.10/
    I am attempting to also have openradius look at ldap if it can't auth to sql, I think this is possible, since it seemed to be in freeradius. So that our users don't need to choose a seperate auth protocol.
    I hope at least part of what I have to say will help someone out there, I will update this as I find out more. Right now I can only auth via clear-password, which is not really much of an issue, since this will all be LAN and WAN behind a firewall. But it would be nice if it was at least MD5 which openradius is supposed to support.

  • [SOLVED] haskell - citeproc-hs was not compiled with bibutils support

    Hi all,
    since I have not yet been able to get help in arch-haskell's IRC channel, I am posting here, maybe someone has an idea:
    I am using pandoc which I have retrieved along with all its dependencies from the haskell binary repository. But when I try to process a bibliography, I get an error message from citeproc-hs:
    pandoc: citeproc: Bibliography format not supported.
    citeproc-hs was not compiled with bibutils support.
    Supposing that the error message is not misleading, I wonder how do I recompile with bibutils support then?
    Googling gave some results concerned with haskell-hs-bibutils, which seems to have been on the haskell repo earlier but is there no longer, so I installed it from AUR (modifying the PKGBUILD to accept haskell-syb>=0.3 instead of =0.3).
    Reinstalling haskell-citeproc-hs did not help.
    Next I tried with cloning habs the haskell repo (as is described here). Since I could not find any switch in haskell-citeproc-hs's PKGBUILD that would disable bibutils support I directly issued
    ./makeahpkg -- haskell-citeproc-hs
    but the resulting package gives the same error as the one from the repo.
    Should I have taken extra steps to build/install haskell-hs-bibutils also in the habs chroot? Or anything else?
    TIA,
    Andreas
    Last edited by awagner (2012-08-01 08:36:06)

    awagner wrote:Should I have taken extra steps to build/install haskell-hs-bibutils also in the habs chroot? Or anything else?
    Yes, it seems this was the problem. Besides cloning habs, I now went on to manually copy the necessary files of bibutils-dynamic and haskell-hs-bibutils from AUR into the local HABS tree, modify dependencies in haskell-hs-bibutils, haskell-citeproc-hs and haskell-pandoc (an additional dependency on haskell-hs-bibutils in haskell-citeproc-hs, in the other cases only change of version numbers).
    Then
    ./makeahpkg -c -- bibutils-dynamic haskell-hs-bibutils haskell-citeproc-hs haskell-pandoc
    produced four packages which I could install and now the error is gone and I can turn to debugging my document and bibliography files

Maybe you are looking for

  • Need to know what form is attached to a responsibility

    Hi, There is a need to know what responsibility in Oracle has access to a given form. All seeded Oracle Reports that I am aware of (Function Security Function Report, Function Security Menu Report, Function Security Navigator Report) require a respon

  • Mixed Arabic/Latin text confuson in a single String

    Hi all, I hope someone knows the answer to this issue! I've got an application in Java which calls another app via a stored procedure and callable statement, passing various parameters across. One of these parameters is a buffer containing transactio

  • Relinking objects in a timeline

    I set up a couple of projects but want to reference them in a different folder on my computer. Can I do that without having to redo the editing I already did on the timeline?

  • What GPU to get for CS6 + Are SSDs worth it for editing?

    My current computer is an old dell xps 7100 Phenom x4 830 (Yes I know, I'd love to get an intel 3770k or something but I'm pretty strapped for cash) Some tiny amd gpu, not sure which (can use gpu-z if really needed) 12gb ram 1 500gb hdd The machine i

  • Dreamweaver unable to open files

    Has anyone had a problem with DWCS3 crashing unexpectedly? It opens fine, but when I try to open a page (the page I really need to be working on or any page for that matter) and DW just shuts down. No warning message saying it's encountered a problem