I am using openport package management tool on a small G5 computational cluster. Recently I tried to add dsh (distributed secure shell) by compiling it from source. It requires a couple of dependencies, namely p5-locale-gettext. This port package failed to compile giving me an error as follows: port install p5-locale-gettext ---> Verifying checksum(s) for expat ---> Extracting expat ---> Configuring expat ---> Building expat with target all ---> Staging expat into destroot ---> Packaging tgz archive for expat 2.0.0_1 ---> Installing expat 2.0.0_1 ---> Activating expat 2.0.0_1 ---> Cleaning expat ---> Fetching gettext ---> Attempting to fetch gettext-0.15.tar.gz from ftp://ftp.gnu.org/gnu/gettext ---> Verifying checksum(s) for gettext ---> Extracting gettext ---> Applying patches to gettext ---> Configuring gettext ---> Building gettext with target all ---> Staging gettext into destroot ---> Packaging tgz archive for gettext 0.15_0 ---> Installing gettext 0.15_0 ---> Activating gettext 0.15_0 ---> Cleaning gettext ---> Fetching p5-locale-gettext ---> Attempting to fetch gettext-1.05.tar.gz from ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Locale ---> Verifying checksum(s) for p5-locale-gettext ---> Extracting p5-locale-gettext ---> Configuring p5-locale-gettext Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_perl_p5-locale-gettext/work/gettext-1.05" && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor" returned error 127 Command output: sh: line 1: /opt/local/bin/perl: No such file or directory I made a soft link from /usr/bin/perl to /opt/local/bin/perl and tried again. dingo:~ root# port install p5-locale-gettext ---> Building p5-locale-gettext with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_perl_p5-locale-gettext/work/gettext-1.05" && make all" returned error 2 Command output: cc -c -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" gettext.c gettext.xs:5:21: error: libintl.h: No such file or directory gettext.c: In function 'XS_Locale__gettext_gettext': gettext.c:102: warning: incompatible implicit declaration of built-in function 'gettext' gettext.c: In function 'XS_Locale__gettext_dcgettext': gettext.c:121: warning: incompatible implicit declaration of built-in function 'dcgettext' gettext.c: In function 'XS_Locale__gettext_dgettext': gettext.c:139: warning: incompatible implicit declaration of built-in function 'dgettext' gettext.c: In function 'XS_Locale__gettext_ngettext': gettext.c:158: warning: assignment makes pointer from integer without a cast gettext.c: In function 'XS_Locale__gettext_dcngettext': gettext.c:179: warning: assignment makes pointer from integer without a cast gettext.c: In function 'XS_Locale__gettext_dngettext': gettext.c:199: warning: assignment makes pointer from integer without a cast gettext.c: In function 'XS_Locale__gettext_textdomain': gettext.c:216: warning: assignment makes pointer from integer without a cast gettext.c: In function 'XS_Locale__gettext_bindtextdomain': gettext.c:240: warning: assignment makes pointer from integer without a cast gettext.c: In function 'XS_Locale__gettext_bind_textdomain_codeset': gettext.c:264: warning: assignment makes pointer from integer without a cast make: *** [gettext.o] Error 1 dingo:~ root# which libintl.h no libintl.h in /bin /sbin /usr/bin /usr/sbin /apps/bin /opt/local/bin /opt/local/sbin /sw/bin /usr/local/bin I was able to find libintl.h on the system =========================================== dingo:~ root# locate libintl.h /opt/local/include/libintl.h /opt/local/var/db/dports/software/gettext/0.15_0/opt/local/include/libintl.h /sw/include/libintl.h Any help will be much appreciated. Ivan.
It's looking for /opt/local/bin/perl. This sounds like an undeclared dependency against perl5.8. Try installing that port first, and see if that fixes the problem. You may also want to email the maintainer of the p5-locale-gettext port to inform them of this problem. On Jan 31, 2007, at 6:12 AM, Ivan Teliatnikov wrote:
I am using openport package management tool on a small G5 computational cluster. Recently I tried to add dsh (distributed secure shell) by compiling it from source. It requires a couple of dependencies, namely p5-locale-gettext. This port package failed to compile giving me an error as follows:
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
On Jan 31, 2007, at 6:12 AM, Ivan Teliatnikov wrote:
Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupd ate_dports_perl_p5-locale-gettext/work/gettext-1.05" && /opt/local/ bin/perl Makefile.PL INSTALLDIRS=vendor" returned error 127 Command output: sh: line 1: /opt/local/bin/perl: No such file or directory
before this happens, macports should try to install perl5.8, but it doesn't because the port uses depends_lib instead of depends_lib- append to specify its dependencies.
I made a soft link from /usr/bin/perl to /opt/local/bin/perl and tried again.
You don't want that. remove the softlink and install perl5.8 from macports: port install perl5.8 -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
"Daniel J. Luke" <dluke@geeklair.net> on Wednesday, January 31, 2007 at 8:44 AM -0800 wrote:
Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupd ate_dports_perl_p5-locale-gettext/work/gettext-1.05" && /opt/local/ bin/perl Makefile.PL INSTALLDIRS=vendor" returned error 127 Command output: sh: line 1: /opt/local/bin/perl: No such file or directory
before this happens, macports should try to install perl5.8, but it doesn't because the port uses depends_lib instead of depends_lib- append to specify its dependencies.
Daniel, Can you elaborate? I know to use depends_lib-append when using variants, but where should it have been used (p5-locale-gettext?) and why in this case? Mark
On Jan 31, 2007, at 11:51 AM, Mark Duling wrote:
"Daniel J. Luke" <dluke@geeklair.net> on Wednesday, January 31, 2007 at 8:44 AM -0800 wrote:
Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpu pd ate_dports_perl_p5-locale-gettext/work/gettext-1.05" && /opt/local/ bin/perl Makefile.PL INSTALLDIRS=vendor" returned error 127 Command output: sh: line 1: /opt/local/bin/perl: No such file or directory
before this happens, macports should try to install perl5.8, but it doesn't because the port uses depends_lib instead of depends_lib- append to specify its dependencies.
Can you elaborate? I know to use depends_lib-append when using variants, but where should it have been used (p5-locale-gettext?) and why in this case?
It should have been used instead of depends_lib because the perl5 group code already sets depends_lib to pull in perl5.8 If you set depends_lib again, you wipe out whatever was set before. So, as a general rule, if you're using any of the group code, you should stick with the -append versions. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
"Daniel J. Luke" <dluke@geeklair.net> on Wednesday, January 31, 2007 at 8:55 AM -0800 wrote:
It should have been used instead of depends_lib because the perl5 group code already sets depends_lib to pull in perl5.8
If you set depends_lib again, you wipe out whatever was set before.
So, as a general rule, if you're using any of the group code, you should stick with the -append versions.
Ah! Didn't know that. I have not done that in the perl modules I've contributed, some anonymously. Is there some easy way to determine which perl ports use depends_lib rather than depends_lib-append? A script to parse the directories in dports/perl/ and look for "depends_lib " with a space at the end is all the comes to mind. Mark
participants (4)
-
Daniel J. Luke
-
Ivan Teliatnikov
-
Kevin Ballard
-
Mark Duling