Postfix fra ports i jail

From: Espen Højsgaard (none@espen--hojsgaard.dk.lh.bsd-dk.dk)
Date: Thu 23 Sep 2004 - 23:12:45 CEST


From: Espen Højsgaard <none@espen--hojsgaard.dk.lh.bsd-dk.dk>
To: <none@bsd-novice--bsd-dk.dk.lh.bsd-dk.dk>
Subject: Postfix fra ports i jail
Date: Thu, 23 Sep 2004 23:12:45 +0200

Hej,

Jeg forsøger at installere Postfix i et jail fra ports.

Mit jail er sat op som beskrevet i jail (8), dvs. med en fuldstændig
installation.
For ikke at skulle installere ports i mit jail, har jeg brugt mount_nullfs:

  mount_nullfs /usr/ports ports

Hvor sidste "ports" refererer til usr/ports i mit jail.
Herefter starter jeg mit jail (igen som beskrevet i jail (8)).

Når jeg i mit jail forsøger mig med "make install clean" i
/usr/ports/mail/postfix, får jeg den fejl, der er nederst i mailen.
Så vidt jeg kan se, er problemet at pcre.h ikke bliver fundet. Denne
befinder sig i /usr/local/include i jailet.
Stien bliver ikke givet til cc, hvilket jeg forsøgte at afhjælpe ved at
skrive:

  make CFLAGS="-I/usr/local/include" install clean

uden held :-(

Hvad gør jeg galt? Er det overhovedet muligt at installere fra hostsystemets
ports i et jail?

Det undrer mig, at cc kommandoen tilsyneladende får angivet stier, der kun
har mening udenfor mit jail (f.eks.
/usr/jails/postfix/usr/local/postfix/usr/local/include).

Systemet er en FreeBSD 5.2.1-RELEASE-p9.

På forhånd tak for hjælpen fra en forvirret newbie

  Espen Højsgaard

<output ved make>

# make install clean
===> Building for postfix-2.1.4,1
set -e; for i in src/util src/global src/dns src/master src/postfix
src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd
src/local src/lmtp src/trivial-rewrite src/qmgr src/oqmgr src/smtp
src/bounce src/pipe src/showq src/postalias src/postcat src/postconf
src/postdrop src/postkick src/postlock src/postlog src/postmap
src/postqueue src/postsuper src/qmqpd src/spawn src/flush src/verify
src/virtual src/proxymap src/tlsmgr; do (set -e; echo "[$i]"; cd $i; make
'CC=cc -DHAS_SSL -I/usr/include -DHAS_MYSQL
-I/usr/jails/postfix/usr/local/postfix/usr/local/include/mysql -DHAS_PCRE
-I/usr/jails/postfix/usr/local/postfix/usr/local/include' update MAKELEVEL=)
|| exit 1; done
[src/util]
cc -DHAS_SSL -I/usr/include -DHAS_MYSQL
-I/usr/jails/postfix/usr/local/postfix/usr/local/include/mysql -DHAS_PCRE
-I/usr/jails/postfix/usr/local/postfix/usr/local/include -O -pipe
-mcpu=pentiumpro -I. -DFREEBSD5 -c dict_pcre.c
dict_pcre.c:56:18: pcre.h: No such file or directory
dict_pcre.c:80: error: syntax error before "pcre"
dict_pcre.c:96: error: syntax error before "pcre"
dict_pcre.c:104: error: syntax error before "pcre"
dict_pcre.c: In function `dict_pcre_expand':
dict_pcre.c:173: error: `PCRE_ERROR_NOSUBSTRING' undeclared (first use in
this function)
dict_pcre.c:173: error: (Each undeclared identifier is reported only once
dict_pcre.c:173: error: for each function it appears in.)
dict_pcre.c: In function `dict_pcre_exec_error':
dict_pcre.c:207: error: `PCRE_ERROR_NULL' undeclared (first use in this
function)
dict_pcre.c:208: error: `PCRE_ERROR_BADOPTION' undeclared (first use in this
function)
dict_pcre.c:211: error: `PCRE_ERROR_BADMAGIC' undeclared (first use in this
function)
dict_pcre.c:212: error: `PCRE_ERROR_UNKNOWN_NODE' undeclared (first use in
this function)
dict_pcre.c: In function `dict_pcre_lookup':
dict_pcre.c:254: error: structure has no member named `pattern'
dict_pcre.c:254: error: structure has no member named `hints'
dict_pcre.c:262: error: `PCRE_ERROR_NOMATCH' undeclared (first use in this
function)
dict_pcre.c:302: error: structure has no member named `pattern'
dict_pcre.c:302: error: structure has no member named `hints'
dict_pcre.c: In function `dict_pcre_close':
dict_pcre.c:350: error: structure has no member named `pattern'
dict_pcre.c:351: error: structure has no member named `pattern'
dict_pcre.c:352: error: structure has no member named `hints'
dict_pcre.c:353: error: structure has no member named `hints'
dict_pcre.c:359: error: structure has no member named `pattern'
dict_pcre.c:360: error: structure has no member named `pattern'
dict_pcre.c:361: error: structure has no member named `hints'
dict_pcre.c:362: error: structure has no member named `hints'
dict_pcre.c: In function `dict_pcre_get_pattern':
dict_pcre.c:427: error: `PCRE_CASELESS' undeclared (first use in this
function)
dict_pcre.c:427: error: `PCRE_DOTALL' undeclared (first use in this
function)
dict_pcre.c:434: error: `PCRE_MULTILINE' undeclared (first use in this
function)
dict_pcre.c:440: error: `PCRE_EXTENDED' undeclared (first use in this
function)
dict_pcre.c:443: error: `PCRE_ANCHORED' undeclared (first use in this
function)
dict_pcre.c:446: error: `PCRE_DOLLAR_ENDONLY' undeclared (first use in this
function)
dict_pcre.c:449: error: `PCRE_UNGREEDY' undeclared (first use in this
function)
dict_pcre.c:452: error: `PCRE_EXTRA' undeclared (first use in this function)
dict_pcre.c: In function `dict_pcre_compile':
dict_pcre.c:505: error: structure has no member named `pattern'
dict_pcre.c:507: error: structure has no member named `pattern'
dict_pcre.c:512: error: structure has no member named `hints'
dict_pcre.c:512: error: structure has no member named `pattern'
dict_pcre.c:516: error: structure has no member named `pattern'
dict_pcre.c: In function `dict_pcre_parse_rule':
dict_pcre.c:611: error: structure has no member named `pattern'
dict_pcre.c:611: error: structure has no member named `pattern'
dict_pcre.c:612: error: structure has no member named `hints'
dict_pcre.c:612: error: structure has no member named `hints'
dict_pcre.c:656: error: structure has no member named `pattern'
dict_pcre.c:656: error: structure has no member named `pattern'
dict_pcre.c:657: error: structure has no member named `hints'
dict_pcre.c:657: error: structure has no member named `hints'
dict_pcre.c: In function `dict_pcre_open':
dict_pcre.c:728: error: `pcre_malloc' undeclared (first use in this
function)
dict_pcre.c:729: error: `pcre_free' undeclared (first use in this function)
*** Error code 1

Stop in /usr/ports/mail/postfix/work/postfix-2.1.4/src/util.
*** Error code 1

Stop in /usr/ports/mail/postfix/work/postfix-2.1.4.
*** Error code 1

Stop in /usr/ports/mail/postfix.
*** Error code 1

Stop in /usr/ports/mail/postfix.



This archive was generated by hypermail 2b30 : Wed 15 Nov 2006 - 18:25:10 CET