devel/json-c build fails

Pietro Cerutti gahr at FreeBSD.org
Thu May 9 19:06:21 UTC 2013


On 2013-May-06, 09:55, Beeblebrox wrote:
> Breaks with below Error Message. If ccache is enabled, breaks sooner.
> 
> WITH CCACHE:
> ===>  Building for json-c-0.9
> gmake  all-am
> gmake[1]: Entering directory
> `/wrkdirs/usr/ports/devel/json-c/work/json-c-0.9'
> /bin/sh ./libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.    -Wall
> -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -O2 -pipe
> -march=k8 -fno-strict-aliasing -MT arraylist.lo -MD -MP -MF
> .deps/arraylist.Tpo -c -o arraylist.lo arraylist.c
> libtool: compile:  cc -DHAVE_CONFIG_H -I. -Wall -Wwrite-strings -Werror
> -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -O2 -pipe -march=k8
> -fno-strict-aliasing -MT arraylist.lo -MD -MP -MF .deps/arraylist.Tpo -c
> arraylist.c  -fPIC -DPIC -o .libs/arraylist.o
> cc: error: argument unused during compilation: '-I .'
> gmake[1]: *** [arraylist.lo] Error 1
> gmake[1]: Leaving directory

Try to add -Qunused-arguments to your CFLAGS. Also, see
/usr/local/share/doc/ccache/ccache-howto-freebsd.txt

-- 
Pietro Cerutti
The FreeBSD Project
gahr at FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130509/4fcc5036/attachment.sig>


More information about the freebsd-ports mailing list