That fixed my clang errors. Thank you Jim.
> My guess is that you do not have SDKROOT defined in your environment.
>
> Before running configure make sure you do:
>
> export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
>
> > On Jan 20, 2021, at 6:09 PM, Dylan Pham <
[hidden email]> wrote:
> >
> > So I ran below:
> >
> > ./configure \
> > --enable-verbose \
> > --with-openldap \
> > --enable-category-b \
> > --enable-bundled-dictionaries \
> > --enable-wiki-publisher \
> > --without-junit \
> > --with-jdk-home="$JAVA_HOME" \
> > --with-ant-home="$ANT_HOME" \
> > --with-epm=/usr/local/bin/epm \
> > --with-dmake-path=/usr/local/bin/dmake \
> > --without-stlport \
> > --with-package-format="dmg" \
> > --disable-systray \
> > --with-alloc=internal \
> > --with-lang="${LANGS}"
> >
> > and I got errors below in terminal (truncated):
> >
> > checking gcc home... /usr
> > checking for gcc... /Library/Developer/CommandLineTools/usr/bin/clang
> -arch x86_64
> > checking whether the C compiler works... no
> > configure: error: in `/Users/devops1/aoodev/openoffice/main':
> > configure: error: C compiler cannot create executables
> > See `config.log' for more details
> >
> > Below is a snippet from config.log, full file has been attached:
> >
> ---------------------------------------------------------------------------------------configure:6790:
> $? = 0
> > configure:6779: /Library/Developer/CommandLineTools/usr/bin/clang -arch
> x86_64 -V >&5
> > clang: error: argument to '-V' is missing (expected 1 value)
> > clang: error: no input files
> > configure:6790: $? = 1
> > configure:6779: /Library/Developer/CommandLineTools/usr/bin/clang -arch
> x86_64 -qversion >&5
> > clang: error: unknown argument '-qversion'; did you mean '--version'?
> > clang: error: no input files
> > configure:6790: $? = 1
> > configure:6810: checking whether the C compiler works
> > configure:6832: /Library/Developer/CommandLineTools/usr/bin/clang -arch
> x86_64 conftest.c >&5
> > ld: library not found for -lSystem
> > clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> > .
> > .
> > configure: exit 77
> >
> ---------------------------------------------------------------------------------------
> > Upon checking xcode-select -v shows version 2384 (Xcode 12.3)
> >
> > Should I replace in configure file -qversion with --version as the error
> output seems to suggest?
> > clang: error: unknown argument '-qversion'; did you mean '--version'?
> >
> > How do I find out what line in configure file this error below is
> referring to?
> > clang: error: argument to '-V' is missing (expected 1 value)
> >
> > What does the number XXXX refers to in configure:XXXX: in the config.log
> (e.g configure:6779:) ?
> >
> > Any idea what I can try to resolve these configure errors? Or is it ok
> to ignore these errors and proceed with the rest of instructions to build?
> Thanks.
> >
> > Dylan
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
[hidden email]
> > For additional commands, e-mail:
[hidden email]
>
>