[Proj] compilation faults in PROJ4

Maciek Sieczka werchowyna at pf.pl
Sun May 30 10:37:52 PDT 2004


Hi all!

I installed PROJ.4 (Rel. 4.4.8 2004-05-04) from source but in the log files
I found plenty of errors and warnings.

Could someone help me? My questions are:
1. are these errors serious?
2. what may be the reasons?
3. how do I get rid of them?

Forgive me please if I'm waisting your time. I have no experience in
installing from source. It's my first attempt.
My Linux is Mandrake 9.2, GCC 3.3.1, kernel 2.4.22-26mdk, bison-1.875.
Should I provide any more info please tell me.
Listed below are faults extracted from log files. COMPLETE "./configure" and
"make" logs are attached.


./configure errors:

...
configure:2651: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:2657: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif


./configure warnings:

...
configure:5362: checking if gcc supports -fno-rtti -fno-exceptions
configure:5384: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c
conftest.c >&5
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
...
configure:7955: checking for exp in -lm
configure:7985: gcc -o conftest -g -O2   conftest.c -lm   >&5
conftest.c:29: warning: conflicting types for built-in function `exp'


./configure other "failed":

...
configure:3796: gcc -E  conftest.c
conftest.c:11:28: ac_nonexistent.h: No such file or directory
configure:3802: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "proj"
| #define VERSION "4.4.8"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3841: result: gcc -E
configure:3865: gcc -E  conftest.c
configure:3871: $? = 0
configure:3903: gcc -E  conftest.c
conftest.c:11:28: ac_nonexistent.h: No such file or directory
configure:3909: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "proj"
| #define VERSION "4.4.8"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
...
configure:5142: checking if gcc static flag -static works
configure:5166: gcc -o conftest -g -O2   -static conftest.c  >&5
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
configure:5172: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "proj"
| #define VERSION "4.4.8"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }


make warnings:

...
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPROJ_LIB=\"/usr/local/share/proj\" -g -O2
-c pj_ellps.c -MT pj_ellps.lo -MD -MP -MF
.deps/pj_ellps.TPlo  -fPIC -DPIC -o .libs/pj_ellps.lo
pj_ellps.c:9: warning: `pj_ellps' initialized and declared `extern'
...
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPROJ_LIB=\"/usr/local/share/proj\" -g -O2
-c pj_errno.c -MT pj_errno.lo -MD -MP -MF
.deps/pj_errno.TPlo  -fPIC -DPIC -o .libs/pj_errno.lo
pj_errno.c:8: warning: `pj_errno' initialized and declared `extern'
...
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPROJ_LIB=\"/usr/local/share/proj\" -g -O2
-c pj_units.c -MT pj_units.lo -MD -MP -MF
.deps/pj_units.TPlo  -fPIC -DPIC -o .libs/pj_units.lo
pj_units.c:11: warning: `pj_units' initialized and declared `extern'
...
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPROJ_LIB=\"/usr/local/share/proj\" -g -O2
-c pj_datums.c -MT pj_datums.lo -MD -MP -MF
.deps/pj_datums.TPlo  -fPIC -DPIC -o .libs/pj_datums.lo
pj_datums.c:70: warning: `pj_datums' initialized and declared `extern'
pj_datums.c:89: warning: `pj_prime_meridians' initialized and declared
`extern'
...
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPROJ_LIB=\"/usr/local/share/proj\"    -g -
O2 -c `test -f 'nad2nad.c' || echo './'`nad2nad.c
nad2nad.c: In function `main':
nad2nad.c:229: warning: return type of `main' is not `int'
...
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPROJ_LIB=\"/usr/local/share/proj\"    -g -
O2 -c `test -f 'nad2bin.c' || echo './'`nad2bin.c
nad2bin.c: In function `main':
nad2bin.c:13: warning: return type of `main' is not `int'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proj_logs.zip
Type: application/x-zip-compressed
Size: 14912 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20040530/9ff5f985/attachment.bin>


More information about the Proj mailing list