[MacPorts] #38985: kerberos5 fails on compile_et (10.6.8)

MacPorts noreply at macports.org
Fri May 10 14:21:48 PDT 2013


#38985: kerberos5 fails on compile_et (10.6.8)
------------------------+--------------------------------
  Reporter:  mtb19@…    |      Owner:  macports-tickets@…
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.1.3
Resolution:             |   Keywords:
      Port:  kerberos5  |
------------------------+--------------------------------

Comment (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

-- 
Ticket URL: <https://trac.macports.org/ticket/38985#comment:10>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list