Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 188930

Summary: app-shells/zsh-4.3.4 builds incorrectly with USE=pcre
Product: Gentoo Linux Reporter: Christoph Mende (RETIRED) <angelos>
Component: Current packagesAssignee: Mamoru KOMACHI (RETIRED) <usata>
Status: RESOLVED FIXED    
Severity: normal CC: bsd+disabled, toolchain
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Append -rdynamic to EXTRA_LDFLAGS

Description Christoph Mende (RETIRED) gentoo-dev 2007-08-14 23:59:05 UTC
ojbdump -p /bin/zsh|grep NEEDED and ldd /bin/zsh claim that zsh was linked against libzsh-4.3.4.so on FreeBSD, that file does not exist though, so when trying to execute zsh it cries:
/libexec/ld-elf.so.1: Shared object "libzsh-4.3.4.so" not found, required by "zsh"
this does not happen on linux (libzsh-4.3.4.so doesn't exist either, but zsh is not linked against it)
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-08-15 14:31:41 UTC
This only happens with USE=pcre
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-08-15 15:26:39 UTC
The configure in zsh has been stripped of the [ and ] symbols

For example, in configure.ac we have this

case foo
  *-freebsd[3-9]*) ;;
esac

But autotools has changed this to

case foo
  *-freebsd3-9*) ;;
esac

So something here is baaadly broken :/
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-08-15 15:28:21 UTC
CC'ing toolchain to see if they have a clue
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-08-15 16:07:45 UTC
Created attachment 128188 [details, diff]
Append -rdynamic to EXTRA_LDFLAGS

Until toolchain or autotools or zsh upstream fixes, here's a patch to the ebuild to get around this issue.
Comment 5 SpanKY gentoo-dev 2007-08-16 05:24:04 UTC
ugh, no, please dont put that kind of stuff in the ebuild

what you reported is correct -- that is how the m4 language works

if you want to use [], you either need to use changequote, or cheat and double up the [] quoting

case foo
  *-freebsd[[3-9]]*) ;;
esac
Comment 6 Roy Marples (RETIRED) gentoo-dev 2007-08-16 09:53:38 UTC
OK, I've added a fix to the tree and I'll send it upstream.

usata, I've also changed the ebuild a touch as ncurses isn't optional.