Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366885 - x11-misc/xdg-user-dirs-0.13: build fails because of missing -liconv and _strndup on Darwin
Summary: x11-misc/xdg-user-dirs-0.13: build fails because of missing -liconv and _strn...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High enhancement
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on: 499940
Blocks:
  Show dependency tree
 
Reported: 2011-05-11 14:09 UTC by Leho Kraav (:macmaN @lkraav)
Modified: 2017-11-14 13:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leho Kraav (:macmaN @lkraav) 2011-05-11 14:09:14 UTC
i fixed -liconv with /etc/portage/env. _strndup is apparently a harder nut to crack.

make[2]: Entering directory `/Volumes/Data/tmp/portage/x11-misc/xdg-user-dirs-0.13/work/xdg-user-dirs-0.13'
gcc -DHAVE_CONFIG_H -I. -I. -I. -DXDGCONFDIR=\"/opt/prefix/etc/xdg\" -DLOCALEDIR=\"/opt/prefix/usr/share/locale\" -DSTANDALONE_XDG_USER_DIR_LOOKUP     -O2 -pipe -march=nocona -c xdg-user-dirs-update.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -DXDGCONFDIR=\"/opt/prefix/etc/xdg\" -DLOCALEDIR=\"/opt/prefix/usr/share/locale\" -DSTANDALONE_XDG_USER_DIR_LOOKUP     -O2 -pipe -march=nocona -c xdg-user-dir-lookup.c
xdg-user-dirs-update.c: In function ‘parse_colon_separated_dirs’:
xdg-user-dirs-update.c:363: warning: incompatible implicit declaration of built-in function ‘strndup’
gcc  -O2 -pipe -march=nocona  -Wl,-dead_strip_dylibs -liconv -liconv -liconv -liconv -o xdg-user-dir-lookup xdg-user-dir-lookup.o  
gcc  -O2 -pipe -march=nocona  -Wl,-dead_strip_dylibs -liconv -liconv -liconv -liconv -o xdg-user-dirs-update xdg-user-dirs-update.o -lintl -Wl,-framework -Wl,CoreFoundation 
Undefined symbols:
  "_strndup", referenced from:
      _parse_colon_separated_dirs in xdg-user-dirs-update.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [xdg-user-dirs-update] Error 1
make[2]: Leaving directory `/Volumes/Data/tmp/portage/x11-misc/xdg-user-dirs-0.13/work/xdg-user-dirs-0.13'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Volumes/Data/tmp/portage/x11-misc/xdg-user-dirs-0.13/work/xdg-user-dirs-0.13'
make: *** [all] Error 2
emake failed
 * ERROR: x11-misc/xdg-user-dirs-0.13 failed (compile phase):
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-03-15 19:50:42 UTC
I added USE="nls" to control if xdg-user-dirs is pulled in when building Xfce, plus applied the patch that adds $(LIBICONV) for external libiconv to Portage from bug 499940
So that leaves _strndup problem
But I think many systems should mostly just skip xdg-user-dirs and have it conditionalized by USE="nls"
Comment 2 Fabian Groffen gentoo-dev 2017-11-14 13:17:40 UTC
I'm closing this because the package and OS changed considerably in the meantime.