ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Konstantin Klimchev <koka@atknet.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Postfix MySQL
Date: Thu, 24 Apr 2003 09:42:20 +0400
Message-ID: <200304240942.20508.koka@atknet.ru> (raw)

[-- 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

             reply	other threads:[~2003-04-24  5:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-24  5:42 Konstantin Klimchev [this message]
2003-04-24  8:40 ` Dmitry V. Levin
2003-04-24  9:38   ` Konstantin Klimchev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200304240942.20508.koka@atknet.ru \
    --to=koka@atknet.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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