* [sisyphus] Postfix MySQL
@ 2003-04-24 5:42 Konstantin Klimchev
2003-04-24 8:40 ` Dmitry V. Levin
0 siblings, 1 reply; 3+ messages in thread
From: Konstantin Klimchev @ 2003-04-24 5:42 UTC (permalink / raw)
To: sisyphus
[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]
Добрый день!
Подскажите, где проблема: у меня или в пакете, а именно:
Пакет postfix-1.1.12-alt2 (из Master22).
Сборка с MySQL
В спек было добавлено:
%if_with mysql
CCARGS="$CCARGS -DHAS_MYSQL -I%_includedir/mysql"
AUXLIBS="$AUXLIBS -L/usr/lib -lmysqlclient -lm"
%endif #with mysql
Результат - ошибка при make:
Первый фрагмент во вложении (хотя в указанном каталоге, после ошибочного
выхода, make выполняется).
Удается воспроизвести, если сделать rpm -bp postfix.spec, а затем из каталога
сборки (как делается в спеке):
$ export CCARGS="-DHAS_MYSQL -I/usr/include/mysql"
$ export AUXLIBS="-L/usr/lib -lmysqlclient -lm"
$ make CCARGS="$CCARGS" AUXLIBS="$AUXLIBS"
Выполнение конструкции (фрагмент спека; закоментировано оригинальное):
export CCARGS AUXLIBS
make -f Makefile.init makefiles
unset CCARGS AUXLIBS
make OPT="$OPT" DEBUG=""
#make \
# CCARGS="$CCARGS" \
# AUXLIBS="$AUXLIBS" \
# SASL_CFLAGS="$SASL_CFLAGS" \
# SASL_LIBS="$SASL_LIBS" \
# OPT="$OPT" \
# DEBUG=
Ошибок не вызывает (второй фрагмент во вложении).
--
С уважением, Климчев Константин
ООО "Архангельская телевизионная компания"
mailto:koka@atknet.ru
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: postfix-bug --]
[-- Type: text/plain; charset="us-ascii"; name="postfix-bug", Size: 3362 bytes --]
[src/virtual]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c virtual.c
virtual.c: In function `main':
virtual.c:394: warning: missing braces around initializer
virtual.c:394: warning: (near initialization for `int_table[0]')
virtual.c:399: warning: missing braces around initializer
virtual.c:399: warning: (near initialization for `str_table[0]')
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c mailbox.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c recipient.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c deliver_attr.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c maildir.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c unknown.c
make: *** No rule to make target `-L/usr/lib', needed by `virtual'. Stop.
make: *** [update] Error 1
make: *** [update] Error 2
ÏÛÉÂËÁ: îÅ×ÅÒÎÙÊ ËÏÄ ×ÏÚ×ÒÁÔÁ ÉÚ /home/koka/tmp/rpm-tmp.5829 (%build)
[src/virtual]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c virtual.c
virtual.c: In function `main':
virtual.c:394: warning: missing braces around initializer
virtual.c:394: warning: (near initialization for `int_table[0]')
virtual.c:399: warning: missing braces around initializer
virtual.c:399: warning: (near initialization for `str_table[0]')
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c mailbox.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c recipient.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c deliver_attr.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c maildir.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -c unknown.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -pipe -Wall -O2 -fexpensive-optimizations -march=i686 -Wno-comment -I. -I../../include -DLINUX2 -I.. -o virtual virtual.o mailbox.o recipient.o deliver_attr.o maildir.o unknown.o ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib -lmysqlclient -ldb -lnsl -lresolv
cp virtual ../../libexec
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sisyphus] Postfix MySQL
2003-04-24 5:42 [sisyphus] Postfix MySQL Konstantin Klimchev
@ 2003-04-24 8:40 ` Dmitry V. Levin
2003-04-24 9:38 ` Konstantin Klimchev
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2003-04-24 8:40 UTC (permalink / raw)
To: ALT Linux Sisyphus mailing list
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
On Thu, Apr 24, 2003 at 09:42:20AM +0400, Konstantin Klimchev wrote:
> Добрый день!
>
> Подскажите, где проблема: у меня или в пакете, а именно:
>
> Пакет postfix-1.1.12-alt2 (из Master22).
> Сборка с MySQL
>
> В спек было добавлено:
>
> %if_with mysql
> CCARGS="$CCARGS -DHAS_MYSQL -I%_includedir/mysql"
> AUXLIBS="$AUXLIBS -L/usr/lib -lmysqlclient -lm"
Зачем вам понадобился -L/usr/lib?
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sisyphus] Postfix MySQL
2003-04-24 8:40 ` Dmitry V. Levin
@ 2003-04-24 9:38 ` Konstantin Klimchev
0 siblings, 0 replies; 3+ messages in thread
From: Konstantin Klimchev @ 2003-04-24 9:38 UTC (permalink / raw)
To: sisyphus
В сообщении от 24 Апрель 2003 12:40 Dmitry V. Levin написал:
> Зачем вам понадобился -L/usr/lib?
А и действительно, зачем?
Одним словом, славом спасибо. ;)
И попутно, не планируете postgresql'овсого patch'ика на postfix?
--
С уважением, Климчев Константин
ООО "Архангельская телевизионная компания"
mailto:koka@atknet.ru
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-24 9:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-24 5:42 [sisyphus] Postfix MySQL Konstantin Klimchev
2003-04-24 8:40 ` Dmitry V. Levin
2003-04-24 9:38 ` Konstantin Klimchev
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git