Opened 9 years ago

Closed 6 years ago

Last modified 6 years ago

#50462 closed defect (fixed)

p5-locale-gettext: "gettext function not found" when using non-default build_arch

Reported by: dan@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: p5-locale-gettext

Description

Screengrab:

Immanuel:~ danghica$ sudo port clean p5.22-locale-gettext 
--->  Cleaning p5.22-locale-gettext
Immanuel:~ danghica$ sudo port install p5.22-locale-gettext 
--->  Computing dependencies for p5.22-locale-gettext
--->  Fetching archive for p5.22-locale-gettext
--->  Attempting to fetch p5.22-locale-gettext-1.70.0_0.darwin_15.i386.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/p5.22-locale-gettext
--->  Attempting to fetch p5.22-locale-gettext-1.70.0_0.darwin_15.i386.tbz2 from http://lil.fr.packages.macports.org/p5.22-locale-gettext
--->  Attempting to fetch p5.22-locale-gettext-1.70.0_0.darwin_15.i386.tbz2 from http://nue.de.packages.macports.org/macports/packages/p5.22-locale-gettext
--->  Fetching distfiles for p5.22-locale-gettext
--->  Verifying checksums for p5.22-locale-gettext
--->  Extracting p5.22-locale-gettext
--->  Applying patches to p5.22-locale-gettext
--->  Configuring p5.22-locale-gettext
Error: org.macports.configure for port p5.22-locale-gettext returned: configure failure: command execution failed
Please see the log file for port p5.22-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.22-locale-gettext/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port p5.22-locale-gettext failed
Immanuel:~ danghica$ 

Log attached.

Attachments (1)

main.log (16.0 KB) - added by dan@… 9 years ago.

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by dan@…

Attachment: main.log added

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

Keywords: El Capitan gettext removed
Port: p5-locale-gettext added; p5.22-locale-gettext removed

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

Is the gettext port installed? It should be, because it's a dependency of p5.22-locale-gettext. Is the library ok? What do you get when you run:

port -v installed gettext
lipo -info /opt/local/lib/libintl.dylib
otool -L /opt/local/lib/libintl.dylib

comment:3 Changed 9 years ago by dan@…

Immanuel:~ danghica$ port -v installed gettext
The following ports are currently installed:
  gettext @0.19.7_0 (active) platform='darwin 15' archs='i386'
Immanuel:~ danghica$ lipo -info /opt/local/lib/libintl.dylib
Non-fat file: /opt/local/lib/libintl.dylib is architecture: i386
Immanuel:~ danghica$ otool -L /opt/local/lib/libintl.dylib
/opt/local/lib/libintl.dylib:
	/opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.4.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1256.14.0)
Immanuel:~ danghica$ 

comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Summary: Install fails because of "gettext function not found" on OS X 10.11.3 (15D21)p5-locale-gettext: Install fails because of "gettext function not found" on OS X 10.11.3 (15D21)

Why is gettext installed for i386, and why are you trying to install p5.22-locale-gettext for i386? x86_64 is the normal arch on El Capitan. What is the value of build_arch and universal_archs in macports.conf?

comment:5 Changed 6 years ago by jmroot (Joshua Root)

Summary: p5-locale-gettext: Install fails because of "gettext function not found" on OS X 10.11.3 (15D21)p5-locale-gettext: "gettext function not found" when using non-default build_arch

The conftest routine in the Makefile.PL does not use any arch flags when checking if it can link with gettext.

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

Resolution: fixed
Status: newclosed

In 15202867f0795c2e5b45dfcadd7cac25f14190c1/macports-ports (master):

p5-locale-gettext: Fix build for nondefault archs

Use CFLAGS, CPPFLAGS, LDFLAGS while configuring. This also makes it
unnecessary for us to prevent the use of compilers that don't have
support for CPATH and LIBRARY_PATH.

Closes: #50462

comment:7 Changed 6 years ago by jmroot (Joshua Root)

Hmm, I see I fixed this previously but the fix was removed in r141917.

Note: See TracTickets for help on using tickets.