Opened 10 years ago

Closed 9 years ago

#19381 closed defect (fixed)

p5-locale-gettext doesn't work with non-default build_arch

Reported by: tom@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: x86_64, build_arch Cc: ryandesign (Ryan Schmidt), tom.philpot@…, srm@…, mcrosby@…, thomas@…, jeptorra@…, root42
Port: p5-locale-gettext

Description

I don't know if this is a supported cfg, but I've set my universal to x86_64, and when I try to install gd2, I get:

root@macbookpro[~]$ port -v install gd2 +universal
--->  Configuring p5-locale-gettext
checking for gettext... no
checking for gettext in -I/opt/local/include -L/opt/local/lib -lintl...gettext function not found. Please install libintl at Makefile.PL line 18.
 no
Error: Target org.macports.configure returned: configure failure: 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" && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor --disable-dependency-tracking --host=i686-apple-darwin9 --target=i686-apple-darwin9 " returned error 2
Command output: checking for gettext... no
checking for gettext in -I/opt/local/include -L/opt/local/lib -lintl...gettext function not found. Please install libintl at Makefile.PL line 18.
 no

Warning: the following items did not execute (for p5-locale-gettext): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: The following dependencies failed to build: autoconf help2man p5-locale-gettext m4 automake fontconfig freetype jpeg libpng libtool xpm pkgconfig xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans
Error: Status 1 encountered during processing.

I have:

