netstv / ccl

Automatically exported from code.google.com/p/ccl
0 stars 0 forks source link

"make" failed on Linux #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Invoke "make"

What is the expected output? What do you see instead?
- It is expected that "make" would complete successfully. 
- Instead, it failed.

What version of the product are you using? On what operating system?
- Jul 13 2012
- Linux
 [Linux 2.6.18-128.el5PAE #1 SMP Wed Jan 21 11:19:46 EST 2009 i686 i686 i386 GNU/Linux]

Please provide any additional information below.

$ make
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o vector.o vector.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o error.o error.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o dlist.o dlist.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o qsortex.o qsortex.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o bitstrings.o 
bitstrings.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o generic.o generic.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o dictionary.o 
dictionary.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o wdictionary.o 
wdictionary.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o list.o list.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o strcollection.o 
strcollection.c
In file included from strcollection.c:33:
strcollectiongen.c: In function ‘Contains’:
strcollectiongen.c:357: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
strcollectiongen.c: In function ‘IndexOf’:
strcollectiongen.c:405: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
strcollectiongen.c: In function ‘EraseInternal’:
strcollectiongen.c:650: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o searchtree.o 
searchtree.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o heap.o heap.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o malloc_debug.o 
malloc_debug.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o bloom.o bloom.c
bloom.c: In function ‘Create’:
bloom.c:99: warning: implicit declaration of function ‘round’
bloom.c:99: warning: incompatible implicit declaration of built-in function 
‘round’
bloom.c: In function ‘CalculateSpace’:
bloom.c:135: warning: incompatible implicit declaration of built-in function 
‘round’
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o fgetline.o fgetline.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o pool.o pool.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o pooldebug.o 
pooldebug.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o redblacktree.o 
redblacktree.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o scapegoat.o 
scapegoat.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o queue.o queue.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o buffer.o buffer.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o observer.o observer.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o valarraydouble.o 
valarraydouble.c
In file included from valarraydouble.c:25:
valarraygen.c: In function ‘AddRange’:
valarraygen.c:199: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o valarrayint.o 
valarrayint.c
In file included from valarrayint.c:23:
valarraygen.c: In function ‘AddRange’:
valarraygen.c:199: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o vectorsize_t.o 
vectorsize_t.c
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o valarraylongdouble.o 
valarraylongdouble.c
In file included from valarraylongdouble.c:25:
valarraygen.c: In function ‘AddRange’:
valarraygen.c:199: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o valarrayshort.o 
valarrayshort.c
In file included from valarrayshort.c:25:
valarraygen.c: In function ‘AddRange’:
valarraygen.c:199: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o valarrayfloat.o 
valarrayfloat.c
In file included from valarrayfloat.c:25:
valarraygen.c: In function ‘AddRange’:
valarraygen.c:199: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o valarrayuint.o 
valarrayuint.c
In file included from valarrayuint.c:25:
valarraygen.c: In function ‘AddRange’:
valarraygen.c:199: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
gcc -O2 -Wno-pointer-sign -DUNIX -Wall -D__MAC_OSX   -c -o valarraylonglong.o 
valarraylonglong.c
In file included from valarraylonglong.c:23:
valarraygen.c: In function ‘AddRange’:
valarraygen.c:199: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
valarraygen.c: In function ‘GetElement’:
valarraygen.c:427: error: ‘LLONG_MIN’ undeclared (first use in this 
function)
valarraygen.c:427: error: (Each undeclared identifier is reported only once
valarraygen.c:427: error: for each function it appears in.)
valarraygen.c: In function ‘Max’:
valarraygen.c:1966: error: ‘LLONG_MIN’ undeclared (first use in this 
function)
valarraygen.c:1970: error: ‘LLONG_MAX’ undeclared (first use in this 
function)
valarraygen.c: In function ‘Min’:
valarraygen.c:2044: error: ‘LLONG_MAX’ undeclared (first use in this 
function)
make: *** [valarraylonglong.o] Error 1

Original issue reported on code.google.com by arunks...@gmail.com on 12 Jul 2013 at 5:39

GoogleCodeExporter commented 8 years ago
The problem can be fixed by adding "-std=c99" in the CFLAGS.

My CFLAGS now read as:

    CFLAGS=-std=c99 -O2 -Wno-pointer-sign -Wall

Original comment by arunks...@gmail.com on 12 Jul 2013 at 5:56