From: Bill Kelly Date: 2006-10-20T16:28:09+09:00 Subject: Re: libiconv: iconv_open is missing? From: "Matt Wynne" > > Hey Bill, thanks, I kindof did that by taking Nobuyoshi's suggestion and > hacking the extconf.rb file, which now runs. The make fails though, like > this: > > Vigor10:~/Documents/Downloads/net-geoip-0.06 matt$ make > gcc -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin8.8.1 -I. > -DRUBY_EXTCONF_H=\"extconf.h\" -O -pipe -I/opt/local/include -fno-common > -g -Wall-O -pipe -I/opt/local/include -fno-common -pipe -fno-common > -I/opt/local/include -c geoip.c > cc1: error: unrecognized command line option "-Wall-O" > make: *** [geoip.o] Error 1 It looks like part of your compiler flags string was appended to itself, for some reason. Or sort of, anyway: See how "-O -pipe -I/opt/local/include -fno-common" appears twice? But it was appended the second time without a space, so that the "-O" is touching the "-Wall". At the very least, you'd want a space between the "-Wall" and the "-O", to prevent them from touching and combining to form an unrecognized option. Hard to guess from here how that compiler command line string is being generated... it contains a fair amount of duplication. But anyway, the immediate problem is that the "-O" is touching the "-Wall", instead of being separated by a space. HTH, Bill