root@macbookpro[~]$ ls -la /opt/local/include
total 360
drwxr-xr-x  18 root  admin    612 Apr 20 10:56 .
drwxr-xr-x  11 root  admin    374 Mar 30 12:32 ..
-rw-rw-r--   1 root  admin      0 Mar 28 15:51 .turd_MacPorts
-rw-r--r--   2 root  admin   2284 Apr 20 10:56 autosprintf.h
-rw-r--r--   2 root  admin  40339 Apr 20 10:29 expat.h
-rw-r--r--   2 root  admin   3364 Apr 20 10:29 expat_external.h
-rw-r--r--   2 root  admin  14835 Apr 20 10:56 gettext-po.h
-rw-r--r--   2 root  admin   8303 Apr 20 10:23 iconv.h
-rw-r--r--   2 root  admin   1550 Apr 20 10:23 libcharset.h
drwxr-xr-x   5 root  admin    170 Apr 20 10:27 libexslt
-rw-r--r--   2 root  admin  14335 Apr 20 10:56 libintl.h
drwxr-xr-x   3 root  admin    102 Apr 20 10:26 libxml2
drwxr-xr-x  22 root  admin    748 Apr 20 10:27 libxslt
-rw-r--r--   2 root  admin   1395 Apr 20 10:23 localcharset.h
drwxr-xr-x  19 root  admin    646 Apr 20 10:33 ncurses
drwxr-xr-x  22 root  admin    748 Apr 20 10:31 ncursesw
-rw-r--r--   2 root  admin   9544 Apr 20 10:24 zconf.h
-rw-r--r--   2 root  admin  66188 Apr 20 10:24 zlib.h
root@macbookpro[~]$ ls -la /opt/local/lib
total 23008
drwxr-xr-x  91 root  admin     3094 Apr 20 10:56 .
drwxr-xr-x  11 root  admin      374 Mar 30 12:32 ..
-rw-rw-r--   1 root  admin        0 Mar 28 15:51 .turd_MacPorts
drwxr-xr-x   6 root  admin      204 Apr 20 10:56 gettext
-rwxr-xr-x   2 root  admin     9432 Apr 20 10:56 libasprintf.0.0.0.dylib
lrwxr-xr-x   1 root  admin       23 Apr 20 10:56 libasprintf.0.dylib -> libasprintf.0.0.0.dylib
-rw-r--r--   2 root  admin     5248 Apr 20 10:56 libasprintf.a
lrwxr-xr-x   1 root  admin       23 Apr 20 10:56 libasprintf.dylib -> libasprintf.0.0.0.dylib
-rwxr-xr-x   2 root  admin      849 Apr 20 10:56 libasprintf.la
-rw-r--r--   2 root  admin     9384 Apr 20 10:23 libcharset.1.0.0.dylib
lrwxr-xr-x   1 root  admin       22 Apr 20 10:23 libcharset.1.dylib -> libcharset.1.0.0.dylib
-rw-r--r--   2 root  admin     4840 Apr 20 10:23 libcharset.a
lrwxr-xr-x   1 root  admin       22 Apr 20 10:23 libcharset.dylib -> libcharset.1.0.0.dylib
-rw-r--r--   2 root  admin      825 Apr 20 10:23 libcharset.la
lrwxr-xr-x   1 root  admin       16 Apr 20 10:29 libexpat.0.dylib -> libexpat.1.dylib
-rwxr-xr-x   2 root  admin   155056 Apr 20 10:29 libexpat.1.5.2.dylib
lrwxr-xr-x   1 root  admin       20 Apr 20 10:29 libexpat.1.dylib -> libexpat.1.5.2.dylib
-rw-r--r--   2 root  admin   185200 Apr 20 10:29 libexpat.a
lrwxr-xr-x   1 root  admin       20 Apr 20 10:29 libexpat.dylib -> libexpat.1.5.2.dylib
-rwxr-xr-x   2 root  admin      828 Apr 20 10:29 libexpat.la
-rwxr-xr-x   2 root  admin    77448 Apr 20 10:27 libexslt.0.8.13.dylib
lrwxr-xr-x   1 root  admin       21 Apr 20 10:27 libexslt.0.dylib -> libexslt.0.8.13.dylib
-rw-r--r--   2 root  admin    99480 Apr 20 10:27 libexslt.a
lrwxr-xr-x   1 root  admin       21 Apr 20 10:27 libexslt.dylib -> libexslt.0.8.13.dylib
-rwxr-xr-x   2 root  admin      927 Apr 20 10:27 libexslt.la
-rwxr-xr-x   2 root  admin    64120 Apr 20 10:33 libform.5.dylib
-rw-r--r--   2 root  admin   103952 Apr 20 10:33 libform.a
lrwxr-xr-x   1 root  admin       15 Apr 20 10:33 libform.dylib -> libform.5.dylib
-rwxr-xr-x   2 root  admin    68864 Apr 20 10:31 libformw.5.dylib
-rw-r--r--   2 root  admin   109576 Apr 20 10:31 libformw.a
lrwxr-xr-x   1 root  admin       16 Apr 20 10:31 libformw.dylib -> libformw.5.dylib
-rwxr-xr-x   2 root  admin  1175576 Apr 20 10:56 libgettextlib-0.17.dylib
lrwxr-xr-x   1 root  admin       24 Apr 20 10:56 libgettextlib.dylib -> libgettextlib-0.17.dylib
-rwxr-xr-x   2 root  admin      952 Apr 20 10:56 libgettextlib.la
-rwxr-xr-x   2 root  admin   277904 Apr 20 10:56 libgettextpo.0.4.0.dylib
lrwxr-xr-x   1 root  admin       24 Apr 20 10:56 libgettextpo.0.dylib -> libgettextpo.0.4.0.dylib
-rw-r--r--   2 root  admin   434144 Apr 20 10:56 libgettextpo.a
lrwxr-xr-x   1 root  admin       24 Apr 20 10:56 libgettextpo.dylib -> libgettextpo.0.4.0.dylib
-rwxr-xr-x   2 root  admin      930 Apr 20 10:56 libgettextpo.la
-rwxr-xr-x   2 root  admin   252496 Apr 20 10:56 libgettextsrc-0.17.dylib
lrwxr-xr-x   1 root  admin       24 Apr 20 10:56 libgettextsrc.dylib -> libgettextsrc-0.17.dylib
-rwxr-xr-x   2 root  admin      984 Apr 20 10:56 libgettextsrc.la
-rw-r--r--   2 root  admin  1086320 Apr 20 10:23 libiconv.2.4.0.dylib
lrwxr-xr-x   1 root  admin       20 Apr 20 10:23 libiconv.2.dylib -> libiconv.2.4.0.dylib
-rw-r--r--   2 root  admin  1115288 Apr 20 10:23 libiconv.a
lrwxr-xr-x   1 root  admin       20 Apr 20 10:23 libiconv.dylib -> libiconv.2.4.0.dylib
-rw-r--r--   2 root  admin      811 Apr 20 10:23 libiconv.la
-rw-r--r--   2 root  admin    48440 Apr 20 10:56 libintl.8.0.2.dylib
lrwxr-xr-x   1 root  admin       19 Apr 20 10:56 libintl.8.dylib -> libintl.8.0.2.dylib
-rw-r--r--   2 root  admin    71104 Apr 20 10:56 libintl.a
lrwxr-xr-x   1 root  admin       19 Apr 20 10:56 libintl.dylib -> libintl.8.0.2.dylib
-rw-r--r--   2 root  admin      869 Apr 20 10:56 libintl.la
-rwxr-xr-x   2 root  admin    32904 Apr 20 10:33 libmenu.5.dylib
-rw-r--r--   2 root  admin    49000 Apr 20 10:33 libmenu.a
lrwxr-xr-x   1 root  admin       15 Apr 20 10:33 libmenu.dylib -> libmenu.5.dylib
-rwxr-xr-x   2 root  admin    33040 Apr 20 10:31 libmenuw.5.dylib
-rw-r--r--   2 root  admin    49824 Apr 20 10:31 libmenuw.a
lrwxr-xr-x   1 root  admin       16 Apr 20 10:31 libmenuw.dylib -> libmenuw.5.dylib
-rw-r--r--   2 root  admin   129620 Apr 20 10:33 libncurses++.a
-rw-r--r--   2 root  admin   129620 Apr 20 10:31 libncurses++w.a
-rwxr-xr-x   2 root  admin   233560 Apr 20 10:33 libncurses.5.dylib
-rw-r--r--   2 root  admin   408328 Apr 20 10:33 libncurses.a
lrwxr-xr-x   1 root  admin       18 Apr 20 10:33 libncurses.dylib -> libncurses.5.dylib
-rwxr-xr-x   2 root  admin   348808 Apr 20 10:31 libncursesw.5.dylib
-rw-r--r--   2 root  admin   578800 Apr 20 10:31 libncursesw.a
lrwxr-xr-x   1 root  admin       19 Apr 20 10:31 libncursesw.dylib -> libncursesw.5.dylib
-rwxr-xr-x   2 root  admin    13200 Apr 20 10:33 libpanel.5.dylib
-rw-r--r--   2 root  admin    16384 Apr 20 10:33 libpanel.a
lrwxr-xr-x   1 root  admin       16 Apr 20 10:33 libpanel.dylib -> libpanel.5.dylib
-rwxr-xr-x   2 root  admin    13200 Apr 20 10:31 libpanelw.5.dylib
-rw-r--r--   2 root  admin    16384 Apr 20 10:31 libpanelw.a
lrwxr-xr-x   1 root  admin       17 Apr 20 10:31 libpanelw.dylib -> libpanelw.5.dylib
-rwxr-xr-x   2 root  admin  1373392 Apr 20 10:26 libxml2.2.7.3.dylib
lrwxr-xr-x   1 root  admin       19 Apr 20 10:26 libxml2.2.dylib -> libxml2.2.7.3.dylib
-rw-r--r--   2 root  admin  1976504 Apr 20 10:26 libxml2.a
lrwxr-xr-x   1 root  admin       19 Apr 20 10:26 libxml2.dylib -> libxml2.2.7.3.dylib
-rwxr-xr-x   2 root  admin      866 Apr 20 10:26 libxml2.la
-rwxr-xr-x   2 root  admin   230552 Apr 20 10:27 libxslt.1.1.24.dylib
lrwxr-xr-x   1 root  admin       20 Apr 20 10:27 libxslt.1.dylib -> libxslt.1.1.24.dylib
-rw-r--r--   2 root  admin   330208 Apr 20 10:27 libxslt.a
lrwxr-xr-x   1 root  admin       20 Apr 20 10:27 libxslt.dylib -> libxslt.1.1.24.dylib
-rwxr-xr-x   2 root  admin      894 Apr 20 10:27 libxslt.la
-rwxr-xr-x   2 root  admin    90896 Apr 20 10:24 libz.1.2.3.dylib
lrwxr-xr-x   1 root  admin       16 Apr 20 10:24 libz.1.dylib -> libz.1.2.3.dylib
-rw-r--r--   2 root  admin   101608 Apr 20 10:24 libz.a
lrwxr-xr-x   1 root  admin       16 Apr 20 10:24 libz.dylib -> libz.1.2.3.dylib
drwxr-xr-x   3 root  admin      102 Apr 20 10:44 perl5
drwxr-xr-x   5 root  admin      170 Apr 20 10:27 pkgconfig
lrwxr-xr-x   1 root  admin       17 Apr 20 10:31 terminfo -> ../share/terminfo
-rw-r--r--   2 root  admin      227 Apr 20 10:26 xml2Conf.sh
-rw-r--r--   2 root  admin      222 Apr 20 10:27 xsltConf.sh

