Opened 11 years ago

Closed 11 years ago

#40588 closed defect (invalid)

gettext: use of undeclared identifiers POSIX_SPAWN_RESETIDS POSIX_SPAWN_SETPGROUP POSIX_SPAWN_SETSIGDEF POSIX_SPAWN_SETSIGMASK

Reported by: duke.brandonshire@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: gettext

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi there. I'm very new to this so I'll do may best. I'm trying to install mp4v2 as per the instructions here: (http://code.google.com/p/etv-comskip/downloads/detail?name=ETVComskip_h264_HD_mods-1.0rc1.zip&can=2&q=) but it fails every time with the following message:

--->  Computing dependencies for wine-devel
--->  Dependencies to be installed: fontconfig freetype libpng xz gettext pkgconfig gnutls libtasn1 nettle autoconf perl5 perl5.12 gdbm automake gstreamer010 bison flex glib2 libffi libxml2 gstreamer010-gst-plugins-base gnome-vfs desktop-file-utils popt gconf dbus-glib dbus gtk-doc gnome-doc-utils libxslt py27-libxml2 python27 libedit python_select sqlite3 rarian gobject-introspection cairo libpixman lzo2 xorg-libXext xorg-libX11 xorg-libXau xorg-libxcb xorg-xcb-proto xorg-xcb-util xrender gtk2 atk gdk-pixbuf2 jasper tiff pango Xft2 harfbuzz graphite2 cmake libidn shared-mime-info xorg-libXcomposite xorg-libXfixes xorg-libXcursor xorg-libXdamage xorg-libXi xorg-libXinerama xorg-libXrandr intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser orbit2 libidl policykit gnome-mime-data libtheora libvorbis libogg orc lcms2 mesa xorg-libXmu xorg-libXt xorg-libXxf86vm
--->  Fetching archive for gettext
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports.
--->  Attempting to fetch gettext-0.18.3.1_1+universal.darwin_12.i386-x86_64.tbz2 from http://packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.3.1_1+universal.darwin_12.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.3.1_1+universal.darwin_12.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/gettext
--->  Fetching distfiles for gettext
--->  Verifying checksums for gettext
--->  Extracting gettext
--->  Configuring gettext
--->  Building gettext
Error: org.macports.build for port gettext returned: command execution failed
Error: Failed to install gettext
Please see the log file for port gettext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log
Error: The following dependencies were not installed: fontconfig freetype libpng xz gettext pkgconfig gnutls libtasn1 nettle autoconf perl5 perl5.12 gdbm automake gstreamer010 bison flex glib2 libffi libxml2 gstreamer010-gst-plugins-base gnome-vfs desktop-file-utils popt gconf dbus-glib dbus gtk-doc gnome-doc-utils libxslt py27-libxml2 python27 libedit python_select sqlite3 rarian gobject-introspection cairo libpixman lzo2 xorg-libXext xorg-libX11 xorg-libXau xorg-libxcb xorg-xcb-proto xorg-xcb-util xrender gtk2 atk gdk-pixbuf2 jasper tiff pango Xft2 harfbuzz graphite2 cmake libidn shared-mime-info xorg-libXcomposite xorg-libXfixes xorg-libXcursor xorg-libXdamage xorg-libXi xorg-libXinerama xorg-libXrandr intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser orbit2 libidl policykit gnome-mime-data libtheora libvorbis libogg orc lcms2 mesa xorg-libXmu xorg-libXt xorg-libXxf86vm
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port wine-devel failed

I have looked around here a bit and have tried "sudo port clean gettext" but still get the above.

I've also attached the log file.

Attachments (2)

main (607.5 KB) - added by duke.brandonshire@… 11 years ago.
main - 2nd try (23.3 KB) - added by duke.brandonshire@… 11 years ago.

Download all attachments as: .zip

Change History (15)

Changed 11 years ago by duke.brandonshire@…

Attachment: main added

comment:1 Changed 11 years ago by duke.brandonshire@…

