How can I port a c program in unix to suselinux to cause a compilation error?

Source: Internet
Author: User
How can I port a c program in unix to suselinux to cause a compilation error? -- Linux general technology-Linux programming and kernel information. The following is a detailed description. I moved the c program under UNIX to suse linux 10 and run make. The result is an error (and garbled code is displayed). Please read it. Thank you!
Part of error err. c:
# Include
# Include
# Include
# Include
# Include
# Include
/* [2] begin */
# Include
FILE * gfp_out = stdout; the error message returned.
/* [2] end */


The result of make-f arch. mk is as follows:
[Linux:/home/eam/src/arch] make-f arch. mk
/Usr/bin/cc-c-g-I. -DARCH_DEBUG-I/home/eam/include/arch-o/home/eam/lib/err. o err. c
Err. c: 45: error: initializer element is not constant
Err. c: 48: 25: error: sys/varargs. h: No such file or directory
Err. c: In function ?? Err_set_info ??
Err. c: 147: error: invalid use of void expression
Err. c: 147: warning: second parameter ?? Va_start ?? Not last named argument
Err. c: In function ?? Err_append_info ??
Err. c: 224: error: invalid use of void expression
Err. c: 224: warning: second parameter ?? Va_start ?? Not last named argument
Err. c: At top level:
Err. c: 683: error: static declaration ?? Get_std_msg ?? Follows non-static declaration
Err. c: 312: error: previous implicit declaration ?? Get_std_msg ?? Was here
Err. c: 747: error: static declaration ?? Get_hdl_sug ?? Follows non-static declaration
Err. c: 604: error: previous implicit declaration ?? Get_hdl_sug ?? Was here
Err. c: 821: error: static declaration ?? Load_std_msg_file ?? Follows non-static declaration
Err. c: 701: error: previous implicit declaration ?? Load_std_msg_file ?? Was here
Err. c: 970: error: static declaration ?? Load_hdl_sug_file ?? Follows non-static declaration
Err. c: 765: error: previous implicit declaration ?? Load_hdl_sug_file ?? Was here
Make: *** [/home/eam/lib/err. o] Error 1
[Linux:/home/eam/src/arch]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.