Change History (37)

comment:1 Changed 10 years ago by tom@…

Cc: tom@… added

Cc Me!

comment:2 Changed 10 years ago by raimue (Rainer Müller)

Did you install ports using this +universal setup?

comment:3 Changed 10 years ago by mf2k (Frank Schima)

Cc: tom@… removed
Owner: changed from macports-tickets@… to ryandesign@…

comment:4 in reply to:  2 Changed 10 years ago by tom@…

Replying to raimue@…:

Did you install ports using this +universal setup?

I didn't. I reinstalled everything, but did not go that far back. Is there a FAQ I should have read? :)

comment:5 Changed 10 years ago by ryandesign (Ryan Schmidt)

There's this FAQ entry but it doesn't go into detail about the different architecture choices we now have for universal builds.

What did you mean "I reinstalled everything"?

The error message indicates the p5-locale-gettext port couldn't find the gettext library. This could be because gettext was installed with one set of universal architectures (say i386 ppc) and now p5-locale-gettext is being installed with a different set of universal architectures (say i386 x86_64). You must build all universal ports with the same set of universal architectures, or, at least, not with a conflicting set of architectures. In this case, p5-locale-gettext cannot be built for x86_64 because gettext was not built for x86_64.

comment:6 in reply to:  5 Changed 10 years ago by tom@…

