[MacPorts] #31813: gettext function not found Due to libintl
MacPorts
noreply at macports.org
Fri Oct 28 02:30:45 PDT 2011
#31813: gettext function not found Due to libintl
----------------------------------------+-----------------------------------
Reporter: raybit.tang@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: gettext, libintl, help2man | Port:
----------------------------------------+-----------------------------------
Hi,
My env: MBP,lion,8G,64bit, Xcode4.2,Macport V2.0.3( no X11)
I've done a lot of searching, it seems many people encounter the error
with gettext+libintl under different OS/platform, i386/x86, and previous
macport version,etc. But as a unix beginner, I still could not figure out
how to solve.
I need to install libtool and other libs.
----1 termial -----
{{{
MacBook-Pro:~ xxxx$ sudo port selfupdate
---> Updating MacPorts base sources using rsync
MacPorts base version 2.0.3 installed,
MacPorts base version 2.0.3 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
Tang-LeimatoMacBook-Pro:~ tanglei$ sudo port upgrade outdated
Error: No ports matched the given expression
Tang-LeimatoMacBook-Pro:~ tanglei$
Tang-LeimatoMacBook-Pro:~ tanglei$ sudo port install libtool
---> Computing dependencies for libtool
---> Dependencies to be installed: automake autoconf help2man p5.12
-locale-gettext m4 perl5 perl5
---> Configuring p5.12-locale-gettext
Error: Target org.macports.configure returned: configure failure: shell
command failed (see log for details)
Error: Failed to install p5.12-locale-gettext
Log for p5.12-locale-gettext is at:
/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: automake autoconf
help2man p5.12-locale-gettext m4 perl5 perl5
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Tang-LeimatoMacBook-Pro:~ tanglei$ sudo port install p5.12-locale-gettext
---> Computing dependencies for p5.12-locale-gettext
---> Configuring p5.12-locale-gettext
Error: Target org.macports.configure returned: configure failure: shell
command failed (see log for details)
Log for p5.12-locale-gettext is at:
/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: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
}}}
-------------
---2 part of p5.12-locale-gettext/main.log ---
{{{
:debug:configure configure phase started at Fri Oct 28 03:48:35 EDT 2011
: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.7'
CXX='/Volumes/MacHome/01_soft/00_byCompany/Apple/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='/Volumes/MacHome/01_soft/00_byCompany/Apple/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='/Volumes/MacHome/01_soft/00_byCompany/Apple/usr/bin/llvm-gcc-4.2 -O2
-L/opt/local/lib -arch x86_64'
: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'
: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
: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 shell 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 " returned error 2
:error:configure Target org.macports.configure returned: configure
failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see
log for details)
while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for p5.12
-locale-gettext): org.macports.activate org.macports.configure
org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for p5.12-locale-gettext is at:
/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
}}}
--------------
----3 Makefile.PL , L1~L18----
{{{
use ExtUtils::MakeMaker;
use Config;
my $cc;
if (defined($ENV{'CC'})) {
$cc = $ENV{'CC'};
} else {
$cc = $Config{'cc'};
}
my $libs = '';
unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
# try with -lintl
$libs = "-lintl";
unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
unlink("conftest.c");
unlink("conftest");
die "gettext function not found. Please install libintl";
}
}
}}}
-----------
---3 about my libintl
{{{
$ file /opt/local/lib/libintl.dylib
/opt/local/lib/libintl.dylib: Mach-O 64-bit dynamically linked shared
library x86_64
}}}
---------
regards
raybit
--
Ticket URL: <https://trac.macports.org/ticket/31813>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list