For my LFS build, I also compiled Postifx. Well, almost, as two issues arosen:
1. GCC said that I defined HAS_DB twice, despite that fact that I used
it only once.
2. During the middle of the build, I came to a grinding halt with
these messages:
{[{
gcc -Wmissing-prototypes -Wformat
-DDEF_DAEMON_DIR=\"/usr/lib/postfix\"
-DDEF_MANPAGE_DIR=\"/usr/share/man\"
-DDEF_HTML_DIR=\"/usr/share/doc/postfix-2.6.4/html\"
-DDEF_README_DIR=\"/usr/share/doc/postfix-2.6.4/README\" -DHAS_PCRE
-I/usr/include -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl
-DHAS_DB -DHAS_LDAP -DHAS_PGSQL -I/usr/include/postgresql -DUSE_TLS
-I/usr/include/openssl/ -g -O -I. -I../../include -DLINUX2 -o sendmail
sendmail.o ../../lib/libglobal.a ../../lib/libutil.a -ldb -lnsl
-lresolv
../../lib/libutil.a(dict_pcre.o): In function `dict_pcre_compile':
/sources/postfix-2.6.4-RC2/src/util/dict_pcre.c:554: undefined
reference to `pcre_compile'
/sources/postfix-2.6.4-RC2/src/util/dict_pcre.c:561: undefined
reference to `pcre_study'
../../lib/libutil.a(dict_pcre.o): In function `dict_pcre_open':
/sources/postfix-2.6.4-RC2/src/util/dict_pcre.c:820: undefined
reference to `pcre_malloc'
/sources/postfix-2.6.4-RC2/src/util/dict_pcre.c:821: undefined
reference to `pcre_free'
../../lib/libutil.a(dict_pcre.o): In function `dict_pcre_parse_rule':
/sources/postfix-2.6.4-RC2/src/util/dict_pcre.c:668: undefined
reference to `pcre_fullinfo'
../../lib/libutil.a(dict_pcre.o): In function `dict_pcre_lookup':
/sources/postfix-2.6.4-RC2/src/util/dict_pcre.c:288: undefined
reference to `pcre_exec'
/sources/postfix-2.6.4-RC2/src/util/dict_pcre.c:339: undefined
reference to `pcre_exec'
../../lib/libutil.a(dict_pcre.o): In function `dict_pcre_expand':
/sources/postfix-2.6.4-RC2/src/util/dict_pcre.c:177: undefined
reference to `pcre_get_substring'
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
make: *** [update] Error 1
}}}
Removing PCRE from the build just makes more trouble, as it mentiones
undefined functions in db, openldap (I changed my mind about it, I
just build the client libs), and Posgresql.
I did follow the book's instructions exactly. And yes, this happened
with both 2.6.3 and 2.6.4-rc2. Any solutions?
William
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page