Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#20484 closed defect (invalid)

xercesc-3.0.1 Build failure

Reported by: jhauser@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: nerdling (Jeremy Lavergne)
Port: shibboleth xmltooling xml-security-c xercesc3 opensaml log4shib

Description

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.

Change History (7)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

This is not a problem with Macports portfiles.

If you want this running in Macports, you should file a new ticket to add Shibboleth to the port tree and attach the portfile from the website. And maybe file another ticket to update xercesc to version 3.0.1.

comment:2 in reply to:  1 Changed 15 years ago by nerdling (Jeremy Lavergne)

Port: shibboleth added

Replying to macsforever2000@…:

If you want this running in Macports, you should file a new ticket to add Shibboleth to the port tree and attach the portfile from the website. And maybe file another ticket to update xercesc to version 3.0.1.

I'm adding these ports to MacPorts, creating xercesc3 while leaving xercesc alone.

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added
Port: xmltooling xml-security-c xercesc3 opensaml log4shib added

comment:4 Changed 15 years ago by nerdling (Jeremy Lavergne)

All of the ports are now created with subcategory shibboleth. They also have livechecks to look for updates from the above links.

comment:5 Changed 15 years ago by will@…

same error still exists with xercesc3:

~$ sudo port install xercesc3
--->  Fetching xercesc3
--->  Verifying checksum(s) for xercesc3
--->  Extracting xercesc3
--->  Configuring xercesc3
--->  Building xercesc3
Error: Target org.macports.build returned: shell command " cd "/opt/mp/var/macports/build/_opt_mp_var_macports_sources_rsync.macports.org_release_ports_textproc_xercesc3/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/mp/bin/genrb root.txt
/opt/mp/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/mp/include" "CFLAGS=-O2" "CXXFLAGS=-O2 -D_THREAD_SAFE " "LDFLAGS=-L/opt/mp/lib"' ./res-file-list.txt
/opt/mp/bin/pkgdata: error in command line argument "-M"
Run '/opt/mp/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

comment:6 in reply to:  5 Changed 15 years ago by mf2k (Frank Schima)

Replying to will@…:

same error still exists with xercesc3:

This should be filed as a new ticket.

comment:7 Changed 15 years ago by mf2k (Frank Schima)

Indeed ticket #20490 has already been filed.

Note: See TracTickets for help on using tickets.