(Don’t know if this is for MacPorts or MacPorts-Developers, so I’m posting on 
both, apologies)

When I update my MacPorts collection, I use a script that cleans MacPorts, then 
installs everything anew. That way, if for instance a port switches by  default 
from, say one version to another version of something it needs (say python) my 
port doesn’t keep the old version of that support (like python) around 
needlessly.

I am running macOS Sonoma (up to date) on an x86 Mac

Install of the set failed when dovecot failed to compile. So I cleaned it again 
and installed dovecot on a clean system by itself. This fails too:

:info:build libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../../.. 
-I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index 
-I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm 
-I/opt/local/include/openssl 
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk 
-I/opt/local/include/CLucene/ext -pipe -Os -stdlib=libc++ 
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch x86_64 
-D__STDC_LIMIT_MACROS -MT lucene-wrapper.lo -MD -MP -MF 
.deps/lucene-wrapper.Tpo -c lucene-wrapper.cc  -fno-common -DPIC -o 
.libs/lucene-wrapper.o
:info:build In file included from lucene-wrapper.cc:30:
:info:build In file included from /opt/local/include/CLucene.h:11:
:info:build In file included from /opt/local/include/CLucene/StdHeader.h:20:
:info:build /opt/local/include/CLucene/SharedHeader.h:57:10: fatal error: 
'cstddef' file not found
:info:build    57 | #include <cstddef> //need this for wchar_t, size_t, NULL
:info:build       |          ^~~~~~~~~
:info:build libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I../../.. 
-I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index 
-I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm 
-I/opt/local/include/openssl 
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -std=gnu99 -pipe 
-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch x86_64 
-fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 
-mfunction-return=keep -Wall -W -Wmissing-prototypes -Wmissing-declarations 
-Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast 
-Wno-duplicate-decl-specifier -Wstrict-aliasing=2 
-I/opt/local/libexec/openssl3/include -MT doveadm-fts-lucene.lo -MD -MP -MF 
.deps/doveadm-fts-lucene.Tpo -c doveadm-fts-lucene.c -o doveadm-fts-lucene.o 
>/dev/null 2>&1
:info:build libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I../../.. 
-I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index 
-I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm 
-I/opt/local/include/openssl 
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -std=gnu99 -pipe 
-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch x86_64 
-fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 
-mfunction-return=keep -Wall -W -Wmissing-prototypes -Wmissing-declarations 
-Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast 
-Wno-duplicate-decl-specifier -Wstrict-aliasing=2 
-I/opt/local/libexec/openssl3/include -MT fts-lucene-plugin.lo -MD -MP -MF 
.deps/fts-lucene-plugin.Tpo -c fts-lucene-plugin.c -o fts-lucene-plugin.o 
>/dev/null 2>&1
:info:build 1 error generated.
:info:build make[4]: *** [lucene-wrapper.lo] Error 1
:info:build make[4]: *** Waiting for unfinished jobs....
:info:build libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I../../.. 
-I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index 
-I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm 
-I/opt/local/include/openssl 
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -std=gnu99 -pipe 
-Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch x86_64 
-fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 
-mfunction-return=keep -Wall -W -Wmissing-prototypes -Wmissing-declarations 
-Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast 
-Wno-duplicate-decl-specifier -Wstrict-aliasing=2 
-I/opt/local/libexec/openssl3/include -MT fts-backend-lucene.lo -MD -MP -MF 
.deps/fts-backend-lucene.Tpo -c fts-backend-lucene.c -o fts-backend-lucene.o 
>/dev/null 2>&1
:info:build mv -f .deps/doveadm-fts-lucene.Tpo .deps/doveadm-fts-lucene.Plo
:info:build mv -f .deps/fts-lucene-plugin.Tpo .deps/fts-lucene-plugin.Plo
:info:build mv -f .deps/fts-backend-lucene.Tpo .deps/fts-backend-lucene.Plo
:info:build make[4]: Leaving directory 
`/opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_mail_dovecot/dovecot/work/dovecot-2.3.21.1/src/plugins/fts-lucene'
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[3]: Leaving directory 
`/opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_mail_dovecot/dovecot/work/dovecot-2.3.21.1/src/plugins'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory 
`/opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_mail_dovecot/dovecot/work/dovecot-2.3.21.1/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory 
`/opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_mail_dovecot/dovecot/work/dovecot-2.3.21.1'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory 
`/opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_mail_dovecot/dovecot/work/dovecot-2.3.21.1'
:info:build Command failed:  cd 
"/opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_mail_dovecot/dovecot/work/dovecot-2.3.21.1"
 && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build Failed to build dovecot: command execution failed
:debug:build Error code: CHILDSTATUS 24044 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback 
build"
:debug:build     (procedure "portbuild::build_main" line 10)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See 
/opt/local/var/macports/logs/_Users_gerben_MacPortsDev_macports-ports_mail_dovecot/dovecot/main.log
 for details.

Is there something I can do to fix this?

Thanks

Gerben

Reply via email to