Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14676 closed defect (fixed)

postfix +pcre build error

Reported by: furio.mf@… Owned by: wsiegrist@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: postfix pcre Cc:
Port:

Description

Environment: OSX 10.5.2 on PowerMac G5

# uname -a Darwin powermac.local 9.2.0 Darwin Kernel Version 9.2.0: Tue Feb 5 16:15:19 PST 2008; root:xnu-1228.3.13~1/RELEASE_PPC Power Macintosh

It looks like the pcre variant of postfix generates a make with DHAS_PCRE instead of -DHAS_PCRE.

======================================================================== # port install postfix +pcre ---> Building postfix Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_postfix/work/postfix-2.4.6" && make " returned error 2 Command output: make: DHAS_PCRE: Command not found make: [format_tv.o] Error 127 (ignored) DHAS_PCRE -I/opt/local/include -DBIND_8_COMPAT -DNO_NETINFO -g -O -I. -DMACOSX -c allspace.c make: DHAS_PCRE: Command not found make: [allspace.o] Error 127 (ignored) DHAS_PCRE -I/opt/local/include -DBIND_8_COMPAT -DNO_NETINFO -g -O -I. -DMACOSX -c allascii.c make: DHAS_PCRE: Command not found make: [allascii.o] Error 127 (ignored) DHAS_PCRE -I/opt/local/include -DBIND_8_COMPAT -DNO_NETINFO -g -O -I. -DMACOSX -c load_file.c make: DHAS_PCRE: Command not found make: [load_file.o] Error 127 (ignored) DHAS_PCRE -I/opt/local/include -DBIND_8_COMPAT -DNO_NETINFO -g -O -I. -DMACOSX -c killme_after.c make: DHAS_PCRE: Command not found make: [killme_after.o] Error 127 (ignored) DHAS_PCRE -I/opt/local/include -DBIND_8_COMPAT -DNO_NETINFO -g -O -I. -DMACOSX -c vstream_tweak.c make: DHAS_PCRE: Command not found make: [vstream_tweak.o] Error 127 (ignored) ar rv libutil.a ar: no archive members specified usage: ar -d [-TLsv] archive file ...

ar -m [-TLsv] archive file ... ar -m [-abiTLsv] position archive file ... ar -p [-TLsv] archive [file ...] ar -q [-cTLsv] archive file ... ar -r [-cuTLsv] archive file ... ar -r [-abciuTLsv] position archive file ... ar -t [-TLsv] archive [file ...] ar -x [-ouTLsv] archive [file ...]

make: * [libutil.a] Error 1 make: * [update] Error 1

Error: Status 1 encountered during processing.

Change History (7)

comment:1 Changed 16 years ago by furio.mf@…

I apologize for the horrendous formatting. This should be more readable:

# port install postfix +pcre
--->  Building postfix
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_postfix/work/postfix-2.4.6" && make " returned error 2
Command output: make: DHAS_PCRE: Command not found
make: [format_tv.o] Error 127 (ignored)
DHAS_PCRE -I/opt/local/include -DBIND_8_COMPAT -DNO_NETINFO -g -O -I. -DMACOSX -c allspace.c
make: DHAS_PCRE: Command not found
make: [allspace.o] Error 127 (ignored)
DHAS_PCRE -I/opt/local/include -DBIND_8_COMPAT -DNO_NETINFO -g -O -I. -DMACOSX -c allascii.c
make: DHAS_PCRE: Command not found
make: [allascii.o] Error 127 (ignored)
DHAS_PCRE -I/opt/local/include -DBIND_8_COMPAT -DNO_NETINFO -g -O -I. -DMACOSX -c load_file.c
make: DHAS_PCRE: Command not found
make: [load_file.o] Error 127 (ignored)
DHAS_PCRE -I/opt/local/include -DBIND_8_COMPAT -DNO_NETINFO -g -O -I. -DMACOSX -c killme_after.c
make: DHAS_PCRE: Command not found
make: [killme_after.o] Error 127 (ignored)
DHAS_PCRE -I/opt/local/include -DBIND_8_COMPAT -DNO_NETINFO -g -O -I. -DMACOSX -c vstream_tweak.c
make: DHAS_PCRE: Command not found
make: [vstream_tweak.o] Error 127 (ignored)
ar rv libutil.a 
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
        ar -m [-TLsv] archive file ...
        ar -m [-abiTLsv] position archive file ...
        ar -p [-TLsv] archive [file ...]
        ar -q [-cTLsv] archive file ...
        ar -r [-cuTLsv] archive file ...
        ar -r [-abciuTLsv] position archive file ...
        ar -t [-TLsv] archive [file ...]
        ar -x [-ouTLsv] archive [file ...]
make: *** [libutil.a] Error 1
make: *** [update] Error 1

Error: Status 1 encountered during processing.

comment:2 in reply to:  description Changed 16 years ago by jmroot (Joshua Root)

Replying to furio.mf@spin.it:

It looks like the pcre variant of postfix generates a make with DHAS_PCRE instead of -DHAS_PCRE.

It also looks like it has an empty $CC. I'm unable to reproduce this error on Leopard, though the destroot did fail, which I fixed in r35058.

comment:3 Changed 16 years ago by wsiegrist@…

Owner: changed from macports-tickets@… to wsiegrist@…

comment:4 Changed 16 years ago by wsiegrist@…

Resolution: fixed
Status: newclosed

The lack of a $CC value was the problem. The steps that fail should be "cc -DHAS_PCRE" and was getting run as just "DHAS_PCRE" since $CC wasnt set. Seems like this ticket was completely fixed by r35058. Thanks jmr!

comment:5 in reply to:  4 Changed 16 years ago by jmroot (Joshua Root)

Replying to wsiegrist@apple.com:

Seems like this ticket was completely fixed by r35058.

I don't see how it could have been. I think this may be something like #13930, where CC needs to be set in build.env and not just configure.env.

comment:6 Changed 16 years ago by wsiegrist@…

If someone still gets this error, please reopen the ticket.

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.