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

Bug 342761

Summary: x11-wm/wmii-3.9.2-r1: fails to compile due to not found function "strncasecmp"
Product: Gentoo/Alt Reporter: Mattia Gheda <thamayor>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mattia Gheda 2010-10-26 13:25:07 UTC
I've unmasked the wmii wm so I now that it could be possible that it wasn't working :)

I hope it's ok if I signal here my error...

Wmii compilation fails this way:

...
MAKE all cmd/menu/
CC cmd/menu/main.o
cmd/menu/main.c:250: error: ‘strncasecmp’ undeclared
make[2]: *** [main.o] Error 1
make[1]: *** [dall] Error 2
make: *** [dall] Error 2
emake failed


I've just installed gentoo prefix on a macbook air with OS X snow leopard...
gcc -v is 
gcc version 4.2.1 (Gentoo 4.2.1_p5664, Apple Inc. build 5664)


Hope that I've filled up the bugreport correctly

p.s:
First time on a mac for me.. I was missing gentoo after the first 5 mins.. so thank you guys for this project!

Mattia

Reproducible: Always

Steps to Reproduce:
1.install gentoo prefix following the handbook
2.unmask wmii
3.emerge wmii

Actual Results:  
compile fails

Expected Results:  
compile success

my emerge --info
ortage 2.2.01.17086-prefix (prefix/darwin/macos/10.6/x86, gcc-4.2.1, unavailable, 10.4.3 i386)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-10.4.3-i386-32bit
Timestamp of tree: Mon, 25 Oct 2010 23:11:24 +0000
distcc 3.1-toolwhip.1 i386-apple-darwin10.0 [disabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r2
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-apple-darwin10"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="i686-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/terminfo"
CXXFLAGS=""
DISTDIR="/Users/tha/Gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-dead_strip_dylibs"
PKGDIR="/Users/tha/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/tha/Gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Users/tha/Gentoo/var/tmp"
PORTDIR="/Users/tha/Gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="X aqua coreaudio cracklib cxx mmx mmxext modules ncurses nls objc objc++ prefix readline sse sse2 ssl unicode x86-macos zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mattia Gheda 2010-10-30 23:39:57 UTC
Other infos can be found In my blog post...

I've managed to compile wmii but in a real ugly way.. help is really appreciated :)
http://tiledcoding.blogspot.com/2010/10/gentoo-on-macbook-air-2gen-wmii-on-x11.html
Comment 2 Fabian Groffen gentoo-dev 2010-10-31 20:54:38 UTC
oh, ok, so we need a proper patch
http://code.google.com/p/wmii/issues/detail?id=89
gives some hints, but we can't/won't use the fixed paths, so it'll be a bit different.
Comment 3 Mattia Gheda 2010-11-01 00:32:18 UTC
thank you!

I'll update the blog post soon to add other info about what i had to do to make it work completely.. and if is useful I'll let you know... 

in the meanwhile.. thanks!