Opened 12 years ago

Closed 10 years ago

#36716 closed defect (worksforme)

p5.12-locale-gettext: gettext function not found

Reported by: ben@… Owned by: l2g@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: macports@…, ryandesign (Ryan Carsten Schmidt)
Port: p5.12-locale-gettext

Description

Hello there ! :)

I'm using the latest version of macPorts. I've uninstalled it, reinstalled it so much times, i'm trying to find help here !

I'm on MAC OS X Moutain lion, with lateste xCode tools

Here's the problem i met :

$ sudo port install autoconf
--->  Computing dependencies for autoconf
--->  Dependencies to be installed: help2man p5.12-locale-gettext m4 perl5 xz
--->  Configuring p5.12-locale-gettext
Error: org.macports.configure for port p5.12-locale-gettext returned: configure failure: command execution failed
Error: Failed to install p5.12-locale-gettext
Please see the log file for port p5.12-locale-gettext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/main.log
Error: The following dependencies were not installed: help2man p5.12-locale-gettext m4 perl5 xz
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port autoconf failed

In the log file :

:debug:main Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/perl/p5-locale-gettext/work
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Executing org.macports.main (p5.12-locale-gettext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (p5.12-locale-gettext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (p5.12-locale-gettext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (p5.12-locale-gettext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (p5.12-locale-gettext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (p5.12-locale-gettext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Wed Oct 24 17:09:23 CEST 2012
:notice:configure --->  Configuring p5.12-locale-gettext
:debug:configure Using compiler 'Mac OS X llvm-gcc 4.2'
:debug:configure Executing org.macports.configure (p5.12-locale-gettext)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.8' CXX='/usr/bin/llvm-g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' FCFLAGS='-pipe -O2 -m64' OBJC='/usr/bin/llvm-gcc-4.2' INSTALL='/usr/bin/install -c' PERL_AUTOINSTALL='--skipdeps' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/llvm-gcc-4.2'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/llvm-gcc-4.2" LD="/usr/bin/llvm-gcc-4.2"'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/llvm-gcc-4.2" LD="/usr/bin/llvm-gcc-4.2" 
:info:configure checking for gettext... no
:info:configure checking for gettext in -lintl...gettext function not found. Please install libintl at Makefile.PL line 18.
:info:configure  no
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/llvm-gcc-4.2" LD="/usr/bin/llvm-gcc-4.2" 
:info:configure Exit code: 2
:error:configure org.macports.configure for port p5.12-locale-gettext 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 p5.12-locale-gettext: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:error:configure Failed to install p5.12-locale-gettext
:debug:configure couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:configure Please see the log file for port p5.12-locale-gettext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/main.log

Change History (17)

comment:1 Changed 12 years ago by ben@…

Cc: ben@… added

Cc Me!

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

Cc: ben@… removed
Owner: changed from macports-tickets@… to l2g@…
Port: p5.12-locale-gettext added
Summary: Error: Failed to install p5.12-locale-gettexp5.12-locale-gettext: gettext function not found

There have been many many prior reports of this problem; see if searching the issue tracker for prior tickets leads you to any solutions.

comment:3 Changed 12 years ago by jmroot (Joshua Root)

This was not a clean build attempt. Clean p5.12-locale-gettext, selfupdate, and try again.

comment:4 Changed 12 years ago by ben@…

Thanks for your help, i've cleaned cleaned p5.12-locale-gettext, selfupdate, and tried again. But same problem !

➜  ~  sudo port clean p5.12-locale-gettext
Warning: port definitions are more than two weeks old, consider using selfupdate
--->  Cleaning p5.12-locale-gettext
➜  ~  sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.2 installed,
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
➜  ~  sudo port install autoconf
--->  Computing dependencies for autoconf
--->  Dependencies to be installed: help2man p5.12-locale-gettext m4 perl5 xz
--->  Fetching archive for p5.12-locale-gettext
--->  Attempting to fetch p5.12-locale-gettext-1.50.0_7.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/p5.12-locale-gettext
--->  Attempting to fetch p5.12-locale-gettext-1.50.0_7.darwin_12.x86_64.tbz2 from http://packages.macports.org/p5.12-locale-gettext
--->  Attempting to fetch p5.12-locale-gettext-1.50.0_7.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/p5.12-locale-gettext
--->  Fetching distfiles for p5.12-locale-gettext
--->  Verifying checksum(s) for p5.12-locale-gettext
--->  Extracting p5.12-locale-gettext
--->  Applying patches to p5.12-locale-gettext
--->  Configuring p5.12-locale-gettext
Error: org.macports.configure for port p5.12-locale-gettext returned: configure failure: command execution failed
Error: Failed to install p5.12-locale-gettext
Please see the log file for port p5.12-locale-gettext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/main.log
Error: The following dependencies were not installed: help2man p5.12-locale-gettext m4 perl5 xz
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port autoconf failed

The log :

➜  ~  cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/main.log
version:1
:debug:main Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/perl/p5-locale-gettext/work
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Executing org.macports.main (p5.12-locale-gettext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Mon Nov 12 10:30:27 CET 2012
:msg:archivefetch --->  Fetching archive for p5.12-locale-gettext
:debug:archivefetch Executing org.macports.archivefetch (p5.12-locale-gettext)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  p5.12-locale-gettext-1.50.0_7.darwin_12.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch p5.12-locale-gettext-1.50.0_7.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/p5.12-locale-gettext
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch p5.12-locale-gettext-1.50.0_7.darwin_12.x86_64.tbz2 from http://packages.macports.org/p5.12-locale-gettext
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch p5.12-locale-gettext-1.50.0_7.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/p5.12-locale-gettext
:debug:archivefetch Fetching archive failed:: Failed to connect to 2001:41d0:1:6240:1::2: No route to host
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Mon Nov 12 10:30:46 CET 2012
:notice:fetch --->  Fetching distfiles for p5.12-locale-gettext
:debug:fetch Executing org.macports.fetch (p5.12-locale-gettext)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Mon Nov 12 10:30:46 CET 2012
:notice:checksum --->  Verifying checksum(s) for p5.12-locale-gettext
:debug:checksum Executing org.macports.checksum (p5.12-locale-gettext)
:info:checksum --->  Checksumming gettext-1.05.tar.gz
:debug:checksum Correct (md5) checksum for gettext-1.05.tar.gz
:debug:checksum Correct (sha1) checksum for gettext-1.05.tar.gz
:debug:checksum Correct (rmd160) checksum for gettext-1.05.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Mon Nov 12 10:30:46 CET 2012
:notice:extract --->  Extracting p5.12-locale-gettext
:debug:extract Executing org.macports.extract (p5.12-locale-gettext)
:info:extract --->  Extracting gettext-1.05.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/perl5/gettext-1.05.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/perl5/gettext-1.05.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/perl5/gettext-1.05.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work to macports
:debug:extract euid/egid changed to: 502/501
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Mon Nov 12 10:30:46 CET 2012
:debug:patch Executing org.macports.patch (p5.12-locale-gettext)
:notice:patch --->  Applying patches to p5.12-locale-gettext
:info:patch --->  Applying patch-Makefile.PL
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /usr/bin/patch -p1'
:debug:patch Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /usr/bin/patch -p1 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/perl/p5-locale-gettext/files/patch-Makefile.PL'
:info:patch patching file Makefile.PL
:info:patch --->  Applying patch-cpan-rt-35680-1.diff
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /usr/bin/patch -p1'
:debug:patch Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /usr/bin/patch -p1 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/perl/p5-locale-gettext/files/patch-cpan-rt-35680-1.diff'
:info:patch patching file gettext.pm
:info:patch --->  Applying patch-cpan-rt-35680-2.diff
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /usr/bin/patch -p1'
:debug:patch Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /usr/bin/patch -p1 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/perl/p5-locale-gettext/files/patch-cpan-rt-35680-2.diff'
:info:patch patching file gettext.pm
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Mon Nov 12 10:30:46 CET 2012
:notice:configure --->  Configuring p5.12-locale-gettext
:debug:configure Using compiler 'Mac OS X llvm-gcc 4.2'
:debug:configure Executing org.macports.configure (p5.12-locale-gettext)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.8' CXX='/usr/bin/llvm-g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' FCFLAGS='-pipe -O2 -m64' OBJC='/usr/bin/llvm-gcc-4.2' INSTALL='/usr/bin/install -c' PERL_AUTOINSTALL='--skipdeps' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/llvm-gcc-4.2'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/llvm-gcc-4.2" LD="/usr/bin/llvm-gcc-4.2"'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/llvm-gcc-4.2" LD="/usr/bin/llvm-gcc-4.2" 
:info:configure checking for gettext... no
:info:configure checking for gettext in -lintl...gettext function not found. Please install libintl at Makefile.PL line 22.
:info:configure  no
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/work/gettext-1.05" && /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/llvm-gcc-4.2" LD="/usr/bin/llvm-gcc-4.2" 
:info:configure Exit code: 2
:error:configure org.macports.configure for port p5.12-locale-gettext 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 p5.12-locale-gettext: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:error:configure Failed to install p5.12-locale-gettext
:debug:configure couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:configure Please see the log file for port p5.12-locale-gettext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-locale-gettext/p5.12-locale-gettext/main.log
➜  ~  

I've searched accross the trac, i've not found anything about that... :/

comment:5 Changed 12 years ago by mf2k (Frank Schima)

In the future, please attach the main.log instead of pasting it into the comments or description. Are you trying to build universal? This looks like #28789.

comment:6 in reply to:  5 ; Changed 12 years ago by macports@…

Lately I have had a similar problem. I found out that the clang version 3.0 that was installed with Xcode 4.2 on Mac OS X Snow Leopard (10.6.8) does not take the environmental variables CPATH and LIBRARY_PATH into account (perhaps also all the other env vars). Maybe this is a similar problem with the used compiler version.

comment:7 Changed 12 years ago by vit9696

macports@…, and how did you solve it? I am having exactly the same issue with wine-devel, Mac OS X Snow Leopard 10.6.8 and Xcode 4.2. I have latest macports installed.

comment:8 Changed 12 years ago by vit9696

Cc: vit9696@… added

Cc Me!

comment:9 Changed 12 years ago by vit9696

Cc: vit9696@… removed

Cc Me! Oops, double click, sorry.

Last edited 12 years ago by vit9696 (previous) (diff)

comment:10 in reply to:  7 ; Changed 12 years ago by macports@…

Replying to vit9696@…:

macports@…, and how did you solve it? I am having exactly the same issue with wine-devel, Mac OS X Snow Leopard 10.6.8 and Xcode 4.2. I have latest macports installed.

I've added the parameter for the compiler "configure.compiler=gcc" so the whole command I executed successfully was:

sudo port install p5.12-locale-gettext configure.compiler=gcc
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:11 Changed 12 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:12 Changed 12 years ago by vit9696

Thank you. It worked nicely. How stupid, I hadn't even thought about using gcc instead of clang.

comment:13 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #40358.

comment:14 in reply to:  6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to macports@…:

Lately I have had a similar problem. I found out that the clang version 3.0 that was installed with Xcode 4.2 on Mac OS X Snow Leopard (10.6.8) does not take the environmental variables CPATH and LIBRARY_PATH into account (perhaps also all the other env vars). Maybe this is a similar problem with the used compiler version.

In r110633 I've blacklisted older clang versions that don't understand CPATH and LIBRARY_PATH. However the original report in this ticket was with llvm-gcc-4.2 which to the best of my knowledge never had that deficiency. If anyone is still experiencing this bug after this change please attach the config.log.

comment:15 in reply to:  10 ; Changed 11 years ago by posita (Matt Bogosian)

Replying to macports@…:

...

I've added the parameter for the compiler "configure.compiler=gcc" so the whole command I executed successfully was:

sudo port install p5.12-locale-gettext configure.compiler=gcc

This should no longer be an issue, but chances are most people don't install p5.12-locale-gettext directly. It's more likely getting pulled in as a dependency, in which case the following work-around is probably closer to what most people want:

# Add the second command if you don't want MacPorts to think
# you directly requested p5.12-locale-gettext (i.e., if the
# build is choking from doing something like 'port install
# ImageMagick'....)
sudo port install p5.12-locale-gettext configure.compiler=gcc \
    && sudo port unsetrequested p5.12-locale-gettext

Again, this should no longer be necessary since older clang versions have been blacklisted (i.e., the work-around should no longer be needed). I'm just making notes in case there's ever a similar problem....

comment:16 in reply to:  15 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to mtb19@…:

Right, there should no longer be any need to manually override MacPorts' choice of clang, since older versions of clang that caused the configure failure for some users are now blacklisted. Any users still experiencing the problem (after having run "sudo port selfupdate") should attach their config.log so that we can investigate, since the original reporter's problem was with llvm-gcc-4.2, not clang, and it should not have been affected by the same problem.

comment:17 Changed 10 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed

Assuming this is fixed, please re-open if not.

Note: See TracTickets for help on using tickets.