Opened 12 years ago

Closed 12 years ago

#38985 closed defect (fixed)

kerberos5 fails on compile_et (10.6.8)

Reported by: posita (Matt Bogosian) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: neverpanic (Clemens Lang), cooljeanius (Eric Gallager)
Port: kerberos5

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Here's what I see as the failure:

checking for compile_et... compile_et
checking whether compile_et is useful... configure: error: cannot use et_foo_error_table

I don't think any of these are the same issue. Here's how I get it.

% port -v upgrade outdated

--->  Computing dependencies for kerberos5.
--->  Configuring kerberos5
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/clang++ accepts -g... yes
checking how to run the C preprocessor... /usr/bin/clang -E
checking build system type... x86_64-apple-darwin10.8.0
checking host system type... x86_64-apple-darwin10.8.0
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for GNU linker... no
configure: adding extra warning flags for gcc
configure: skipping pedantic warnings on Darwin
configure: adding extra warning flags for g++
checking if C compiler supports -Wno-format-zero-length... yes
checking if C compiler supports -Woverflow... yes
checking if C compiler supports -Wstrict-overflow... yes
checking if C compiler supports -Wmissing-format-attribute... yes
checking if C compiler supports -Wmissing-prototypes... yes
checking if C compiler supports -Wreturn-type... yes
checking if C compiler supports -Wmissing-braces... yes
checking if C compiler supports -Wparentheses... yes
checking if C compiler supports -Wswitch... yes
checking if C compiler supports -Wunused-function... yes
checking if C compiler supports -Wunused-label... yes
checking if C compiler supports -Wunused-variable... yes
checking if C compiler supports -Wunused-value... yes
checking if C compiler supports -Wunknown-pragmas... yes
checking if C compiler supports -Wsign-compare... yes
checking if C compiler supports -Wnewline-eof... yes
checking if C compiler supports -Werror=uninitialized... yes
checking if C compiler supports -Werror=declaration-after-statement... yes
checking if C compiler supports -Werror=variadic-macros... yes
checking if C compiler supports -Werror-implicit-function-declaration... yes
configure: disabling the use of common storage on Darwin
checking which version of com_err to use... system
checking for add_error_table in -lcom_err... yes
checking for remove_error_table in -lcom_err... yes
checking for compile_et... compile_et
checking whether compile_et is useful... configure: error: cannot use et_foo_error_table
Command failed:  cd "/[PATH]/var/macports/build/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-krb5-da9dc1b/src" && ./configure --prefix=/[PATH] --mandir=/[PATH]/share/man --with-system-et --without-system-db --without-hesiod --without-ldap --without-tcl --with-crypto-impl=openssl --with-pkinit-crypto-impl=openssl --with-libedit --without-readline --without-system-verto --without-system-ss 
Exit code: 1
Error: org.macports.configure for port kerberos5 returned: configure failure: command execution failed
Warning: targets not executed for kerberos5: org.macports.install org.macports.configure org.macports.build org.macports.destroot
Please see the log file for port kerberos5 for details:
    /[PATH]/var/macports/logs/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Here's the log file (redundant with -v above):

% cat /[PATH]/var/macports/logs/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/main.log

