Bugs: Browse | Submit New | Admin

[#1876] cc1: unknown C standard `gnu99' on Freebsd 4.10-RELEASE

Date:
2005-05-05 14:02
Priority:
3
Submitted By:
Chris Armstrong (strongarm)
Assigned To:
Tim Hunter (rmagick)
Category:
Installation
State:
Closed
Summary:
cc1: unknown C standard `gnu99' on Freebsd 4.10-RELEASE

Detailed description
Hi there

I can't build from source using FreeBSD 4.10-RELEASE. 
Error: cc1: unknown C standard `gnu99' 

I'm using the source code and not the FreeBSD Port. The FreeBSD port is marked as broken for version 4 of FreeBSD exactly
out of this reason.


Application Versions:
---------------------------------------------------------------------------
ImageMagick: ImageMagick-6.2.2.1
RMagick: RMagick-1.8.0

Uname -a
---------------------------------------------------------------------------
FreeBSD roadrunner.ugly-sheep.org 4.10-RELEASE FreeBSD 4.10-RELEASE #1: Wed Feb 23 22:40:37 CET 2005
charms@roadrunner.ugly-sheep.org:/usr/obj/usr/src/sys/theplanet  i386

Build
---------------------------------------------------------------------------
./configure --prefix=/usr/local/rmagick
Configuring RMagick 1.8.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ruby... /usr/local/bin/ruby
checking for Magick-config... Magick-config
checking for InitializeMagick in -lMagick... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking magick/api.h usability... yes
checking magick/api.h presence... yes
checking for magick/api.h... yes
checking for snprintf... yes
checking for AdaptiveThresholdImage... yes
checking for AppendImageToList... yes
checking for LevelImageChannel... yes
checking for ThumbnailImage... yes
checking for RemoveFirstImageFromList... yes
checking for GetNextImageInList... yes
checking for SetLogFormat... yes
checking for XImportImage... yes
checking for ExportImagePixels... yes
checking for ImportImagePixels... yes
checking for ThresholdImageChannel... yes
checking for RandomChannelThresholdImage... yes
checking for StripImage... yes
checking for AcquireMagickMemory... yes
checking for BlackThresholdImage... yes
checking for WhiteThresholdImage... yes
checking for GetMagickInfoArray... no
checking for GetColorInfoArray... no
checking for GetLocaleExceptionMessage... yes
checking for GetMagickGeometry... yes
checking for ParseSizeGeometry... yes
checking for TintImage... yes
checking for GetColorHistogram... no
checking for GetImageHistogram... yes
checking for FuzzyColorCompare... yes
checking for GetImageProfile... yes
checking for GetNextImageProfile... yes
checking for GetImageChannelDepth... yes
checking for GetImageChannelExtrema... yes
checking for GetImageChannelMean... yes
checking for CompareImageChannels... yes
checking for PreviewImage... yes
checking for SetImageColorspace... yes
checking for AcquireStringInfo... yes
checking for GetImageQuantumDepth... yes
checking for BilevelImageChannel... yes
checking for GammaImageChannel... yes
checking for NegateImageChannel... yes
checking for SetImageOption... yes
checking for AddDefinitions... no
checking for GrayscalePseudoClassImage... no
checking for RadialBlurImage... yes
checking for RandomThresholdImageChannel... yes
checking for SeparateImageChannel... yes
checking for QuantumOperatorRegionImage... no
checking for GetImageStatistics... no
checking for GetColorInfoList... yes
checking for GetTypeInfoList... yes
checking for GetMagickInfoList... yes
checking for EvaluateImageChannel... yes
checking for PosterizeImage... yes
checking for GaussianBlurImageChannel... yes
checking for ConvolveImageChannel... yes
checking for SpliceImage... yes
checking for SharpenImageChannel... yes
checking for SetImageChannelDepth... yes
checking for BlurImageChannel... yes
checking for GetMultilineTypeMetrics... yes
checking for NormalizeImageChannel... yes
checking for UnsharpMaskImageChannel... yes
checking for ShadowImage... yes
checking for SepiaToneImage... yes
checking for SigmoidalContrastImageChannel... yes
checking for MagickBooleanType... yes
checking for DisposeType... yes
checking for magick_int64_t... no
checking for magick_uint64_t... no
checking for ExtendedSignedIntegralType... yes
checking for ExtendedUnsignedIntegralType... yes
checking for MagickOffsetType... yes
checking for MagickSizeType... yes
checking for ExceptionInfo.module... no
checking for Image.orientation... yes
checking for Image.quality... yes
checking for Image.extract_info... yes
checking for ImageInfo.number_scenes... yes
checking for NoCompliance enum value... yes
checking for HSLColorspace enum value... yes
checking for HWBColorspace enum value... yes
checking for HSBColorspace enum value... yes
checking for CopyCyanCompositeOp enum value... yes
checking for ReplaceCompositeOp enum value... yes
checking for DstCompositeOp enum value... yes
checking for ColorDodgeCompositeOp enum value... yes
checking for IndexChannel enum value... yes
checking for AllChannels enum value... yes
checking for JPEG2000Compression enum value... yes
checking if GetImageQuantumDepth has only 1 argument... no
checking if GetColorInfoList has only 2 arguments... no
checking if GetTypeInfoList has only 2 arguments... no
checking if GetMagickInfoList has only 2 arguments... no
checking if RemoveImageProfile returns MagickBooleanType... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ext/RMagick/extconf.rb
config.status: creating metaconfig
config.status: creating ext/RMagick/rmagick_config.h
config.status: ext/RMagick/rmagick_config.h is unchanged


This installation of RMagick 1.8.0 is configured for
ruby 1.8.2 (2004-12-25) [i386-freebsd4] and ImageMagick 6.2.2.

roadrunner # make
/usr/local/bin/ruby install.rb setup
install.rb: entering setup phase...
---> lib
---> lib/rvg
<--- lib/rvg
<--- lib
---> ext
---> ext/RMagick
make
cc -fPIC -std=gnu99 -Wall -g -I. -I/usr/local/lib/ruby/1.8/i386-freebsd4 -I/usr/local/lib/ruby/1.8/i386-freebsd4
-I/usr/home/charms/RMagick-1.8.0/ext/RMagick  -DRUBY_VERSION=0x182  -I/usr/local/include -c rmdraw.c
cc1: unknown C standard `gnu99'
*** Error code 1

Stop in /usr/home/charms/RMagick-1.8.0/ext/RMagick.
setup failed
'system make' failed
try 'ruby install.rb --help' for usage
*** Error code 1

Stop in /usr/home/charms/RMagick-1.8.0.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2005-05-07 00:04
Sender: Tim Hunter

Logged In: YES 
user_id=122

I've changed RMagick at CVS HEAD to not require that option,
so it'll be in the next release. If you are able to successfully
use RMagick on your system then I think I'll hold off on a new
release for a bit.

Let me know if you have any other problems.
Date: 2005-05-06 20:43
Sender: Chris Armstrong

Logged In: YES 
user_id=2503

Thank you for the fast reply. I have done that and it worked. 

Is this a problem that you will fix on your side or a problem
related to the operating system?

I'm asking because i want to create a new FreeBSD port since
i didn't hear anything from the port maintainer and don't know
if i should add a patch or not.

Actually i'm nearly finished already.
Date: 2005-05-05 21:56
Sender: Tim Hunter

Logged In: YES 
user_id=122

Try this workaround. Go the the file ext/RMagick/extconf.rb.in
and change line 9 from

$CFLAGS = "-std=gnu99 -Wall -g @CFLAGS@"

to

$CFLAGS = "-Wall -g @CFLAGS@"

You'll need re-run ./configure. 

Sorry you're having trouble. Let me know how this works.
Date: 2005-05-05 14:13
Sender: Chris Armstrong

Logged In: YES 
user_id=2503

The patch from: #1573 is not working.
Date: 2005-05-05 14:12
Sender: Chris Armstrong

Logged In: YES 
user_id=2503

roadrunner # gcc -v
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]

Attached Files:

Name Description Download
RMagick-1.8.0.patch RMagick 1.8.0 Patch for FreeBSD 4.x Download

Changes:

Field Old Value Date By
status_idOpen2005-05-22 22:54rmagick
resolution_idNone2005-05-22 22:54rmagick
close_date2005-05-22 22:542005-05-22 22:54rmagick
assigned_tonone2005-05-09 09:16rmagick
File Added205: RMagick-1.8.0.patch2005-05-06 20:43strongarm