При сборке из портов courier-imap с поддержкой MYSQL
снчала выдет предупреждение
checking vector presence... yes
configure: WARNING: vector: present but cannot be compiled
configure: WARNING: vector: check for missing prerequisite headers?
configure: WARNING: vector: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##а затем:
In file included from /usr/include/g++/vector:35,
from maildirkeywords4.cpp:15:
/usr/include/g++/stl_bvector.h:117: syntax error before character 0275
/usr/include/g++/stl_bvector.h:120: `__n' was not declared in this scope
/usr/include/g++/stl_bvector.h:120: ANSI C++ forbids declaration `__n' with no type
/usr/include/g++/stl_bvector.h:120: ANSI C++ forbids initialization of member `__n'
/usr/include/g++/stl_bvector.h:120: making `__n' static
/usr/include/g++/stl_bvector.h:120: ANSI C++ forbids in-class initialization of non-const static member `__n'
/usr/include/g++/stl_bvector.h:121: syntax error before `if'
/usr/include/g++/stl_bvector.h:128: syntax error at null character
gmake[2]: *** [maildirkeywords4.o] Error 1
gmake[2]: Leaving directory `/usr/ports/mail/courier-imap/work/courier-imap-2.1.2/maildir'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/ports/mail/courier-imap/work/courier-imap-2.1.2/maildir'
gmake: *** [all-recursive] Error 1
*** Error code 2Stop in /usr/ports/mail/courier-imap.
Система FreeBSD 4.8
Подскажите где грабли?
Поборол эту проблему
Поковырялся и выяснил что если в портах подправить
Makefile то все ОКВ определении
.if !defined(WITH_MYSQL)
CONFIGURE_ARGS+=--without-authmysql
PLIST_SUB+= MYSQLFLAG="@comment "
.else
USE_MYSQL= YES
PLIST_SUB+= MYSQLFLAG=""
CONFIGURE_ARGS+=--with-authmysql \
--with-mysql-libs=${LOCALBASE}/lib/mysql \
--with-mysql-includes=${LOCALBASE}/include/mysqlнеобходимо заменить LOCALBASE на PREFIX и все собирается
без ошибок