version:1
:msg:main --->  Computing dependencies for kerberos5:info:main .:debug:main Checking for conflicts against kerberos5
:debug:main Searching for dependency: fbopenssl
:debug:main Didn't find receipt, going to depspec regex for: fbopenssl
:debug:main Searching for dependency: autoconf
:debug:main Found Dependency: receipt exists for autoconf
:debug:main Searching for dependency: automake
:debug:main Found Dependency: receipt exists for automake
:debug:main Searching for dependency: libtool
:debug:main Found Dependency: receipt exists for libtool
:debug:main Searching for dependency: openssl
:debug:main Found Dependency: receipt exists for openssl
:debug:main Searching for dependency: libcomerr
:debug:main Found Dependency: receipt exists for libcomerr
:debug:main Searching for dependency: libedit
:debug:main Found Dependency: receipt exists for libedit
:msg:main 
:debug:main Executing org.macports.main (kerberos5)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (kerberos5)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (kerberos5)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (kerberos5)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (kerberos5)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (kerberos5)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Thu May  2 10:28:15 PDT 2013
:notice:configure --->  Configuring kerberos5
:debug:configure Using compiler 'Mac OS X clang'
:debug:configure Executing org.macports.configure (kerberos5)
:debug:configure Environment: CPATH='/[PATH]/include' CC_PRINT_OPTIONS_FILE='/[PATH]/var/macports/build/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/[PATH]/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:configure Assembled command: 'cd "/[PATH]/var/macports/build/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-krb5-da9dc1b/src" && autoreconf --install'
:debug:configure Executing command line:  cd "/[PATH]/var/macports/build/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-krb5-da9dc1b/src" && autoreconf --install 
:debug:configure Environment: CPATH='/[PATH]/include' CFLAGS='-pipe -O2 -arch x86_64' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/[PATH]/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/[PATH]/var/macports/build/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-arch x86_64' OBJC='/usr/bin/clang' FCFLAGS='-pipe -O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
:debug:configure Assembled command: 'cd "/[PATH]/var/macports/build/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-krb5-da9dc1b/src" && ./configure --prefix=/[PATH] --mandir=/[PATH]/share/man --with-system-et --without-system-db --without-hesiod --without-ldap --without-tcl --with-crypto-impl=openssl --with-pkinit-crypto-impl=openssl --with-libedit --without-readline --without-system-verto --without-system-ss'
:debug:configure Executing command line:  cd "/[PATH]/var/macports/build/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-krb5-da9dc1b/src" && ./configure --prefix=/[PATH] --mandir=/[PATH]/share/man --with-system-et --without-system-db --without-hesiod --without-ldap --without-tcl --with-crypto-impl=openssl --with-pkinit-crypto-impl=openssl --with-libedit --without-readline --without-system-verto --without-system-ss 
:info:configure checking for gcc... /usr/bin/clang
:info:configure checking whether the C compiler works... yes
:info:configure checking for C compiler default output file name... a.out
:info:configure checking for suffix of executables... 
:info:configure checking whether we are cross compiling... no
:info:configure checking for suffix of object files... o
:info:configure checking whether we are using the GNU C compiler... yes
:info:configure checking whether /usr/bin/clang accepts -g... yes
:info:configure checking for /usr/bin/clang option to accept ISO C89... none needed
:info:configure checking whether we are using the GNU C++ compiler... yes
:info:configure checking whether /usr/bin/clang++ accepts -g... yes
:info:configure checking how to run the C preprocessor... /usr/bin/clang -E
:info:configure checking build system type... x86_64-apple-darwin10.8.0
:info:configure checking host system type... x86_64-apple-darwin10.8.0
:info:configure checking for grep that handles long lines and -e... /usr/bin/grep
:info:configure checking for egrep... /usr/bin/grep -E
:info:configure checking for ANSI C header files... yes
:info:configure checking for sys/types.h... yes
:info:configure checking for sys/stat.h... yes
:info:configure checking for stdlib.h... yes
:info:configure checking for string.h... yes
:info:configure checking for memory.h... yes
:info:configure checking for strings.h... yes
:info:configure checking for inttypes.h... yes
:info:configure checking for stdint.h... yes
:info:configure checking for unistd.h... yes
:info:configure checking for GNU linker... no
:info:configure configure: adding extra warning flags for gcc
:info:configure configure: skipping pedantic warnings on Darwin
:info:configure configure: adding extra warning flags for g++
:info:configure checking if C compiler supports -Wno-format-zero-length... yes
:info:configure checking if C compiler supports -Woverflow... yes
:info:configure checking if C compiler supports -Wstrict-overflow... yes
:info:configure checking if C compiler supports -Wmissing-format-attribute... yes
:info:configure checking if C compiler supports -Wmissing-prototypes... yes
:info:configure checking if C compiler supports -Wreturn-type... yes
:info:configure checking if C compiler supports -Wmissing-braces... yes
:info:configure checking if C compiler supports -Wparentheses... yes
:info:configure checking if C compiler supports -Wswitch... yes
:info:configure checking if C compiler supports -Wunused-function... yes
:info:configure checking if C compiler supports -Wunused-label... yes
:info:configure checking if C compiler supports -Wunused-variable... yes
:info:configure checking if C compiler supports -Wunused-value... yes
:info:configure checking if C compiler supports -Wunknown-pragmas... yes
:info:configure checking if C compiler supports -Wsign-compare... yes
:info:configure checking if C compiler supports -Wnewline-eof... yes
:info:configure checking if C compiler supports -Werror=uninitialized... yes
:info:configure checking if C compiler supports -Werror=declaration-after-statement... yes
:info:configure checking if C compiler supports -Werror=variadic-macros... yes
:info:configure checking if C compiler supports -Werror-implicit-function-declaration... yes
:info:configure configure: disabling the use of common storage on Darwin
:info:configure checking which version of com_err to use... system
:info:configure checking for add_error_table in -lcom_err... yes
:info:configure checking for remove_error_table in -lcom_err... yes
:info:configure checking for compile_et... compile_et
:info:configure checking whether compile_et is useful... configure: error: cannot use et_foo_error_table
:info:configure Command failed:  cd "/[PATH]/var/macports/build/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-krb5-da9dc1b/src" && ./configure --prefix=/[PATH] --mandir=/[PATH]/share/man --with-system-et --without-system-db --without-hesiod --without-ldap --without-tcl --with-crypto-impl=openssl --with-pkinit-crypto-impl=openssl --with-libedit --without-readline --without-system-verto --without-system-ss 
:info:configure Exit code: 1
:error:configure org.macports.configure for port kerberos5 returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for kerberos5: org.macports.install org.macports.configure org.macports.build org.macports.destroot
:notice:configure Please see the log file for port kerberos5 for details:
    /[PATH]/var/macports/logs/_[PATH]_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/main.log

Attachments (2)

mtb19@columbia.edu-38985-main.log (8.8 KB) - added by posita (Matt Bogosian) 12 years ago.
mtb19@…
mtb19@columbia.edu-38985-config.log (27.7 KB) - added by posita (Matt Bogosian) 12 years ago.
mtb19@…

Download all attachments as: .zip

Change History (16)

comment:1 in reply to:  description Changed 12 years ago by posita (Matt Bogosian)