Sorry, screwed up on the wikiformatting, cant' figure out how to edit to fix it. Sorry, as I said I'm very new to this.

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

Cc: port info --maintainers gettext removed
Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: gettext added
Summary: Installing mp4v2 fails because gettext won't installgettext: use of undeclared identifiers POSIX_SPAWN_RESETIDS POSIX_SPAWN_SETPGROUP POSIX_SPAWN_SETSIGDEF POSIX_SPAWN_SETSIGMASK

The log has interesting errors:

:info:build ./spawn.h:468:17: error: use of undeclared identifier 'POSIX_SPAWN_RESETIDS'
:info:build ./spawn.h:468:40: error: use of undeclared identifier 'POSIX_SPAWN_SETPGROUP'
:info:build ./spawn.h:469:19: error: use of undeclared identifier 'POSIX_SPAWN_SETSIGDEF'
:info:build ./spawn.h:469:43: error: use of undeclared identifier 'POSIX_SPAWN_SETSIGMASK'

I've not seen these before.

comment:3 Changed 11 years ago by duke.brandonshire@…

Well then... at least I guess it's original!

comment:4 Changed 11 years ago by duke.brandonshire@…

Oh! I totally forgot to add, I was able to install gettext by itself (i.e., not as part of the other package) but even after doing that I got the same error. (I've since done yet another clean and then did this again).

comment:5 in reply to:  4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to duke.brandonshire@…:

Oh! I totally forgot to add, I was able to install gettext by itself (i.e., not as part of the other package) but even after doing that I got the same error. (I've since done yet another clean and then did this again).

The main.log you attached shows you were trying to build gettext universal, which is because in the transcript you showed you're trying to install the wine-devel port which requires that. So it's possible that you were able to install gettext non-universal, but that the universal build is still failing, although I don't see how the above errors have anything to do with universal builds. I'm still investigating those errors. What's the output of:

port -v installed gettext

comment:6 Changed 11 years ago by duke.brandonshire@…

I get:

The following ports are currently installed:
  gettext @0.18.3.1_1 (active) platform='darwin 12' archs='x86_64'
Last edited 11 years ago by duke.brandonshire@… (previous) (diff)

comment:7 in reply to:  6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to duke.brandonshire@…:

The following ports are currently installed:
  gettext @0.18.3.1_1 (active) platform='darwin 12' archs='x86_64'

Actually that does make sense. For the non-universal build, you probably received a pre-compiled binary from our packages server. But no pre-compiled universal binary exists for the current version of gettext, so your machine had to try to compile it itself, and it failed, for reasons we don't yet understand. Probably if you tried to build it non-universal on your system that would fail too.

Could you let me know your version of Xcode and clang? Find out by running:

xcodebuild -version
clang -v

comment:8 Changed 11 years ago by duke.brandonshire@…

Well now here's a possible problem...

For Xcode I get:

Xcode 5.0
Build version 5A1413

But after typing "clang -v" I get:

clang: Command not found.

(Or I just did something wrong)

comment:9 in reply to:  8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to duke.brandonshire@…:

For Xcode I get:

Xcode 5.0
Build version 5A1413

Ok, I haven't tried Xcode 5 yet but others have reported that it should work fine with MacPorts.

But after typing "clang -v" I get:

clang: Command not found.

(Or I just did something wrong)

That's what I suspected. You probably don't have the command line tools installed. Please install them; hopefully the procedure hasn't changed from Xcode 4.6, which is that you open the Xcode application (from your Applications folder), go to the Preferences window, to the Downloads section, and click the Install button next to Command Line Tools.

comment:10 Changed 11 years ago by duke.brandonshire@…

Ok, done!

now for "clang -v" I get:

Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix

However, after that I tried in installation again and got the same basic output:

--->  Computing dependencies for wine-devel
--->  Dependencies to be installed: fontconfig freetype libpng xz gettext pkgconfig gnutls libtasn1 nettle autoconf perl5 perl5.12 gdbm automake gstreamer010 bison flex glib2 libffi libxml2 gstreamer010-gst-plugins-base gnome-vfs desktop-file-utils popt gconf dbus-glib dbus gtk-doc gnome-doc-utils libxslt py27-libxml2 python27 libedit python_select sqlite3 rarian gobject-introspection cairo libpixman lzo2 xorg-libXext xorg-libX11 xorg-libXau xorg-libxcb xorg-xcb-proto xorg-xcb-util xrender gtk2 atk gdk-pixbuf2 jasper tiff pango Xft2 harfbuzz graphite2 cmake libidn shared-mime-info xorg-libXcomposite xorg-libXfixes xorg-libXcursor xorg-libXdamage xorg-libXi xorg-libXinerama xorg-libXrandr intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser orbit2 libidl policykit gnome-mime-data libtheora libvorbis libogg orc lcms2 mesa xorg-libXmu xorg-libXt xorg-libXxf86vm
--->  Building gettext
Error: org.macports.build for port gettext returned: command execution failed
Error: Failed to install gettext
Please see the log file for port gettext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/main.log
Error: The following dependencies were not installed: fontconfig freetype libpng xz gettext pkgconfig gnutls libtasn1 nettle autoconf perl5 perl5.12 gdbm automake gstreamer010 bison flex glib2 libffi libxml2 gstreamer010-gst-plugins-base gnome-vfs desktop-file-utils popt gconf dbus-glib dbus gtk-doc gnome-doc-utils libxslt py27-libxml2 python27 libedit python_select sqlite3 rarian gobject-introspection cairo libpixman lzo2 xorg-libXext xorg-libX11 xorg-libXau xorg-libxcb xorg-xcb-proto xorg-xcb-util xrender gtk2 atk gdk-pixbuf2 jasper tiff pango Xft2 harfbuzz graphite2 cmake libidn shared-mime-info xorg-libXcomposite xorg-libXfixes xorg-libXcursor xorg-libXdamage xorg-libXi xorg-libXinerama xorg-libXrandr intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser orbit2 libidl policykit gnome-mime-data libtheora libvorbis libogg orc lcms2 mesa xorg-libXmu xorg-libXt xorg-libXxf86vm
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port wine-devel failed

I'll grab the log from this attempt.

Changed 11 years ago by duke.brandonshire@…

Attachment: main - 2nd try added

comment:11 in reply to:  10 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to duke.brandonshire@…:

However, after that I tried in installation again and got the same basic output:

--->  Computing dependencies for wine-devel
--->  Dependencies to be installed: fontconfig freetype libpng xz gettext pkgconfig gnutls libtasn1 nettle autoconf perl5 perl5.12 gdbm automake gstreamer010 bison flex glib2 libffi libxml2 gstreamer010-gst-plugins-base gnome-vfs desktop-file-utils popt gconf dbus-glib dbus gtk-doc gnome-doc-utils libxslt py27-libxml2 python27 libedit python_select sqlite3 rarian gobject-introspection cairo libpixman lzo2 xorg-libXext xorg-libX11 xorg-libXau xorg-libxcb xorg-xcb-proto xorg-xcb-util xrender gtk2 atk gdk-pixbuf2 jasper tiff pango Xft2 harfbuzz graphite2 cmake libidn shared-mime-info xorg-libXcomposite xorg-libXfixes xorg-libXcursor xorg-libXdamage xorg-libXi xorg-libXinerama xorg-libXrandr intltool p5.12-getopt-long p5.12-pathtools p5.12-scalar-list-utils p5.12-xml-parser orbit2 libidl policykit gnome-mime-data libtheora libvorbis libogg orc lcms2 mesa xorg-libXmu xorg-libXt xorg-libXxf86vm
--->  Building gettext

It wasn't a clean attempt. Clean and try again.

comment:12 Changed 11 years ago by duke.brandonshire@…

Thank you so much. That seems to have done it. I've at least gotten gettext installed and now it's moving on to the other packages. Fingers crossed that I don't have any problems with any of them!

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

Resolution: invalid
Status: newclosed

Great! If you do see more problems, let us know.

Note: See TracTickets for help on using tickets.