This repository has been archived by the owner. It is now read-only.

Can't install lesstif (sed in 10.8 fails on certain characters) #12890

Closed
martimarkov opened this Issue Jun 17, 2012 · 7 comments

Comments

Projects
None yet
5 participants

This is the problem I'm getting. I'll see if I can figure it out but still I decided to post it here if somebody already know the problem. :)

Making all in Xm
sed -e "s/_MAJOR_VERSION_/0/" \
        -e "s/_MINOR_VERSION_/95/" \
        -e "s/_PICO_VERSION_/2/"   \
    ../../../include/Motif-2.1/Xm/Xm.h.in >Xm.h.tmp
sed: RE error: illegal byte sequence
make[4]: *** [Xm.h.tmp] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
config.log was copied to /Users/marti/Library/Logs/Homebrew
==> Build Environment
CPU: dual-core 64-bit penryn
MacOS: 10.8-x86_64
Xcode: 4.3.2
X11: /usr/X11 => /opt/X11
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CPPFLAGS: -I/usr/X11/include
LDFLAGS: -L/usr/X11/lib
MAKEFLAGS: -j2
Error: Failed executing: make (lesstif.rb:25)

OSX 10.8, XCode-4.5.

It was a problem with /include/Motif-2.1/Xm/Xm.h.in

There was a weird character in the copyright part of the file. I replaced it with (C) on both lines and it worked.

I have no idea on how to fix this issue within Homebrew. Any ideas?

Contributor

jacknagel commented Jun 17, 2012

This is a recurring issue with the sed shipping with 10.8. I recall someone saying that they had filed a radar about it.

Contributor

2bits commented Jun 17, 2012

MacOS: 10.8-x86_64
Xcode: 4.3.2

OSX 10.8, XCode-4.5.

What's going on with that (just curious). Also, what do you get for echo $LANG
The diagnosis you made about the odd character in the comments section would be important to add to that radar report.

Contributor

adamv commented Jun 29, 2012

Try this: mxcl#13106 (comment)

All we can do here is recommend that it get Radar'ed.

@adamv adamv closed this Jun 29, 2012

Owner

MikeMcQuaid commented Aug 2, 2012

Pushed a fix in 00ba4df.

Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Aug 2, 2012

Fix Mountain Lion sed by setting LANG.
It's also necessary to delete LC_ALL or it overrides the new LANG.
LC_COLLATE is the problem variable but is affected by LANG and LC_ALL
so just use them instead. Extends the Fix made to geoip in dc955c.

Fix #11728, fix #12890, fix #13653, fix #13734, fix #13787, fix #13818.

MikeMcQuaid added a commit that referenced this issue Aug 4, 2012

Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Aug 13, 2012

fgeller added a commit to fgeller/homebrew that referenced this issue Aug 22, 2012

Fix Mountain Lion sed by setting LANG.
It's also necessary to delete LC_ALL or it overrides the new LANG.
LC_COLLATE is the problem variable but is affected by LANG and LC_ALL
so just use them instead. Extends the Fix made to geoip in dc955c.

Fix #11728, fix #12890, fix #13653, fix #13734, fix #13787, fix #13818.

fgeller added a commit to fgeller/homebrew that referenced this issue Aug 22, 2012

Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012

Fix Mountain Lion sed by setting LANG.
It's also necessary to delete LC_ALL or it overrides the new LANG.
LC_COLLATE is the problem variable but is affected by LANG and LC_ALL
so just use them instead. Extends the Fix made to geoip in dc955c.

Fix #11728, fix #12890, fix #13653, fix #13734, fix #13787, fix #13818.

snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012

Fix Mountain Lion sed by setting LANG.
It's also necessary to delete LC_ALL or it overrides the new LANG.
LC_COLLATE is the problem variable but is affected by LANG and LC_ALL
so just use them instead. Extends the Fix made to geoip in dc955c.

Fix #11728, fix #12890, fix #13653, fix #13734, fix #13787, fix #13818.

snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.