This may be a duplicate (see #38214, which is marked as fixed).

% port info kerberos5

kerberos5 @1.11.1 (net, security)
Variants:             universal

Description:          Kerberos is a network authentication protocol. It is designed to provide strong authentication for client/server
                      applications by using secret-key cryptography. A free implementation of this protocol is available from the Massachusetts
                      Institute of Technology. Kerberos is available in many commercial products as well.
Homepage:             http://web.mit.edu/kerberos/

Build Dependencies:   autoconf, automake, libtool
Library Dependencies: openssl, libcomerr, libedit
Conflicts with:       fbopenssl
Platforms:            darwin
License:              MIT BSD ISC OpenLDAP-2.8+
Maintainers:          nomaintainer@macports.org
Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:3 Changed 12 years ago by piotr1212@…

I have the same problem. It doesn't seem to be a duplicate as I have gawk installed.

comment:4 Changed 12 years ago by piotr1212@…

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_kerberos5/kerberos5/work/krb5-krb5-da9dc1b/src/config.log

Piotr-Popieluchs-MacBook% cat config.log 
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Kerberos 5 configure 1.11.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/opt/local --mandir=/opt/local/share/man --with-system-et --without-system-db --without-hesiod --without-ldap --without-tcl --with-crypto-impl=openssl --with-pkinit-crypto-impl=openssl --with-libedit --without-readline --without-system-verto --without-system-ss

## --------- ##
## Platform. ##
## --------- ##

hostname = Piotr-Popieluchs-MacBook.local
uname -m = i386
uname -r = 10.8.0
uname -s = Darwin
uname -v = Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
	 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 2.00 gigabytes
Default processor set: 72 tasks, 308 threads, 2 processors
Load average: 0.85, Mach factor: 1.14
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /Users/piotrpopieluch/perl5/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/X11/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2625: checking for gcc
configure:2641: found /usr/bin/gcc
configure:2652: result: gcc
configure:2881: checking for C compiler version
configure:2890: gcc --version >&5
i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2901: $? = 0
configure:2890: gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/Developer/usr/llvm-gcc-4.2/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/dst-llvmCore/Developer/usr/local --with-gxx-include-dir=/usr/include/c++/4.2.1 --host=i686-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
configure:2901: $? = 0
configure:2890: gcc -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:2901: $? = 1
configure:2890: gcc -qversion >&5
i686-apple-darwin10-llvm-gcc-4.2: no input files
configure:2901: $? = 1
configure:2921: checking whether the C compiler works
configure:2943: gcc    conftest.c  >&5
configure:2947: $? = 0
configure:2995: result: yes
configure:2998: checking for C compiler default output file name
configure:3000: result: a.out
configure:3006: checking for suffix of executables
configure:3013: gcc -o conftest    conftest.c  >&5
configure:3017: $? = 0
configure:3039: result: 
configure:3061: checking whether we are cross compiling
configure:3069: gcc -o conftest    conftest.c  >&5
configure:3073: $? = 0
configure:3080: ./conftest
configure:3084: $? = 0
configure:3099: result: no
configure:3104: checking for suffix of object files
configure:3126: gcc -c   conftest.c >&5
configure:3130: $? = 0
configure:3151: result: o
configure:3155: checking whether we are using the GNU C compiler
configure:3174: gcc -c   conftest.c >&5
configure:3174: $? = 0
configure:3183: result: yes
configure:3192: checking whether gcc accepts -g
configure:3212: gcc -c -g  conftest.c >&5
configure:3212: $? = 0
configure:3253: result: yes
configure:3270: checking for gcc option to accept ISO C89
configure:3333: gcc  -c -g -O2  conftest.c >&5
configure:3333: $? = 0
configure:3346: result: none needed
configure:3424: checking for g++
configure:3440: found /usr/bin/g++
configure:3451: result: g++
configure:3478: checking for C++ compiler version
configure:3487: g++ --version >&5
i686-apple-darwin10-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3498: $? = 0
configure:3487: g++ -v >&5
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/Developer/usr/llvm-gcc-4.2/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~3/dst-llvmCore/Developer/usr/local --with-gxx-include-dir=/usr/include/c++/4.2.1 --host=i686-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
configure:3498: $? = 0
configure:3487: g++ -V >&5
llvm-g++-4.2: argument to `-V' is missing
configure:3498: $? = 1
configure:3487: g++ -qversion >&5
i686-apple-darwin10-llvm-g++-4.2: no input files
configure:3498: $? = 1
configure:3502: checking whether we are using the GNU C++ compiler
configure:3521: g++ -c   conftest.cpp >&5
configure:3521: $? = 0
configure:3530: result: yes
configure:3539: checking whether g++ accepts -g
configure:3559: g++ -c -g  conftest.cpp >&5
configure:3559: $? = 0
configure:3600: result: yes
configure:3629: checking how to run the C preprocessor
configure:3660: gcc -E  conftest.c
configure:3660: $? = 0
configure:3674: gcc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3674: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Kerberos 5"
| #define PACKAGE_TARNAME "krb5"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "Kerberos 5 1.11.1"
| #define PACKAGE_BUGREPORT "krb5-bugs@mit.edu"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3699: result: gcc -E
configure:3719: gcc -E  conftest.c
configure:3719: $? = 0
configure:3733: gcc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3733: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Kerberos 5"
| #define PACKAGE_TARNAME "krb5"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "Kerberos 5 1.11.1"
| #define PACKAGE_BUGREPORT "krb5-bugs@mit.edu"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3776: checking build system type
configure:3790: result: i386-apple-darwin10.8.0
configure:3810: checking host system type
configure:3823: result: i386-apple-darwin10.8.0
configure:3843: checking for grep that handles long lines and -e
configure:3901: result: /usr/bin/grep
configure:3906: checking for egrep
configure:3968: result: /usr/bin/grep -E
configure:3973: checking for ANSI C header files
configure:3993: gcc -c -g -O2  conftest.c >&5
configure:3993: $? = 0
configure:4066: gcc -o conftest -g -O2   conftest.c  >&5
configure:4066: $? = 0
configure:4066: ./conftest
configure:4066: $? = 0
configure:4077: result: yes
configure:4090: checking for sys/types.h
configure:4090: gcc -c -g -O2  conftest.c >&5
configure:4090: $? = 0
configure:4090: result: yes
configure:4090: checking for sys/stat.h
configure:4090: gcc -c -g -O2  conftest.c >&5
configure:4090: $? = 0
configure:4090: result: yes
configure:4090: checking for stdlib.h
configure:4090: gcc -c -g -O2  conftest.c >&5
configure:4090: $? = 0
configure:4090: result: yes
configure:4090: checking for string.h
configure:4090: gcc -c -g -O2  conftest.c >&5
configure:4090: $? = 0
configure:4090: result: yes
configure:4090: checking for memory.h
configure:4090: gcc -c -g -O2  conftest.c >&5
configure:4090: $? = 0
configure:4090: result: yes
configure:4090: checking for strings.h
configure:4090: gcc -c -g -O2  conftest.c >&5
configure:4090: $? = 0
configure:4090: result: yes
configure:4090: checking for inttypes.h
configure:4090: gcc -c -g -O2  conftest.c >&5
configure:4090: $? = 0
configure:4090: result: yes
configure:4090: checking for stdint.h
configure:4090: gcc -c -g -O2  conftest.c >&5
configure:4090: $? = 0
configure:4090: result: yes
configure:4090: checking for unistd.h
configure:4090: gcc -c -g -O2  conftest.c >&5
configure:4090: $? = 0
configure:4090: result: yes
configure:4109: checking for GNU linker
configure:4117: gcc -Wl,-v 2>&1 			| grep GNU ld > /dev/null
configure:4120: $? = 1
configure:4126: result: no
configure:4159: adding extra warning flags for gcc
configure:4163: skipping pedantic warnings on Darwin
configure:4176: adding extra warning flags for g++
configure:4183: checking if C compiler supports -Wno-format-zero-length
configure:4200: gcc -c -g -O2  conftest.c >&5
configure:4200: $? = 0
configure:4214: gcc -c -g -O2 -Wno-format-zero-length  conftest.c >&5
configure:4214: $? = 0
configure:4227: result: yes
configure:4238: checking if C compiler supports -Woverflow
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Woverflow  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wstrict-overflow
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wstrict-overflow  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wmissing-format-attribute
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wmissing-format-attribute  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wmissing-prototypes
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wmissing-prototypes  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wreturn-type
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wreturn-type  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wmissing-braces
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wmissing-braces  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wparentheses
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wparentheses  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wswitch
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wswitch  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wunused-function
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wunused-function  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wunused-label
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wunused-label  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wunused-variable
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wunused-variable  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wunused-value
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wunused-value  conftest.c >&5
conftest.c: In function 'main':
conftest.c:23: warning: statement with no effect
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wunknown-pragmas
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wunknown-pragmas  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wsign-compare
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wsign-compare  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Wnewline-eof
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Wnewline-eof  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4238: checking if C compiler supports -Werror=uninitialized
configure:4255: gcc -c -g -O2  conftest.c >&5
configure:4255: $? = 0
configure:4269: gcc -c -g -O2 -Werror=uninitialized  conftest.c >&5
configure:4269: $? = 0
configure:4282: result: yes
configure:4305: checking if C compiler supports -Werror=declaration-after-statement
configure:4322: gcc -c -g -O2  conftest.c >&5
configure:4322: $? = 0
configure:4336: gcc -c -g -O2 -Werror=declaration-after-statement  conftest.c >&5
configure:4336: $? = 0
configure:4349: result: yes
configure:4305: checking if C compiler supports -Werror=variadic-macros
configure:4322: gcc -c -g -O2  conftest.c >&5
configure:4322: $? = 0
configure:4336: gcc -c -g -O2 -Werror=variadic-macros  conftest.c >&5
configure:4336: $? = 0
configure:4349: result: yes
configure:4419: checking if C compiler supports -Werror-implicit-function-declaration
configure:4436: gcc -c -g -O2  conftest.c >&5
configure:4436: $? = 0
configure:4450: gcc -c -g -O2 -Werror-implicit-function-declaration  conftest.c >&5
configure:4450: $? = 0
configure:4463: result: yes
configure:4537: disabling the use of common storage on Darwin
configure:4597: checking which version of com_err to use
configure:4602: result: system
configure:4611: checking for add_error_table in -lcom_err
configure:4636: gcc -o conftest -g -O2 -fno-common   -Wl,-search_paths_first conftest.c -lcom_err   >&5
configure:4636: $? = 0
configure:4645: result: yes
configure:4653: checking for remove_error_table in -lcom_err
configure:4678: gcc -o conftest -g -O2 -fno-common   -Wl,-search_paths_first conftest.c -lcom_err   >&5
configure:4678: $? = 0
configure:4687: result: yes
configure:4705: checking for compile_et
configure:4721: found /opt/local/bin/compile_et
configure:4732: result: compile_et
configure:4747: checking whether compile_et is useful
configure:4768: gcc -c -g -O2 -fno-common  conftest.c >&5
In file included from conftest.c:19:
conf93079e.h:6:24: error: et/com_err.h: No such file or directory
In file included from conftest.c:19:
conf93079e.h:13: warning: 'struct et_list' declared inside parameter list
conf93079e.h:13: warning: its scope is only this definition or declaration, which is probably not what you want
configure:4768: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Kerberos 5"
| #define PACKAGE_TARNAME "krb5"
| #define PACKAGE_VERSION "1.11.1"
| #define PACKAGE_STRING "Kerberos 5 1.11.1"
| #define PACKAGE_BUGREPORT "krb5-bugs@mit.edu"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include "conf93079e.h"
| 
| int
| main ()
| {
|  &et_foo_error_table;
|   ;
|   return 0;
| }
configure:4771: error: cannot use et_foo_error_table

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i386-apple-darwin10.8.0
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DB_HEADER_set=
ac_cv_env_DB_HEADER_value=
ac_cv_env_DB_LIB_set=
ac_cv_env_DB_LIB_value=
ac_cv_env_DEFCCNAME_set=
ac_cv_env_DEFCCNAME_value=
ac_cv_env_DEFCKTNAME_set=
ac_cv_env_DEFCKTNAME_value=
ac_cv_env_DEFKTNAME_set=
ac_cv_env_DEFKTNAME_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_SS_LIB_set=
ac_cv_env_SS_LIB_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i386-apple-darwin10.8.0
ac_cv_lib_com_err_add_error_table=yes
ac_cv_lib_com_err_remove_error_table=yes
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_compile_et=compile_et
ac_cv_prog_cxx_g=yes
krb5_cv_cc_flag__dash_Werror_dash_implicit_dash_function_dash_declaration=yes
krb5_cv_cc_flag__dash_Werror_eq_declaration_dash_after_dash_statement=yes
krb5_cv_cc_flag__dash_Werror_eq_uninitialized=yes
krb5_cv_cc_flag__dash_Werror_eq_variadic_dash_macros=yes
krb5_cv_cc_flag__dash_Wmissing_dash_braces=yes
krb5_cv_cc_flag__dash_Wmissing_dash_format_dash_attribute=yes
krb5_cv_cc_flag__dash_Wmissing_dash_prototypes=yes
krb5_cv_cc_flag__dash_Wnewline_dash_eof=yes
krb5_cv_cc_flag__dash_Wno_dash_format_dash_zero_dash_length=yes
krb5_cv_cc_flag__dash_Woverflow=yes
krb5_cv_cc_flag__dash_Wparentheses=yes
krb5_cv_cc_flag__dash_Wreturn_dash_type=yes
krb5_cv_cc_flag__dash_Wsign_dash_compare=yes
krb5_cv_cc_flag__dash_Wstrict_dash_overflow=yes
krb5_cv_cc_flag__dash_Wswitch=yes
krb5_cv_cc_flag__dash_Wunknown_dash_pragmas=yes
krb5_cv_cc_flag__dash_Wunused_dash_function=yes
krb5_cv_cc_flag__dash_Wunused_dash_label=yes
krb5_cv_cc_flag__dash_Wunused_dash_value=yes
krb5_cv_cc_flag__dash_Wunused_dash_variable=yes
krb5_cv_prog_gnu_ld=no

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
ARADD=''
ARCHIVE=''
AWK=''
BASH='/bin/sh'
CC='gcc'
CC_LINK=''
CFLAGS='-g -O2 -fno-common'
COM_ERR_VERSION='sys'
CONFIG_RELTOPDIR=''
CPP='gcc -E'
CPPFLAGS=''
CRYPTO_IMPL=''
CRYPTO_IMPL_CFLAGS=''
CRYPTO_IMPL_LIBS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXX_LINK=''
DB_EXTRA_LIBS=''
DB_HEADER=''
DB_HEADER_VERSION=''
DB_LIB=''
DB_VERSION=''
DEFCCNAME=''
DEFCKTNAME=''
DEFKTNAME=''
DEFS=''
DEPLIBEXT=''
DIG=''
DL_LIB=''
DO_ALL=''
DO_TCL=''
DO_TEST=''
DYNOBJEXT=''
DYNOBJ_EXPDEPS=''
DYNOBJ_EXPFLAGS=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
EXPECT=''
EXTRA_FILES=''
EXTRA_SUPPORT_SYMS=''
FCTSH=''
FNMATCH_OBJ=''
FNMATCH_ST_OBJ=''
GEN_LIB=''
GETTIMEOFDAY_OBJ=''
GETTIMEOFDAY_ST_OBJ=''
GREP='/usr/bin/grep'
GROFF=''
GSSRPC__BSD_TYPEALIASES=''
GSSRPC__FAKE_UINT32=''
GSSRPC__INTTYPES_H=''
GSSRPC__NETDB_H=''
GSSRPC__STDINT_H=''
GSSRPC__SYS_PARAM_H=''
GSSRPC__SYS_SELECT_H=''
GSSRPC__SYS_TIME_H=''
GSSRPC__UNISTD_H=''
HAVE_GCC='yes'
HAVE_PYTHON=''
HAVE_RUNTEST=''
HESIOD_DEFS=''
HESIOD_LIBS=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_SHLIB=''
KDB5_DB_LIB=''
KDB5_PLUGIN_DEPLIBS=''
KDB5_PLUGIN_LIBS=''
KRB5_RCTMPDIR=''
KRB5_RUN_ENV=''
KRB5_RUN_VARS=''
KRB5_VERSION=''
KSU_LIBS=''
LD='gcc'
LDAP=''
LDAP_LIBS=''
LDFLAGS=' -Wl,-search_paths_first'
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBINSTLIST=''
LIBLINKS=''
LIBLIST=''
LIBOBJS=''
LIBS=''
LIBUTIL=''
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKE_DYNOBJ_COMMAND=''
MAKE_SHLIB_COMMAND=''
MKSTEMP_OBJ=''
MKSTEMP_ST_OBJ=''
MSGFMT=''
NSLOOKUP=''
OBJEXT='o'
OBJLISTS=''
PACKAGE_BUGREPORT='krb5-bugs@mit.edu'
PACKAGE_NAME='Kerberos 5'
PACKAGE_STRING='Kerberos 5 1.11.1'
PACKAGE_TARNAME='krb5'
PACKAGE_URL=''
PACKAGE_VERSION='1.11.1'
PASS=''
PATH_SEPARATOR=':'
PERL=''
PERL_PATH=''
PFLIBEXT=''
PFOBJEXT=''
PICFLAGS=''
PKINIT=''
PKINIT_CRYPTO_IMPL=''
PKINIT_CRYPTO_IMPL_CFLAGS=''
PKINIT_CRYPTO_IMPL_LIBS=''
PLUGIN=''
PLUGININST=''
PLUGINLINK=''
PRINTF_OBJ=''
PRINTF_ST_OBJ=''
PRIOCNTL_HACK=''
PRNG_ALG=''
PROFFLAGS=''
PROG_RPATH_FLAGS=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
PYTHON=''
PYTHON_LIB=''
RANLIB=''
RBUILD=''
RL_CFLAGS=''
RL_LIBS=''
RPATH_FLAG=''
RUNTEST=''
SETENVOBJ=''
SH5=''
SH=''
SHELL='/bin/sh'
SHLIBEXT=''
SHLIBSEXT=''
SHLIBVEXT=''
SHLIB_EXPFLAGS=''
SHLIB_EXPORT_FILE_DEP=''
SHLIB_RPATH_FLAGS=''
SHOBJEXT=''
SS_LIB=''
SS_VERSION=''
STLIBEXT=''
STOBJEXT=''
STRLCPY_OBJ=''
STRLCPY_ST_OBJ=''
SUPPORTLIB_MAJOR=''
S_TOP=''
TCL_INCLUDES=''
TCL_LIBPATH=''
TCL_LIBS=''
TCL_MAYBE_RPATH=''
TCL_RPATH=''
THREAD_SUPPORT=''
VERTO_CFLAGS=''
VERTO_LIBS=''
VERTO_VERSION=''
WARN_CFLAGS=' -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Wnewline-eof -Werror=uninitialized -Werror=declaration-after-statement -Werror=variadic-macros -Werror-implicit-function-declaration'
WARN_CXXFLAGS=' -Wall -Wcast-align -Wshadow'
YACC=''
YFLAGS=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
acx_pthread_config=''
bindir='${exec_prefix}/bin'
build='i386-apple-darwin10.8.0'
build_alias=''
build_cpu='i386'
build_os='darwin10.8.0'
build_vendor='apple'
compile_et='compile_et'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
have_PERL=''
have_RUNTEST=''
host='i386-apple-darwin10.8.0'
host_alias=''
host_cpu='i386'
host_os='darwin10.8.0'
host_vendor='apple'
htmldir='${docdir}'
include_inttypes=''
include_stdint=''
include_xom=''
includedir='${prefix}/include'
infodir='${datarootdir}/info'
krb5_cv_host=''
ldap_plugin_dir=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='/opt/local/share/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
po=''
prefix='/opt/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
rpcent_define=''
sam2_plugin=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

lib_frag=''
libnodeps_frag=''
libnover_frag=''
libobj_frag=''
libpriv_frag=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "Kerberos 5"
#define PACKAGE_TARNAME "krb5"
#define PACKAGE_VERSION "1.11.1"
#define PACKAGE_STRING "Kerberos 5 1.11.1"
#define PACKAGE_BUGREPORT "krb5-bugs@mit.edu"
#define PACKAGE_URL ""
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1

configure: exit 1

comment:5 Changed 12 years ago by neverpanic (Clemens Lang)

Cc: cal@… added

You can't change it now, but next time please consider attaching files rather than pasting their contents… this is huge. :(

Problem is

error: et/com_err.h: No such file or directory

which makes sense, because we do not specify -I$prefix/include in the CFLAGS for the kerberos5 port (for good reasons). We however have the CPATH and LIBRARY_PATH variables set that recent enough clang should use those to find the necessary headers. However, your config.log shows kerberos5 uses gcc as compiler, while the log you pasted in the initial post correctly reads

checking for gcc... /usr/bin/clang

Also, your $prefix seems to be /opt/local, but your main.log contains

:debug:main Privilege de-escalation not attempted as not running as root.

Did you specifically install a non-root version of MacPorts in /opt/local or did you somehow modify MacPorts to not use root privileges?

Anyway, can you please clean kerberos5, re-try and attach both the complete main.log and the complete config.log (compressing them, if necessary)?

comment:6 Changed 12 years ago by neverpanic (Clemens Lang)

Oh nevermind. I seem to have mixed up that two people have this issue. I can't be sure this is the same problem; so, both of you: please attach your main.log and config.log files.

comment:7 Changed 12 years ago by posita (Matt Bogosian)

My apologies on the files. I did not take the requisite time to familiarize myself with ticket filing conventions.

Regarding my non-root version, yes, that is intentional (it is a user install on a machine on which I do not have root privileges).

But yes, it appears that it is happening irrespective of whether root privileges are available.

Changed 12 years ago by posita (Matt Bogosian)

mtb19@…

Changed 12 years ago by posita (Matt Bogosian)

mtb19@…

comment:8 Changed 12 years ago by neverpanic (Clemens Lang)

Please provide the output of

port installed libcomerr
port contents libcomerr | grep 'com_err\.h'
echo '#include <et/com_err.h>' | CPATH=$prefix/include /usr/bin/clang -v -x c -

where you replace $prefix with your MacPorts install path.

comment:9 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:10 Changed 12 years ago by luc.fabresse@…

Hello,

I had exactly the same issue. Here what you asked for just above.

$ port installed libcomerr
The following ports are currently installed:
  libcomerr @1.42.7_2+universal (active)
luc @ balrog : /opt/local/var/macports

$ port contents libcomerr | grep 'com_err\.h'
  /opt/local/include/com_err.h
  /opt/local/include/et/com_err.h
luc @ balrog : /opt/local/var/macports

$ echo '#include <et/com_err.h>' | CPATH=/opt/local/include /usr/bin/clang -v -x c -
Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin10.8.0
Thread model: posix
 "/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.6.8 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name - -pic-level 1 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 127.2 -v -resource-dir /usr/bin/../lib/clang/3.0 -ferror-limit 19 -fmessage-length 171 -stack-protector 1 -fblocks -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/2q/2qIvyBAbEHC7FH-LtqOad++++TM/-Tmp-/cc-1Mvb3W.o -x c -
clang -cc1 version 3.0 based upon llvm 3.0svn hosted on x86_64-apple-darwin10.8.0
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/bin/../lib/clang/3.0/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
<stdin>:1:10: fatal error: 'et/com_err.h' file not found
#include <et/com_err.h>
         ^
1 error generated.

I am not sure to understand well. It seems that my clang is ignoring CPATH... Using -I instead of CPATH works perfectly. But -I/opt/local/include is not there on the compilation line because of #77769, the Portfile constains :

configure.cppflags-delete   -I${prefix}/include 
configure.ldflags-delete    -L${prefix}/lib

I had to remove these 2 lines from the port file. The first one because configure was not finding /opt/include/et/comm_err.h (because clang seems to not use CPATH env) The second one because configure was then not finding some libs (I do not remember which one one)

But uncommenting those also brings new problems ;-) When I did :

sudo port install kerberos5

It mandatory installs the universal version that contains both x86_64 and i386 on my system. The configuration stage was ok but the building failed on linking i386 libs. During the building process:

  • some libs (x86_64 only) are generated in /opt/local/lib.

I did it multiple times and I clearly verified that no libs where there before doing the "port install". #77769 "says avoid building against installed older version" but in my case it is a conflict with the version being installed ;-)

  • the same libs are also generated in /opt/local/var/macports/sources/rsync.macports.org/release/ports/net/kerberos5/work/XXXX/lib <compiling worspace> but the two arch x86_64 and i386.
  • Then, when it comes to link some i386 libs it tries to link them to those in /opt/local/lib that do not contain the i386 arch.

I think it should be possible to specify something like that "-L. -L.. -L${prefix}/lib" in the PortFile to be sure that the libs in the compiling directory will be taken first.

Currently, I just copied all libs from and relaunch the install multiple times.

sudo cp -f /opt/local/var/macports/sources/rsync.macports.org/release/ports/net/kerberos5/work/XXXX/lib/lib* /opt/local/lib/
sudo port install kerberos5

I hope it helps, Cheers,

#Luc

comment:11 in reply to:  10 Changed 12 years ago by neverpanic (Clemens Lang)

Replying to luc.fabresse@…:

I am not sure to understand well. It seems that my clang is ignoring CPATH...

So this is likely a case of http://llvm.org/bugs/show_bug.cgi?id=8971. It seems we really shouldn't be relying on CPATH anyway. I agree specifying -I. -I.. -I$prefix/lib might be a way to fix this without relying on CPATH. I will look into this.

It mandatory installs the universal version that contains both x86_64 and i386 on my system. The configuration stage was ok but the building failed on linking i386 libs. During the building process:

  • some libs (x86_64 only) are generated in /opt/local/lib.

I did it multiple times and I clearly verified that no libs where there before doing the "port install". #77769 "says avoid building against installed older version" but in my case it is a conflict with the version being installed ;-)

Are you saying the build process directly installs files in /opt/local/lib without going through destroot? Are you seeing this when you run sudo port destroot kerberos5, too? If yes, this is either a bug in the Portfile (or the part where it handles +universal) or kerberos' build system.

comment:12 Changed 12 years ago by neverpanic (Clemens Lang)

Can you please test whether r105939 resolves the issue for you?

comment:13 Changed 12 years ago by luc.fabresse@…

Hi Cal,

So this is likely a case of ​http://llvm.org/bugs/show_bug.cgi?id=8971. It seems we really shouldn't be relying on CPATH anyway.

ok good to know. Thanks.

I agree specifying -I. -I.. -I$prefix/lib might be a way to fix this without relying on CPATH. I will look into this.

Are you saying the build process directly installs files in /opt/local/lib without going through destroot? Are you seeing this when you run sudo port destroot kerberos5, too?

Ok, before recompiling, I ensured that /opt/local/lib does not contains libkrb*.dylib. Otherwise, the compiling may pass by linking to those libs if they contains both arch i386 and x86_64. Or the linking may fail because those libs does only contain one arch and not the one needed to achieve the linking. So let's remove them before.

$ sudo port uninstall -f kerberos5
$ ls -1 /opt/local/lib/libkrb* | wc -l
ls: /opt/local/lib/libkrb*: No such file or directory
       0

Then, I also checked that the two lines below are commented in the Port file (otherwise it fails at configuration stage)

# configure.cppflags-delete   -I${prefix}/include
# configure.ldflags-delete    -L${prefix}/lib

An I did the compile through destroot:

$ sudo port destroot kerberos5
Portfile changed since last build; discarding previous state.
--->  Computing dependencies for kerberos5
--->  Fetching distfiles for kerberos5
--->  Verifying checksum(s) for kerberos5
--->  Extracting kerberos5
--->  Applying patches to kerberos5
--->  Configuring kerberos5
--->  Building kerberos5
--->  Staging kerberos5 into destroot

Everything seems ok.

$ file /opt/local/var/macports/sources/rsync.macports.org/release/ports/net/kerberos5/work/destroot/opt/local/lib/libkrb5.3.3.dylib
/opt/local/var/macports/sources/rsync.macports.org/release/ports/net/kerberos5/work/destroot/opt/local/lib/libkrb5.3.3.dylib: Mach-O universal binary with 2 architectures: [x86_64: Mach-O 64-bit x86_64 dynamically linked shared library] [i386]

New compiled lib is ok. And the funny thing is that now doing:

$ sudo port install kerberos5

works like a charm. I suppose that it copied libs from the destroot dir?

If yes, this is either a bug in the Portfile (or the part where it handles +universal) or kerberos' build system.

no idea.

Can you please test whether http://trac.macports.org/changeset/105939 r105939 resolves the issue for you?

no. I get a checksum problem because of a patch being applied I might understood. I forgot to save the main.log and lost it.

Finally, now if I clean everything and keep the the two lines removed in the PortFile, it builds and installs perfectly. I do not understand why I cannot reproduce the error I got multiple times yesterday about libs with one arch in /opt/local/lib...

Cheers,

#Luc

comment:14 in reply to:  13 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

Replying to luc.fabresse@…:

Then, I also checked that the two lines below are commented in the Port file (otherwise it fails at configuration stage)

# configure.cppflags-delete   -I${prefix}/include
# configure.ldflags-delete    -L${prefix}/lib

These lines are now obsolete with r105939 and have replaced by some lines that should fix the problem you had.

$ sudo port install kerberos5

works like a charm. I suppose that it copied libs from the destroot dir?

Yes. All that install does is creating an archive from the files in destroot and unpacking that archive into $prefix.

no. I get a checksum problem because of a patch being applied I might understood.

That shouldn't happen, but since you modified your Portfile this could have a lot of reasons and,

I forgot to save the main.log and lost it.

without the main.log (or a way to reproduce it), debugging this is impossible.

Finally, now if I clean everything and keep the the two lines removed in the PortFile, it builds and installs perfectly.

Unless you run selfupdate and also have r105939 a later update of kerberos5 might fail to build, though, which is what those two lines were all about.

Anyway, I just tested to install kerberos5 in a clean installation of MacPorts and then ran port destroot kerberos5 +universal, which did succeed. I thus assume the "kerberos is linking against the files installed by a previous version" problem is solved by r105939. Since r105939 also passes -I$prefix/include and -L$prefix/lib, the configure failure regarding compile_et should also be solved. I will close this ticket as fixed. Please re-open if it still doesn't work for you.

Note: See TracTickets for help on using tickets.