Opened 13 years ago

Closed 12 years ago

#32347 closed defect (fixed)

dwdiff-1.9_1 build fails: Could not compile with gettext

Reported by: lhunath@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: dwdiff

Description

:info:configure Using settings CC=/Developer/usr/bin/clang CFLAGS=-pipe -O2 -arch x86_64 LDFLAGS=-L/opt/local/lib -arch x86_64 
:info:configure Checking for working make (make)... yes
:info:configure Checking for working diff program (diff)... yes
:info:configure Checking for diff program has -a... yes
:info:configure Checking for required functions... yes
:info:configure Checking for required functions for dwfilter... yes
:info:configure Checking for strdup... yes
:info:configure Checking for setlocale... yes
:info:configure Checking for gettext and related functions... no
:info:configure !! Could not compile with gettext. Try configuring with --without-gettext.
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_dwdiff/dwdiff/work/dwdiff-1.9" && ./configure --prefix=/opt/local " 
: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 dwdiff): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for dwdiff is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_dwdiff/dwdiff/main.log
The following ports are currently installed:
  gettext @0.18.1.1_2
  gettext @0.18.1.1_2+universal (active)

Change History (5)

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

Cc: ryandesign@… added; mww@… removed
Owner: changed from macports-tickets@… to mww@…
Summary: dwdiff-1.9_1 build fails: gettextdwdiff-1.9_1 build fails: Could not compile with gettext

It works for me but I don't have Xcode 4.2. Please attach the config.log file, located in the directory printed by the command port work dwdiff

Please also indicate whether you're on Lion or Snow Leopard.

comment:2 Changed 13 years ago by lhunath@…

Yes, running with Xcode 4.2, Build 4D199 on Lion.

Checking for gettext and related functions... 
Running 'make -f .Makefile GETTEXTFLAGS=-DUSE_GETTEXT .config.o'
/Developer/usr/bin/clang -pipe -O2 -arch x86_64 -DUSE_GETTEXT  -c -o .config.o .config.c
In file included from .config.c:1:
./src/definitions.h:29:11: fatal error: 'libintl.h' file not found
#       include <libintl.h>
                ^   
1 error generated.
make: *** [.config.o] Error 1
no
!! Could not compile with gettext. Try configuring with --without-gettext.

comment:3 Changed 13 years ago by lhunath@…

FYI, I do have that file at /opt/local/include/libintl.h, and it is provided by the gettext port.

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

Interesting that this check is missing the "-I/opt/local/include" part that's present on my system that would be needed for it to find that file. I filed port update in #32361 but based on the Changelog I don't see why it would affect this problem.

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

Resolution: fixed
Status: newclosed

Fixed by r87287.

Note: See TracTickets for help on using tickets.