Opened 14 years ago

Closed 14 years ago

#23755 closed defect (worksforme)

p5-locale-gettext: gettext.xs:5:21: error: libintl.h: No such file or directory

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

Description (last modified by jmroot (Joshua Root))

hi,

I solved this by pointing directly to libintl.h in /opt/local/include in getext.xs but there must be a better way..

>  sudo port -d install p5-locale-gettext
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-locale-gettext
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-locale-gettext
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/perl5-1.0.tcl
DEBUG: 'universal_variant no' specified, so not adding the default universal variant
DEBUG: Requested variant darwin is not provided by port p5-locale-gettext.
DEBUG: Requested variant i386 is not provided by port p5-locale-gettext.
DEBUG: Requested variant macosx is not provided by port p5-locale-gettext.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: perl5 5.8.9_0 exists in the ports tree
DEBUG: perl5 5.8.9_0  is the latest installed
DEBUG: perl5 5.8.9_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: 'universal_variant no' specified, so not adding the default universal variant
DEBUG: Requested variant darwin is not provided by port perl5.
DEBUG: Requested variant i386 is not provided by port perl5.
DEBUG: Requested variant macosx is not provided by port perl5.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: perl5.8 5.8.9_3 exists in the ports tree
DEBUG: perl5.8 5.8.9_3  is the latest installed
DEBUG: perl5.8 5.8.9_3  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port perl5.8.
DEBUG: Requested variant i386 is not provided by port perl5.8.
DEBUG: Requested variant macosx is not provided by port perl5.8.
DEBUG: No need to upgrade! perl5.8 5.8.9_3 >= perl5.8 5.8.9_3
DEBUG: No need to upgrade! perl5 5.8.9_0 >= perl5 5.8.9_0
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: gettext 0.17_4 exists in the ports tree
DEBUG: gettext 0.17_4  is the latest installed
DEBUG: gettext 0.17_4  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port gettext.
DEBUG: Requested variant i386 is not provided by port gettext.
DEBUG: Requested variant macosx is not provided by port gettext.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: libiconv 1.13.1_0 exists in the ports tree
DEBUG: libiconv 1.13.1_0  is the latest installed
DEBUG: libiconv 1.13.1_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port libiconv.
DEBUG: Requested variant i386 is not provided by port libiconv.
DEBUG: Requested variant macosx is not provided by port libiconv.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: gperf 3.0.4_0 exists in the ports tree
DEBUG: gperf 3.0.4_0  is the latest installed
DEBUG: gperf 3.0.4_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port gperf.
DEBUG: Requested variant i386 is not provided by port gperf.
DEBUG: Requested variant macosx is not provided by port gperf.
DEBUG: No need to upgrade! gperf 3.0.4_0 >= gperf 3.0.4_0
DEBUG: No need to upgrade! libiconv 1.13.1_0 >= libiconv 1.13.1_0
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: ncurses 5.7_0 exists in the ports tree
DEBUG: ncurses 5.7_0 +darwin_10 is the latest installed
DEBUG: ncurses 5.7_0 +darwin_10 is active
DEBUG: Merging existing variants darwin_10 into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port ncurses.
DEBUG: Requested variant i386 is not provided by port ncurses.
DEBUG: Requested variant macosx is not provided by port ncurses.
DEBUG: Executing variant darwin_10 provides darwin_10
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: ncursesw 5.7_0 exists in the ports tree
DEBUG: ncursesw 5.7_0 +darwin_10 is the latest installed
DEBUG: ncursesw 5.7_0 +darwin_10 is active
DEBUG: Merging existing variants darwin_10 into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant darwin is not provided by port ncursesw.
DEBUG: Requested variant i386 is not provided by port ncursesw.
DEBUG: Requested variant macosx is not provided by port ncursesw.
DEBUG: Executing variant darwin_10 provides darwin_10
DEBUG: No need to upgrade! ncursesw 5.7_0 >= ncursesw 5.7_0
DEBUG: No need to upgrade! ncurses 5.7_0 >= ncurses 5.7_0
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: expat 2.0.1_0 exists in the ports tree
DEBUG: expat 2.0.1_0  is the latest installed
DEBUG: expat 2.0.1_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port expat.
DEBUG: Requested variant i386 is not provided by port expat.
DEBUG: Requested variant macosx is not provided by port expat.
DEBUG: No need to upgrade! expat 2.0.1_0 >= expat 2.0.1_0
DEBUG: No need to upgrade! gettext 0.17_4 >= gettext 0.17_4
--->  Computing dependencies for p5-locale-gettext
DEBUG: Searching for dependency: perl5
DEBUG: Found Dependency: receipt exists for perl5
DEBUG: Searching for dependency: gettext
DEBUG: Found Dependency: receipt exists for gettext
DEBUG: Searching for dependency: libiconv
DEBUG: Found Dependency: receipt exists for libiconv
DEBUG: Executing org.macports.main (p5-locale-gettext)
DEBUG: Skipping completed org.macports.fetch (p5-locale-gettext)
DEBUG: Skipping completed org.macports.checksum (p5-locale-gettext)
DEBUG: Skipping completed org.macports.extract (p5-locale-gettext)
DEBUG: Skipping completed org.macports.patch (p5-locale-gettext)
DEBUG: Skipping completed org.macports.configure (p5-locale-gettext)
--->  Building p5-locale-gettext
DEBUG: Executing org.macports.build (p5-locale-gettext)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-locale-gettext/work/gettext-1.05" && /usr/bin/make -j2 all'
/usr/bin/gcc-4.2 -c   -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os   -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\"  "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE"   gettext.c
gettext.xs:5:21: error: libintl.h: No such file or directory
gettext.c: In function 'XS_Locale__gettext_gettext':
gettext.c:118: warning: incompatible implicit declaration of built-in function 'gettext'
gettext.c: In function 'XS_Locale__gettext_dcgettext':
gettext.c:143: warning: incompatible implicit declaration of built-in function 'dcgettext'
gettext.c: In function 'XS_Locale__gettext_dgettext':
gettext.c:167: warning: incompatible implicit declaration of built-in function 'dgettext'
gettext.c: In function 'XS_Locale__gettext_ngettext':
gettext.c:192: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_dcngettext':
gettext.c:219: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_dngettext':
gettext.c:245: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_textdomain':
gettext.c:268: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_bindtextdomain':
gettext.c:298: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_bind_textdomain_codeset':
gettext.c:328: warning: assignment makes pointer from integer without a cast
gettext.xs:5:21: error: libintl.h: No such file or directory
gettext.c: In function 'XS_Locale__gettext_gettext':
gettext.c:118: warning: incompatible implicit declaration of built-in function 'gettext'
gettext.c: In function 'XS_Locale__gettext_dcgettext':
gettext.c:143: warning: incompatible implicit declaration of built-in function 'dcgettext'
gettext.c: In function 'XS_Locale__gettext_dgettext':
gettext.c:167: warning: incompatible implicit declaration of built-in function 'dgettext'
gettext.c: In function 'XS_Locale__gettext_ngettext':
gettext.c:192: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_dcngettext':
gettext.c:219: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_dngettext':
gettext.c:245: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_textdomain':
gettext.c:268: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_bindtextdomain':
gettext.c:298: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_bind_textdomain_codeset':
gettext.c:328: warning: assignment makes pointer from integer without a cast
gettext.xs:5:21: error: libintl.h: No such file or directory
gettext.c: In function 'XS_Locale__gettext_gettext':
gettext.c:118: warning: incompatible implicit declaration of built-in function 'gettext'
gettext.c: In function 'XS_Locale__gettext_dcgettext':
gettext.c:143: warning: incompatible implicit declaration of built-in function 'dcgettext'
gettext.c: In function 'XS_Locale__gettext_dgettext':
gettext.c:167: warning: incompatible implicit declaration of built-in function 'dgettext'
gettext.c: In function 'XS_Locale__gettext_ngettext':
gettext.c:192: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_dcngettext':
gettext.c:219: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_dngettext':
gettext.c:245: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_textdomain':
gettext.c:268: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_bindtextdomain':
gettext.c:298: warning: assignment makes pointer from integer without a cast
gettext.c: In function 'XS_Locale__gettext_bind_textdomain_codeset':
gettext.c:328: warning: assignment makes pointer from integer without a cast
lipo: can't open input file: /var/tmp//ccUCO3J7.out (No such file or directory)
make: *** [gettext.o] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-locale-gettext/work/gettext-1.05" && /usr/bin/make -j2 all " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-locale-gettext/work/gettext-1.05" && /usr/bin/make -j2 all " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for p5-locale-gettext): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (6)

