[MacPorts] #20484: xercesc-3.0.1 Build failure

MacPorts noreply at macports.org
Wed Jul 29 13:47:17 PDT 2009


#20484: xercesc-3.0.1 Build failure
-----------------------------+----------------------------------------------
 Reporter:  jhauser@…        |       Owner:  macports-tickets@…                   
     Type:  defect           |      Status:  new                                  
 Priority:  Normal           |   Milestone:                                       
Component:  ports            |     Version:  1.7.1                                
 Keywords:                   |        Port:                                       
-----------------------------+----------------------------------------------
 When installing shibboleth 2 on Mac OS X Server 10.5.7, and following the
 instructions here:

 https://spaces.internet2.edu/display/SHIB2/NativeSPMacPortInstallation

 I get a failure in building xercesc as follows:

 {{{
 --->  Fetching xercesc
 --->  Attempting to fetch xerces-c-3.0.1.tar.gz from
 http://distfiles.macports.org/xercesc
 --->  Attempting to fetch xerces-c-3.0.1.tar.gz from
 http://archive.apache.org/dist/xerces/c/3/sources/
 --->  Verifying checksum(s) for xercesc
 --->  Extracting xercesc
 --->  Configuring xercesc
 --->  Building xercesc
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_usr_local_ports_shibboleth_xercesc/work/xerces-c-3.0.1"
 && make all " returned error 2
 Command output: make  all-recursive
 Making all in src
 Making all in xercesc/util/MsgLoaders/ICU/resources
 /opt/local/bin/genrb root.txt
 /opt/local/bin/pkgdata --name xercesc_messages_3_0 --mode dll -d . -M
 '"CC=/usr/bin/gcc-4.0" "CXX=/usr/bin/g++-4.0" "AR=ar" "RANLIB=ranlib"
 "CPPFLAGS=-I/opt/local/include" "CFLAGS=-O2" "CXXFLAGS=-O2 -D_THREAD_SAFE
 " "LDFLAGS=-L/opt/local/lib"' ./res-file-list.txt
 /opt/local/bin/pkgdata: error in command line argument "-M"
 Run '/opt/local/bin/pkgdata --help' for help.
 make[3]: *** [xercesc_messages.lo] Error 1
 make[2]: *** [all-recursive] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2
 }}}

 I tried the workaround posted here (see the comments):

 https://www.switch.ch/aai/docs/shibboleth/SWITCH/2.1/sp/deployment/mac-
 ports.html

 But that failed as well:

 {{{
 --->  Applying patches to xercesc
 Error: Target org.macports.patch returned: shell command " cd
 "/opt/local/var/macports/build/_usr_local_ports_shibboleth_xercesc/work/xerces-c-3.0.1"
 && patch -p1 <
 '/usr/local/ports/shibboleth/xercesc/files/xerces-c-nocf.diff'" returned
 error 1
 Command output: Skip this patch? [y]
 Skipping patch.
 1 out of 1 hunk ignored
 can't find file to patch at input line 16
 Perhaps you used the wrong -p or --strip option?
 The text leading up to this was:
 --------------------------
 |diff -rup
 xerces-c-src_2_8_0.orig/src/xercesc/util/Platforms/FreeBSD/FreeBSDDefs.hpp
 xerces-c-src_2_8_0/src/xercesc/util/Platforms/FreeBSD/FreeBSDDefs.hpp
 |---
 xerces-c-src_2_8_0.orig/src/xercesc/util/Platforms/FreeBSD/FreeBSDDefs.hpp
 2007-08-28 20:44:11.000000000 +0200
 |+++ xerces-c-src_2_8_0/src/xercesc/util/Platforms/FreeBSD/FreeBSDDefs.hpp
 2008-03-28 16:10:44.000000000 +0100
 --------------------------
 File to patch:
 Skip this patch? [y]
 Skipping patch.
 1 out of 1 hunk ignored
 can't find file to patch at input line 40
 Perhaps you used the wrong -p or --strip option?
 The text leading up to this was:
 --------------------------
 |diff -rup xerces-c-src_2_8_0.orig/src/xercesc/util/Platforms/Makefile.in
 xerces-c-src_2_8_0/src/xercesc/util/Platforms/Makefile.in
 |--- xerces-c-src_2_8_0.orig/src/xercesc/util/Platforms/Makefile.in
 2007-08-28 20:44:12.000000000 +0200
 |+++ xerces-c-src_2_8_0/src/xercesc/util/Platforms/Makefile.in  2008-03-31
 08:33:25.000000000 +0100
 --------------------------
 File to patch:
 Skip this patch? [y]
 Skipping patch.
 1 out of 1 hunk ignored
 patching file src/xercesc/util/XercesDefs.hpp
 Hunk #1 FAILED at 107.
 1 out of 1 hunk FAILED -- saving rejects to file
 src/xercesc/util/XercesDefs.hpp.rej
 }}}

 So I nuked the whole ports/shibboleth directory, then started the process
 by doing a 'port install xercesc' which did successfully install 2.8.0_1,
 and I could then install shibboleth 2 after that.

-- 
Ticket URL: <http://trac.macports.org/ticket/20484>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list