[sisyphus] Postfix MySQL
Konstantin Klimchev
=?iso-8859-1?q?koka_=CE=C1_atknet=2Eru?=
Чт Апр 24 09:42:20 MSD 2003
Добрый день!
Подскажите, где проблема: у меня или в пакете, а именно:
Пакет 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
----------- следующая часть -----------
[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
Подробная информация о списке рассылки Sisyphus