comment:1 Changed 14 years ago by shaul.kedem@…

Cc: shaul.kedem@… added

Cc Me!

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Cc: shaul.kedem@… removed
Description: modified (diff)
Milestone: MacPorts 1.8.3
Port: p5-locale-gettext added

As per the ticket guidelines prominently linked from the New Ticket page, please remember to preview and use WikiFormatting and fill in the Port field, and don't set the Milestone field. Also note that you do not need to be in cc when you are the reporter.

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

Summary: install p5-locale-gettext failsp5-locale-gettext: gettext.xs:5:21: error: libintl.h: No such file or directory

Has duplicate #24516.

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

Cc: ryandesign@… added

It can't find libintl.h, which is located in /opt/local/include. The line doesn't include -I/opt/local/include like it should; it says -I/usr/local/include. Why? Do you have something in /usr/local? If so, it is interfering with MacPorts; please remove it.

comment:5 Changed 14 years ago by shaul.kedem@…

Hi,

Sadly, the HD on my mac failed and it was replaced, so I got no way to check it. I do know that other than xcode sdk and mac ports I did not install anything specific to /usr/local/include. but if this doesn't happen to anyone else, you can close it,

thanks, shul

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

Resolution: worksforme
Status: newclosed

Closing due to lack of further information.

Note: See TracTickets for help on using tickets.