Replying to ryandesign@…:

There's this FAQ entry but it doesn't go into detail about the different architecture choices we now have for universal builds.

What did you mean "I reinstalled everything"?

sorry - I reinstalled all of the ports I had installed previously, with the new universal setting - so everything you see in the listing should be x86_64

The error message indicates the p5-locale-gettext port couldn't find the gettext library. This could be because gettext was installed with one set of universal architectures (say i386 ppc) and now p5-locale-gettext is being installed with a different set of universal architectures (say i386 x86_64). You must build all universal ports with the same set of universal architectures, or, at least, not with a conflicting set of architectures. In this case, p5-locale-gettext cannot be built for x86_64 because gettext was not built for x86_64.

root@macbookpro[/opt/local/lib]$ file libgettext*dylib
libgettextlib-0.17.dylib: Mach-O 64-bit dynamically linked shared library x86_64
libgettextlib.dylib:      Mach-O 64-bit dynamically linked shared library x86_64
libgettextpo.0.4.0.dylib: Mach-O 64-bit dynamically linked shared library x86_64
libgettextpo.0.dylib:     Mach-O 64-bit dynamically linked shared library x86_64
libgettextpo.dylib:       Mach-O 64-bit dynamically linked shared library x86_64
libgettextsrc-0.17.dylib: Mach-O 64-bit dynamically linked shared library x86_64
libgettextsrc.dylib:      Mach-O 64-bit dynamically linked shared library x86_64
root@macbookpro[/opt/local/lib]$ file libintl*dylib
libintl.8.0.2.dylib: Mach-O 64-bit dynamically linked shared library x86_64
libintl.8.dylib:     Mach-O 64-bit dynamically linked shared library x86_64
libintl.dylib:       Mach-O 64-bit dynamically linked shared library x86_64

I'm not sure - but this seems to be indicative of the problem - perhaps it can yield some insight?

http://bugs.gentoo.org/show_bug.cgi?id=155758#c4

Thanks!

comment:7 Changed 10 years ago by tom@…

So - I deleted MacPorts and then reinstalled, changed 'universal_archs' to ONLY 'x86_64' (what I had before), and was able to reproduce this error. I then deleted installed ports, and changed 'universal_archs' to 'i386 x86_64', and it worked fine...FWIW...

