Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249253 - x11-wm/windowmaker-0.92.0-r7 fails to link on x86-macos
Summary: x11-wm/windowmaker-0.92.0-r7 fails to link on x86-macos
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-29 13:38 UTC by Elias Pipping
Modified: 2008-12-29 22:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gettext patch (wm.diff,495 bytes, patch)
2008-12-21 19:56 UTC, Elias Pipping
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Pipping 2008-11-29 13:38:38 UTC
Undefined symbols:
  "_gettext", referenced from:
      _ExpandOptions in misc.o
      _ExpandOptions in misc.o
      _ExpandOptions in misc.o
      _ExpandOptions in misc.o
  "_dgettext", referenced from:
      _translateMenuTitle in rootmenu.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-02 18:52:23 UTC
This stuff is happening alot lately.

10:02 < desp> >>> Failed to emerge app-misc/pax-utils-0.1.19
10:04 < desp> (OS X 10.5.5 x86)
10:07 <@darkside_> =/
10:07 < desp> Undefined symbols:
10:07 < desp>   "_strndup", referenced from:
10:07 < desp>       _scanelf_file_sym in scanelf.o
10:07 < desp>       _scanelf_file_sym in scanelf.o

calculus also reports issues with the 'tree' app. What is going on?
Comment 2 Fabian Groffen gentoo-dev 2008-12-02 20:30:40 UTC
darwin linker is stricter, and the "symbols" reside in a different library.

gettext is in -lgettext

strndup is a GNUism, so we should kill it.
Comment 3 Elias Pipping 2008-12-21 19:56:23 UTC
Created attachment 176076 [details, diff]
gettext patch

with this patch, windowmaker works perfectly fine on x86-macos and can be keyworded
Comment 4 Fabian Groffen gentoo-dev 2008-12-21 21:36:47 UTC
[22:05] @     grobian | it passes --disable-locale if USE=-nls
[22:08] +     pipping | yeah, that's what i said
[22:09] +     pipping | misc.c:		title ? gettext(title):_("Program Arguments"),
[22:09] +     pipping | misc.c:		prompt ? gettext(prompt):_("Enter command arguments:"),
[22:09] +     pipping | misc.c:		title ? gettext(title):_("Program Arguments"),
[22:09] +     pipping | misc.c:		prompt ? gettext(prompt):_("Enter command arguments:"),
[22:09] +     pipping | hm
[22:09] +     pipping | i think those are unguarded
[22:10] +     pipping | wmaker_SOURCES =  \
[22:10] +     pipping | [ .. ]
[22:10] +     pipping |   misc.c \
[22:10] +     pipping | [ .. ]
[22:10] +     pipping | it's compiled unconditionally
[22:10] +     pipping | and has gettext() in it. there's our problem i'd say.
Comment 5 Fabian Groffen gentoo-dev 2008-12-27 18:10:07 UTC
I fixed this for ppc-macos, can you try on x86-macos?
Comment 6 Elias Pipping 2008-12-29 22:48:41 UTC
grobian made sure it works on x86-macos