According to Clyde Meli:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.3/include/unistd.h:230: conf licting types for `rename' /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.3/include/stdio.h:161: previ ous declaration of `rename'
It seems as if the (AutoConf) configuration script did not recognize your system correctly. Please try and edit `gpc-config.h' manually and flip the `HAVE_UNISTD_H' switch.
Good luck,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]
I found what was confusing AUTOCONF - I did not set the CC environment variable (I never did and I never had problems :) ) to /usr/local/bin/gcc (or wherever gcc is located). I recompiled the C compiler now using the precompiled gcc 2.7.2.1 package available on the net.
Now I attempted to compile the beta but I ran into problems again, this time with parse.y (I've recompiled bison again - version 1.25 - from what I tried to check I found it should be the latest version) and using the new parse.h which you gave me. Now I got the following errors:
# make LANGUAGES=pascal CC=/usr/local/bin/gcc
cd p; make "AR_FLAGS=rc" "AR_FOR_TARGET=/usr/local/sparc-sun-solaris2.5.1/bin/ar " "BISON=bison" "BISONFLAGS=" "CC=/usr/local/bin/gcc" "CFLAGS=-g" "GCC_FOR_TARGE T=./xgcc -B./" "LDFLAGS=" "LEX=flex" "LEXFLAGS=" "MAKEINFO=makeinfo" "MAKEINFOFL AGS=" "RANLIB_FOR_TARGET=/usr/local/sparc-sun-solaris2.5.1/bin/ranlib" "RANLIB_T EST_FOR_TARGET=[ -f /usr/local/sparc-sun-solaris2.5.1/bin/ranlib ]" "SHELL=/bin/ sh" "exeext=" "objext=.o" "exec_prefix=/usr/local" "prefix=/usr/local" "tooldir= /usr/local/sparc-sun-solaris2.5.1" "bindir=/usr/local/bin" "libsubdir=/usr/local /lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.3" "CROSS=" "AR_FLAGS=rc" "AR_FOR_TARG ET=/usr/local/sparc-sun-solaris2.5.1/bin/ar" "BISON=bison" "BISONFLAGS=" "CFLAGS =-g" "X_CFLAGS=-DSVR4" "LDFLAGS=" "LEX=flex" "LEXFLAGS=" "MAKEINFO=makeinfo" "MA KEINFOFLAGS=" "MAYBE_TARGET_DEFAULT=" "MAYBE_USE_COLLECT2=" "RANLIB_FOR_TARGET=/ usr/local/sparc-sun-solaris2.5.1/bin/ranlib" "RANLIB_TEST_FOR_TARGET=[ -f /usr/l ocal/sparc-sun-solaris2.5.1/bin/ranlib ]" "SHELL=/bin/sh" "bindir=/usr/local/bin " "exec_prefix=/usr/local" "gxx_include_dir=/usr/local/lib/g++-include" "include dir=/usr/local/include" "libsubdir=/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1 /2.7.2.3" "prefix=/usr/local" "target_alias=" "tooldir=/usr/local/sparc-sun-sola ris2.5.1" "gpc_version=971001" "rts_version=2.8" "version=2.7.2.3" ../gpc1 make[1]: Entering directory `/usr1/local/src/GNU/SOURCE/gcc-2.7.2.3/p' /usr/local/bin/gcc -c -DIN_GCC -DGPC -DSVR4 -g -Wall \ -I. -I.. -I. -I./.. -I./../config \ `echo ./parse.c | sed 's,^./,,'` parse.y: In function `yyparse': parse.y:744: warning: implicit declaration of function `error' parse.y:748: warning: implicit declaration of function `get_main_program_name' parse.y:748: warning: assignment makes pointer from integer without a cast parse.y:752: warning: implicit declaration of function `pedwarn' parse.y:755: warning: implicit declaration of function `initialize_module' parse.y:756: `current_module' undeclared (first use this function) parse.y:756: (Each undeclared identifier is reported only once parse.y:756: for each function it appears in.) parse.y:779: warning: implicit declaration of function `associate_external_objec ts' parse.y:789: warning: implicit declaration of function `check_external_objects' parse.y:820: warning: implicit declaration of function `concat' parse.y:821: warning: assignment makes pointer from integer without a cast parse.y:823: warning: implicit declaration of function `no_parameters' parse.y:823: warning: assignment makes pointer from integer without a cast parse.y:839: warning: implicit declaration of function `init_constructor' parse.y:840: warning: implicit declaration of function `un_initialize_block' parse.y:858: warning: assignment makes pointer from integer without a cast parse.y:860: warning: assignment makes pointer from integer without a cast parse.y:884: warning: implicit declaration of function `output_real_main_program ' parse.y:912: warning: implicit declaration of function `store_executable_name' parse.y:1298: `const_id' undeclared (first use this function) parse.y:1305: warning: implicit declaration of function `handle_autoexport' parse.y:1335: warning: implicit declaration of function `declare_vars' parse.y:1487: `size_volatile' undeclared (first use this function) parse.y:1503: warning: implicit declaration of function `build_schema_type' parse.y:1503: warning: assignment makes pointer from integer without a cast parse.y:1506: `type_id' undeclared (first use this function) parse.y:1653: warning: implicit declaration of function `build_pascal_string_sch ema' parse.y:1653: warning: assignment makes pointer from integer without a cast parse.y:1706: warning: implicit declaration of function `declared_string_capacit y' parse.y:1716: warning: assignment makes pointer from integer without a cast parse.y:1851: warning: implicit declaration of function `maybe_schema_discrimina nt' parse.y:1851: warning: implicit declaration of function `string_may_be_char' parse.y:1851: warning: assignment makes pointer from integer without a cast parse.y:1852: warning: assignment makes pointer from integer without a cast parse.y:1859: warning: implicit declaration of function `build_pascal_range_type ' parse.y:1859: warning: assignment makes pointer from integer without a cast parse.y:1870: warning: assignment makes pointer from integer without a cast parse.y:1871: warning: assignment makes pointer from integer without a cast parse.y:1878: warning: implicit declaration of function `grok_packed' parse.y:1878: warning: assignment makes pointer from integer without a cast parse.y:1897: warning: implicit declaration of function `build_pascal_pointer_ty pe' parse.y:1897: warning: assignment makes pointer from integer without a cast parse.y:2007: `string_schema_proto_type' undeclared (first use this function) parse.y:2045: warning: unused variable `size' parse.y:2087: warning: assignment makes pointer from integer without a cast parse.y:2104: warning: implicit declaration of function `check_object_pointer' parse.y:2124: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:2135: warning: implicit declaration of function `build_pascal_array_type ' parse.y:2135: warning: assignment makes pointer from integer without a cast parse.y:2176: warning: implicit declaration of function `convert_type_to_range' parse.y:2176: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:2178: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:2184: warning: implicit declaration of function `build_file_type' parse.y:2184: warning: assignment makes pointer from integer without a cast parse.y:2203: warning: implicit declaration of function `build_set_type' parse.y:2203: warning: assignment makes pointer from integer without a cast parse.y:2199: warning: unused variable `range' parse.y:2211: warning: assignment makes pointer from integer without a cast parse.y:2299: warning: implicit declaration of function `p_grokfields' parse.y:2299: warning: assignment makes pointer from integer without a cast parse.y:2316: warning: implicit declaration of function `build_record_variant_pa rt' parse.y:2317: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:2425: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:2429: warning: passing arg 1 of `build_tree_list' makes pointer from int eger without a cast parse.y:2429: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:2460: warning: implicit declaration of function `store_object_name' parse.y:2461: warning: implicit declaration of function `add_vmt_field' parse.y:2462: warning: implicit declaration of function `construct_vmt' parse.y:2476: warning: implicit declaration of function `inherit' parse.y:2536: warning: implicit declaration of function `mark_virtual_method' parse.y:2536: warning: assignment makes pointer from integer without a cast parse.y:2545: warning: assignment makes pointer from integer without a cast parse.y:2564: warning: assignment makes pointer from integer without a cast parse.y:2578: warning: implicit declaration of function `get_method_name' parse.y:2579: warning: assignment makes pointer from integer without a cast parse.y:2601: warning: assignment makes pointer from integer without a cast parse.y:2665: `const_string_schema_proto_type' undeclared (first use this functi on) parse.y:2672: warning: assignment makes pointer from integer without a cast parse.y:2682: warning: passing arg 1 of `get_identifier' makes pointer from inte ger without a cast parse.y:2762: `extern_id' undeclared (first use this function) parse.y:2779: `static_id' undeclared (first use this function) parse.y:2781: `volatile_id' undeclared (first use this function) parse.y:2783: `attribute_id' undeclared (first use this function) parse.y:3102: warning: implicit declaration of function `name_exported_p' parse.y:3103: warning: implicit declaration of function `maybe_make_static' parse.y:3103: warning: assignment makes pointer from integer without a cast parse.y:3255: warning: assignment makes pointer from integer without a cast parse.y:3265: warning: passing arg 1 of `get_identifier' makes pointer from inte ger without a cast parse.y:3306: warning: passing arg 1 of `get_identifier' makes pointer from inte ger without a cast parse.y:3326: `inline_id' undeclared (first use this function) parse.y:3348: warning: assignment makes pointer from integer without a cast parse.y:3551: warning: implicit declaration of function `push_self_parameter' parse.y:3603: warning: implicit declaration of function `handle_formal_param_lis t' parse.y:3633: warning: implicit declaration of function `handle_formal_conf_arra y_param_list' parse.y:3722: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:3723: warning: assignment makes pointer from integer without a cast parse.y:3772: warning: implicit declaration of function `emit_nop' parse.y:3886: warning: implicit declaration of function `emit_line_note' parse.y:3916: warning: implicit declaration of function `warning_with_file_and_l ine' parse.y:3926: warning: passing arg 1 of `c_expand_start_case' makes pointer from integer without a cast parse.y:3952: warning: implicit declaration of function `error_with_decl' parse.y:4153: warning: implicit declaration of function `check_for_control_varia ble' parse.y:4158: warning: assignment makes pointer from integer without a cast parse.y:4163: warning: implicit declaration of function `get_unique_identifier' parse.y:4172: warning: passing arg 1 of `start_decl' makes pointer from integer without a cast parse.y:4197: warning: passing arg 1 of `start_decl' makes pointer from integer without a cast parse.y:4266: warning: implicit declaration of function `construct_set' parse.y:4266: warning: assignment makes pointer from integer without a cast parse.y:4300: warning: implicit declaration of function `make_new_variable' parse.y:4300: warning: assignment makes pointer from integer without a cast parse.y:4373: warning: implicit declaration of function `expand_computed_goto' parse.y:4393: warning: implicit declaration of function `suspend_function_calls' parse.y:4397: warning: implicit declaration of function `resume_function_calls' parse.y:4437: warning: implicit declaration of function `allow_function_calls' parse.y:4462: warning: implicit declaration of function `maybe_call_function' parse.y:4462: warning: assignment makes pointer from integer without a cast parse.y:4464: warning: implicit declaration of function `call_method' parse.y:4464: warning: assignment makes pointer from integer without a cast parse.y:4489: warning: passing arg 1 of `lookup_name' makes pointer from integer without a cast parse.y:4516: warning: passing arg 1 of `get_identifier' makes pointer from inte ger without a cast parse.y:4607: warning: assignment makes pointer from integer without a cast parse.y:4612: warning: implicit declaration of function `base_type' parse.y:4612: invalid type argument of `->' parse.y:4614: warning: assignment makes pointer from integer without a cast parse.y:4615: warning: implicit declaration of function `is_string_type' parse.y:4617: warning: implicit declaration of function `assign_string' parse.y:4645: `schema_id' undeclared (first use this function) parse.y:4699: warning: implicit declaration of function `build_rts_call' parse.y:5040: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:5044: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:5056: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:5065: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:5071: warning: passing arg 1 of `build_tree_list' makes pointer from int eger without a cast parse.y:5071: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:5076: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:5088: warning: passing arg 2 of `build_tree_list' makes pointer from int eger without a cast parse.y:5300: `string_id' undeclared (first use this function) parse.y:5360: warning: initialization makes pointer from integer without a cast parse.y:5473: warning: assignment makes pointer from integer without a cast parse.y:5475: warning: assignment makes pointer from integer without a cast parse.y:5486: warning: assignment makes pointer from integer without a cast parse.y:5501: warning: implicit declaration of function `get_standard_output' parse.y:5501: warning: assignment makes pointer from integer without a cast parse.y:5503: warning: implicit declaration of function `get_standard_input' parse.y:5503: warning: assignment makes pointer from integer without a cast parse.y:5510: warning: passing arg 1 of `get_identifier' makes pointer from inte ger without a cast parse.y:5523: warning: implicit declaration of function `is_schema_discriminant_ access' parse.y:5527: warning: assignment makes pointer from integer without a cast parse.y:5544: warning: assignment makes pointer from integer without a cast parse.y:5564: warning: implicit declaration of function `build_buffer_ref' parse.y:5564: warning: assignment makes pointer from integer without a cast parse.y:5575: `empty_arglist' undeclared (first use this function) parse.y:5575: warning: assignment makes pointer from integer without a cast parse.y:5596: warning: implicit declaration of function `build_pascal_array_ref' parse.y:5596: warning: assignment makes pointer from integer without a cast parse.y:5626: warning: assignment makes pointer from integer without a cast parse.y:5638: warning: passing arg 1 of `start_decl' makes pointer from integer without a cast parse.y:5646: warning: initialization makes pointer from integer without a cast parse.y:5662: warning: initialization makes pointer from integer without a cast parse.y:5687: warning: initialization makes pointer from integer without a cast parse.y:5697: warning: assignment makes pointer from integer without a cast parse.y:5720: warning: passing arg 1 of `get_identifier' makes pointer from inte ger without a cast parse.y:5744: warning: implicit declaration of function `build_set_constructor' parse.y:5744: warning: assignment makes pointer from integer without a cast parse.y:5773: warning: implicit declaration of function `construct_set_member' parse.y:5773: warning: assignment makes pointer from integer without a cast parse.y:5775: warning: assignment makes pointer from integer without a cast parse.y:5780: warning: assignment makes pointer from integer without a cast parse.y:5784: warning: assignment makes pointer from integer without a cast parse.y:5787: warning: assignment makes pointer from integer without a cast parse.y:5789: warning: assignment makes pointer from integer without a cast parse.y:6077: warning: implicit declaration of function `finalize_module' parse.y:6078: `NULL_MODULE' undeclared (first use this function) parse.y:6105: warning: implicit declaration of function `export_interface' parse.y:6110: warning: implicit declaration of function `module_repair_exported_ ranges' parse.y:6111: warning: implicit declaration of function `create_gpi_files' parse.y:6113: warning: implicit declaration of function `handle_pending_decls' parse.y:6134: warning: implicit declaration of function `create_gpm_file' parse.y:6161: warning: implicit declaration of function `load_gpm_file' parse.y:6235: `we_are_loading_a_gpi_file' undeclared (first use this function) parse.y:6275: warning: initialization makes pointer from integer without a cast parse.y:6277: warning: initialization makes pointer from integer without a cast parse.y:6329: warning: initialization makes pointer from integer without a cast parse.y:6331: warning: initialization makes pointer from integer without a cast parse.y:6376: warning: initialization makes pointer from integer without a cast parse.y:6378: warning: initialization makes pointer from integer without a cast parse.y:6477: warning: implicit declaration of function `module_export_range' parse.y:6477: warning: assignment makes pointer from integer without a cast parse.y:6479: warning: implicit declaration of function `module_export_clause' parse.y:6479: warning: assignment makes pointer from integer without a cast parse.y:6481: warning: assignment makes pointer from integer without a cast parse.y:6484: warning: assignment makes pointer from integer without a cast parse.y:6539: warning: implicit declaration of function `import_interface' make[1]: *** [parse.o] Error 1 make[1]: Leaving directory `/usr1/local/src/GNU/SOURCE/gcc-2.7.2.3/p' make: *** [gpc1] Error 2