Opened 13 years ago
Closed 13 years ago
#31813 closed defect (duplicate)
p5.12-locale-gettext: gettext function not found
Reported by: | raybit.tang@… | Owned by: | l2g@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | neverpanic (Clemens Lang) | |
Port: | p5.12-locale-gettext |
Description
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
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
Attachments (2)
Change History (9)
Changed 13 years ago by raybit.tang@…
Attachment: | termial.txt added |
---|
comment:1 Changed 13 years ago by mf2k (Frank Schima)
Cc: | ryandesign removed |
---|---|
Keywords: | gettext libintl help2man removed |
Owner: | changed from macports-tickets@… to l2g@… |
Port: | p5.12-locale-gettext added |
what is the output of the following?
port installed gettext
comment:2 Changed 13 years ago by raybit.tang@…
Tang-LeimatoMacBook-Pro:~ tanglei$ sudo port installed gettext Password: The following ports are currently installed: gettext @0.18.1.1_2 gettext @0.18.1.1_2+universal (active) 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$
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | gettext function not found Due to libintl → p5.12-locale-gettext: gettext function not found |
---|
comment:4 Changed 13 years ago by carcode@…
This fault is several months old now. When will it be repaired? I cannot update my MacPorts because of this fault!
comment:5 Changed 13 years ago by neverpanic (Clemens Lang)
comment:7 Changed 13 years ago by l2g@…
Resolution: | → duplicate |
---|---|
Status: | new → closed |
First raised in #28789.
Note: See
TracTickets for help on using
tickets.
termial log