comment:8 in reply to:  7 Changed 10 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Replying to tom@…:

So - I deleted MacPorts and then reinstalled, changed 'universal_archs' to ONLY 'x86_64' (what I had before), and was able to reproduce this error. I then deleted installed ports, and changed 'universal_archs' to 'i386 x86_64', and it worked fine...FWIW...

Special code is invoked if there is only one value in universal_archs (setting --target and --host).
It has caused problems before (see comment 9 of #18187).
If everything works with both i386 and x86_64, then perhaps that is the reason.

comment:9 Changed 10 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:10 Changed 10 years ago by ryandesign (Ryan Schmidt)

Keywords: gd2 removed
Port: p5-locale-gettext added; gd2 removed
Summary: Can't install gd2 for x86_64p5-locale-gettext : can't find gettext when compiling x86_64

comment:11 Changed 10 years ago by cerieljacobs@…

Cc: cerieljacobs@… added

Cc Me!

comment:12 Changed 10 years ago by cerieljacobs@…

$ sudo nano /opt/local/etc/macports/macports.conf
#arch=i386 x86_64
$ sudo /opt/local/bin/port -df upgrade gettext +universal configure.march=nocona
$ sudo /opt/local/bin/port -d install p5-locale-gettext +universal configure.march=nocona

is a workaround to build (fat) i386 & x86_64 binaries, and that makes p5-locale-gettext happy.

However I still prefer to built (slim) x86_64 only binaries.

comment:13 Changed 10 years ago by cerieljacobs@…

A workaround seems to be to first build fat binaries, change macports.conf to slim binaries, and then to force upgrade all ports.

At least $ file /opt/local/var/macports/software/gettext/0.17_4+universal/opt/local/bin/gettext returns: gettext: Mach-O 64-bit executable x86_64

And p5-locale-gettext is now installed (p5-locale-gettext @1.05_0+universal (active))

comment:14 Changed 10 years ago by Damien@…

Cc: Damien@… added

Cc Me!

comment:15 Changed 10 years ago by Damien@…

I have the same problem, using the +universal trick for 64 bits architecture.

…
DEBUG: Executing variant universal provides universal
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.unarchive (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)
--->  Configuring p5-locale-gettext
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (p5-locale-gettext)
DEBUG: Environment: CFLAGS='-pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5' CPPFLAGS='-I/opt/local/include -isysroot /Developer/SDKs/MacOSX10.5.sdk' CXXFLAGS='-pipe -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -mmacosx-version-min=10.5' MACOSX_DEPLOYMENT_TARGET='10.5' CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0' F90FLAGS='-pipe -O2' LDFLAGS='-L/opt/local/lib -arch x86_64 -mmacosx-version-min=10.5' FCFLAGS='-pipe -O2' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' PERL_AUTOINSTALL='--skipdeps' OBJCFLAGS='-pipe -O2' FFLAGS='-pipe -O2' CC='/usr/bin/gcc-4.0'
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" && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor --disable-dependency-tracking --host=i686-apple-darwin9 --target=i686-apple-darwin9'
checking for gettext... no
checking for gettext in -I/opt/local/include -L/opt/local/lib -lintl...gettext function not found. Please install libintl at Makefile.PL line 18.
 no
Error: Target org.macports.configure returned: configure failure: 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" && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor --disable-dependency-tracking --host=i686-apple-darwin9 --target=i686-apple-darwin9 " returned error 2
Command output: checking for gettext... no
checking for gettext in -I/opt/local/include -L/opt/local/lib -lintl...gettext function not found. Please install libintl at Makefile.PL line 18.
 no

Warning: the following items did not execute (for p5-locale-gettext): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.archive org.macports.install
Error: Status 1 encountered during processing.

gettext and libintl are installed and active.

comment:16 in reply to:  13 Changed 10 years ago by Damien@…

Replying to cerieljacobs@…:

A workaround seems to be to first build fat binaries, change macports.conf to slim binaries, and then to force upgrade all ports.

This solution didn't worked for me : I am still getting the same error.

comment:17 Changed 10 years ago by jmroot (Joshua Root)

I don't think this should be expected to work given that perl5.8 has no universal variant. The right way to build for x86_64 as of MacPorts 1.8 will be to set build_arch in macports.conf.

comment:18 Changed 10 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… added
Keywords: build_arch added

I'm seeing the same error message with MacPorts 1.8.0 on Snow Leopard going the other way: setting build_arch to i386 to try to force a 32-bit build when Snow Leopard would otherwise make a 64-bit one.

comment:19 Changed 10 years ago by Damien@…

Cc: Damien@… removed

Cc Me!

comment:20 Changed 10 years ago by Damien@…

On Snow Leopard, building with only x86_64 works fine.

comment:21 Changed 10 years ago by jmroot (Joshua Root)

Summary: p5-locale-gettext : can't find gettext when compiling x86_64p5-locale-gettext doesn't work with non-default build_arch

comment:22 Changed 10 years ago by florian.feldhaus@…

I had the same error, but I found out, that I had an old version of libintl.dylib in /usr/local/lib.
Please check the following:

lipo -info /opt/local/lib/libintl.dylib
lipo -info /usr/local/lib/libintl.dylib

For me the file in /usr/local/lib was build for i386 and ppc, the file in /opt/local/lib had the right architecture. So I moved the wrong file to a backup location and did a symlink to the correct file using:

sudo ln -s /opt/local/lib/libintl.dylib /usr/local/lib

This solved the problem for me!

comment:23 in reply to:  22 Changed 10 years ago by ryandesign (Ryan Schmidt)

Replying to florian.feldhaus@…:

I had the same error, but I found out, that I had an old version of libintl.dylib in /usr/local/lib.

Because of the possibility of problems like this, it is not supported to have anything in /usr/local/{bin,include,lib,sbin,share} and so forth while using MacPorts.

comment:24 Changed 10 years ago by tom.philpot@…

Cc: tom.philpot@… added

Cc Me!

comment:25 Changed 10 years ago by srm@…

I was struggling to build perl5.8 32 bit only on Snow Leopard. I've activated BUILD_ARCH I386 in macports.conf and manually added -arch i386 to CFLAGS and LDFLAGS in the PerlPortfile as well as in the p5-locale-gettext portfile. That fixed the issue for me.

comment:26 Changed 10 years ago by srm@…

Cc: srm@… added

Cc Me!

comment:27 Changed 10 years ago by mcrosby@…

BTW, I just spent this morning dealing with this (trying to build an all-i386 tree on Snow Leopard). It's definately a case of forcing the perl5.8 to be i386. However, even if you do that p5-locale-gettext will still try and build 64 bit. Went in and hacked the Config.pl to change CC to gcc -arch i386 get around it for now. I'm sure there must be a better solution.

comment:28 Changed 10 years ago by cerieljacobs@…

Cc: cerieljacobs@… removed

Cc Me!

comment:29 Changed 10 years ago by mcrosby@…

Cc: mcrosby@… added

Cc Me!

comment:30 Changed 10 years ago by thomas@…

Cc: thomas@… added

Cc Me!

comment:31 Changed 10 years ago by jeptorra@…

Cc: jeptorra@… added

Cc Me!

comment:32 Changed 10 years ago by jeptorra@…

I'm also trying to build all tree in 32 bits in snow leopard and I experienced the same issue.

Please could you provide a detailed recipe for your temporal workaround ?

comment:33 Changed 9 years ago by root42

Cc: arne.schmitz@… added

Cc Me!

comment:34 Changed 9 years ago by root42

Same problem here as jeptorra: Trying to build 32bit only on snow leopard, does not work, since p5-locale-gettext breaks apart. What's the fix for this?

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

Owner: changed from ryandesign@… to macports-tickets@…

comment:36 Changed 9 years ago by bjoern.gaworski@…

The following helped for me:

After

sudo port install p5-locale-gettext +universal

failed, I edited the Makefile.pl

sudo vi /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-locale-gettext/work/gettext-1.05/Makefile.pl

and changed the x86_64 in the -I includes to i386. Then ran the port above port command again. Voila.

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

Resolution: fixed
Status: newclosed

Fixed in r71687.

Note: See TracTickets for help on using tickets.