Ubuntu Linux下,关于make安装软件问题

Ubuntu Linux下,关于make安装软件问题

Ubuntu Linux下,关于make安装软件问题,make出错,希望大家能帮着解决~~!
dashuai@dashuai-laptop:~/桌面/glib-1.2.10$ make
make  all-recursive
make[1]: Entering directory `/home/dashuai/桌面/glib-1.2.10'
Making all in .
make[2]: Entering directory `/home/dashuai/桌面/glib-1.2.10'
CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
creating glibconfig.h
glibconfig.h is unchanged
echo timestamp > stamp-gc-h
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -D_REENTRANT -c gdate.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gdate.c  -fPIC -DPIC -o .libs/gdate.lo
gdate.c: In function 'g_date_fill_parse_tokens':
gdate.c:463: warning: pointer targets in assignment differ in signedness
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gdate.c -o gdate.o >/dev/null 2>&1
mv -f .libs/gdate.lo gdate.lo
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -D_REENTRANT -c gerror.c
rm -f .libs/gerror.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gerror.c  -fPIC -DPIC -o .libs/gerror.lo
gerror.c: In function 'g_on_error_query':
gerror.c:116: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
gerror.c: In function 'stack_trace':
gerror.c:218: warning: ignoring return value of 'dup', declared with attribute warn_unused_result
gerror.c:219: warning: ignoring return value of 'dup', declared with attribute warn_unused_result
gerror.c:220: warning: ignoring return value of 'dup', declared with attribute warn_unused_result
gerror.c:235: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gerror.c:236: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gerror.c:237: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gerror.c -o gerror.o >/dev/null 2>&1
mv -f .libs/gerror.lo gerror.lo
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -D_REENTRANT -c giochannel.c
rm -f .libs/giochannel.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c giochannel.c  -fPIC -DPIC -o .libs/giochannel.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c giochannel.c -o giochannel.o >/dev/null 2>&1
mv -f .libs/giochannel.lo giochannel.lo
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -D_REENTRANT -c gmain.c
rm -f .libs/gmain.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gmain.c  -fPIC -DPIC -o .libs/gmain.lo
gmain.c: In function 'g_main_poll':
gmain.c:1079: warning: ignoring return value of 'read', declared with attribute warn_unused_result
gmain.c: In function 'g_main_wakeup':
gmain.c:1228: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gmain.c -o gmain.o >/dev/null 2>&1
mv -f .libs/gmain.lo gmain.lo
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -D_REENTRANT -c gmem.c
rm -f .libs/gmem.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gmem.c  -fPIC -DPIC -o .libs/gmem.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gmem.c -o gmem.o >/dev/null 2>&1
mv -f .libs/gmem.lo gmem.lo
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -D_REENTRANT -c gmessages.c
rm -f .libs/gmessages.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gmessages.c  -fPIC -DPIC -o .libs/gmessages.lo
gmessages.c: In function 'g_log_default_handler':
gmessages.c:464: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gmessages.c:465: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gmessages.c:466: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gmessages.c:469: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gmessages.c:471: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gmessages.c:473: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gmessages.c:474: warning: ignoring return value of 'write', declared with attribute warn_unused_result
gmessages.c:476: warning: ignoring return value of 'write', declared with attribute
gmessages.c:553: warning: ignoring return value of 'write', declared with attribute
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gmessages.c -o gmessages.o >/dev/null 2>&1
mv -f .libs/gmessages.lo gmessages.lo
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -D_REENTRANT -c gscanner.c
rm -f .libs/gscanner.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gscanner.c  -fPIC -DPIC -o .libs/gscanner.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gscanner.c -o gscanner.o >/dev/null 2>&1
mv -f .libs/gscanner.lo gscanner.lo
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -D_REENTRANT -c gstrfuncs.c
rm -f .libs/gstrfuncs.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gstrfuncs.c  -fPIC -DPIC -o .libs/gstrfuncs.lo
gstrfuncs.c: In function 'g_printf_string_upper_bound':
gstrfuncs.c:870: error: expected ')' before string constant
gstrfuncs.c:1037: error: expected ')' before string constant
gstrfuncs.c:1080: error: expected ')' before string constant
gstrfuncs.c:1111: error: expected ')' before string constant
gstrfuncs.c: In function 'g_strdown':
gstrfuncs.c:1139: warning: pointer targets in assignment differ in signedness
gstrfuncs.c: In function 'g_strup':
gstrfuncs.c:1155: warning: pointer targets in assignment differ in signedness
gstrfuncs.c: In function 'g_strchug':
gstrfuncs.c:1314: warning: pointer targets in assignment differ in signedness
gstrfuncs.c:1317: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
make[2]: *** [gstrfuncs.lo] Error 1
make[2]: Leaving directory `/home/dashuai/桌面/glib-1.2.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dashuai/桌面/glib-1.2.10'
make: *** [all-recursive-am] Error 2
dashuai@dashuai-laptop:~/桌面/glib-1.2.10$ sudo make
[sudo] password for dashuai:
make  all-recursive
make[1]: Entering directory `/home/dashuai/文档/glib-1.2.10'
Making all in .
make[2]: Entering directory `/home/dashuai/文档/glib-1.2.10'
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib     -g -O2 -Wall  -D_REENTRANT -c gstrfuncs.c
rm -f .libs/gstrfuncs.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gstrfuncs.c  -fPIC -DPIC -o .libs/gstrfuncs.lo
gstrfuncs.c: In function 'g_printf_string_upper_bound':
gstrfuncs.c:870: error: expected ')' before string constant
gstrfuncs.c:1037: error: expected ')' before string constant
gstrfuncs.c:1080: error: expected ')' before string constant
gstrfuncs.c:1111: error: expected ')' before string constant
gstrfuncs.c: In function 'g_strdown':
gstrfuncs.c:1139: warning: pointer targets in assignment differ in signedness
gstrfuncs.c: In function 'g_strup':
gstrfuncs.c:1155: warning: pointer targets in assignment differ in signedness
gstrfuncs.c: In function 'g_strchug':
gstrfuncs.c:1314: warning: pointer targets in assignment differ in signedness
gstrfuncs.c:1317: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
make[2]: *** [gstrfuncs.lo] Error 1
make[2]: Leaving directory `/home/dashuai/文档/glib-1.2.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dashuai/文档/glib-1.2.10'
make: *** [all-recursive-am] Error 2


我的解压到桌面,然后进入目录make的,但是就是报错,而且这两个错很郁闷,make[2]: *** [gstrfuncs.lo] Error 1
make[2]: Leaving directory `/home/dashuai/文档/glib-1.2.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dashuai/文档/glib-1.2.10'
make: *** [all-recursive-am] Error 2

我在网上找了半天没找到好的解决方法``大家看看怎么回事``
gcc 太新了?
我记得 gcc 4 和 3.4 开始加强了语法检查,老代码编译不通过的遍地都是。