- UID
- 5832
- 精华
- 积分
- 246
- 威望
- 点
- 宅币
- 个
- 贡献
- 次
- 宅之契约
- 份
- 最后登录
- 1970-1-1
- 在线时间
- 小时
|
发表于 2020-4-30 20:19:50
|
显示全部楼层
本帖最后由 chaw899 于 2020-4-30 20:24 编辑
Administrator@USER-20151226SM ~
$ cd /i/chd
Administrator@USER-20151226SM /i/chd
$ cd gawk-4.1.3
Administrator@USER-20151226SM /i/chd/gawk-4.1.3
$ make
make 'CFLAGS=-g -O2 -DNDEBUG' 'LDFLAGS=' all-recursive
make[1]: Entering directory `/i/chd/gawk-4.1.3'
Making all in .
make[2]: Entering directory `/i/chd/gawk-4.1.3'
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT array.o -MD -MP -MF .deps/array.Tpo -c -o array.
o array.c
mv -f .deps/array.Tpo .deps/array.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT awkgram.o -MD -MP -MF .deps/awkgram.Tpo -c -o aw
kgram.o awkgram.c
mv -f .deps/awkgram.Tpo .deps/awkgram.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT builtin.o -MD -MP -MF .deps/builtin.Tpo -c -o bu
iltin.o builtin.c
mv -f .deps/builtin.Tpo .deps/builtin.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT cint_array.o -MD -MP -MF .deps/cint_array.Tpo -c
-o cint_array.o cint_array.c
mv -f .deps/cint_array.Tpo .deps/cint_array.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT command.o -MD -MP -MF .deps/command.Tpo -c -o co
mmand.o command.c
mv -f .deps/command.Tpo .deps/command.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.
o debug.c
debug.c: In function 'restart':
debug.c:2905:2: warning: passing argument 2 of 'execvp' from incompatible pointe
r type [enabled by default]
execvp(d_argv[0], d_argv);
^
In file included from c:\mingw\include\unistd.h:13:0,
from awk.h:169,
from debug.c:26:
c:\mingw\include\process.h:120:42: note: expected 'const char * const*' but argu
ment is of type 'char **'
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW execvp (const char*, const char* const
*);
^
mv -f .deps/debug.Tpo .deps/debug.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT dfa.o -MD -MP -MF .deps/dfa.Tpo -c -o dfa.o dfa.
c
mv -f .deps/dfa.Tpo .deps/dfa.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT eval.o -MD -MP -MF .deps/eval.Tpo -c -o eval.o e
val.c
mv -f .deps/eval.Tpo .deps/eval.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT ext.o -MD -MP -MF .deps/ext.Tpo -c -o ext.o ext.
c
mv -f .deps/ext.Tpo .deps/ext.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT field.o -MD -MP -MF .deps/field.Tpo -c -o field.
o field.c
mv -f .deps/field.Tpo .deps/field.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT floatcomp.o -MD -MP -MF .deps/floatcomp.Tpo -c -
o floatcomp.o floatcomp.c
mv -f .deps/floatcomp.Tpo .deps/floatcomp.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT gawkapi.o -MD -MP -MF .deps/gawkapi.Tpo -c -o ga
wkapi.o gawkapi.c
mv -f .deps/gawkapi.Tpo .deps/gawkapi.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT gawkmisc.o -MD -MP -MF .deps/gawkmisc.Tpo -c -o
gawkmisc.o gawkmisc.c
mv -f .deps/gawkmisc.Tpo .deps/gawkmisc.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o geto
pt.o getopt.c
mv -f .deps/getopt.Tpo .deps/getopt.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT getopt1.o -MD -MP -MF .deps/getopt1.Tpo -c -o ge
topt1.o getopt1.c
mv -f .deps/getopt1.Tpo .deps/getopt1.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT int_array.o -MD -MP -MF .deps/int_array.Tpo -c -
o int_array.o int_array.c
mv -f .deps/int_array.Tpo .deps/int_array.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT io.o -MD -MP -MF .deps/io.Tpo -c -o io.o io.c
io.c: In function 'two_way_open':
io.c:2077:13: warning: assignment makes pointer from integer without a cast [ena
bled by default]
qcmd = quote_cmd(str), NULL);
^
io.c: In function 'gawk_popen':
io.c:2304:13: warning: assignment makes pointer from integer without a cast [ena
bled by default]
qcmd = quote_cmd(cmd), NULL);
^
mv -f .deps/io.Tpo .deps/io.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o m
ain.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT mpfr.o -MD -MP -MF .deps/mpfr.Tpo -c -o mpfr.o m
pfr.c
mv -f .deps/mpfr.Tpo .deps/mpfr.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT msg.o -MD -MP -MF .deps/msg.Tpo -c -o msg.o msg.
c
mv -f .deps/msg.Tpo .deps/msg.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT node.o -MD -MP -MF .deps/node.Tpo -c -o node.o n
ode.c
mv -f .deps/node.Tpo .deps/node.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT profile.o -MD -MP -MF .deps/profile.Tpo -c -o pr
ofile.o profile.c
mv -f .deps/profile.Tpo .deps/profile.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT random.o -MD -MP -MF .deps/random.Tpo -c -o rand
om.o random.c
mv -f .deps/random.Tpo .deps/random.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT re.o -MD -MP -MF .deps/re.Tpo -c -o re.o re.c
mv -f .deps/re.Tpo .deps/re.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT regex.o -MD -MP -MF .deps/regex.Tpo -c -o regex.
o regex.c
mv -f .deps/regex.Tpo .deps/regex.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT replace.o -MD -MP -MF .deps/replace.Tpo -c -o re
place.o replace.c
mv -f .deps/replace.Tpo .deps/replace.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT str_array.o -MD -MP -MF .deps/str_array.Tpo -c -
o str_array.o str_array.c
mv -f .deps/str_array.Tpo .deps/str_array.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT symbol.o -MD -MP -MF .deps/symbol.Tpo -c -o symb
ol.o symbol.c
mv -f .deps/symbol.Tpo .deps/symbol.Po
gcc -DDEFPATH='".:/usr/local/share/awk"' -DDEFLIBPATH="\"/usr/local/lib/gawk\""
-DSHLIBEXT="\"dll"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/share/local
e"' -I. -g -O2 -DNDEBUG -MT version.o -MD -MP -MF .deps/version.Tpo -c -o ve
rsion.o version.c
mv -f .deps/version.Tpo .deps/version.Po
gcc -g -O2 -DNDEBUG -o gawk.exe array.o awkgram.o builtin.o cint_array.o comm
and.o debug.o dfa.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o getopt
.o getopt1.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o random.o re.o
regex.o replace.o str_array.o symbol.o version.o
replace.o: In function `setenv':
i:\chd\gawk-4.1.3/missing_d/setenv.c:78: multiple definition of `setenv'
gawkmisc.o:i:\chd\gawk-4.1.3/pc/gawkmisc.pc:559: first defined here
replace.o: In function `unsetenv':
i:\chd\gawk-4.1.3/missing_d/setenv.c:131: multiple definition of `unsetenv'
gawkmisc.o:i:\chd\gawk-4.1.3/pc/gawkmisc.pc:580: first defined here
io.o: In function `read_with_timeout':
i:\chd\gawk-4.1.3/io.c:3911: undefined reference to `valid_socket'
i:\chd\gawk-4.1.3/io.c:3931: undefined reference to `select@20'
i:\chd\gawk-4.1.3/io.c:3934: undefined reference to `__WSAFDIsSet@8'
io.o: In function `gawk_fclose':
i:\chd\gawk-4.1.3/io.c:3986: undefined reference to `valid_socket'
i:\chd\gawk-4.1.3/io.c:3992: undefined reference to `closesocket@4'
io.o: In function `gawk_popen':
i:\chd\gawk-4.1.3/io.c:2304: undefined reference to `quote_cmd'
io.o: In function `two_way_open':
i:\chd\gawk-4.1.3/io.c:2077: undefined reference to `quote_cmd'
i:\chd\gawk-4.1.3/io.c:2168: undefined reference to `kill'
main.o: In function `load_procinfo':
i:\chd\gawk-4.1.3/main.c:948: undefined reference to `getpgrp'
i:\chd\gawk-4.1.3/main.c:960: undefined reference to `getppid'
i:\chd\gawk-4.1.3/main.c:963: undefined reference to `getuid'
i:\chd\gawk-4.1.3/main.c:966: undefined reference to `geteuid'
i:\chd\gawk-4.1.3/main.c:969: undefined reference to `getgid'
i:\chd\gawk-4.1.3/main.c:972: undefined reference to `getegid'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [gawk.exe] Error 1
make[2]: Leaving directory `/i/chd/gawk-4.1.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/i/chd/gawk-4.1.3'
make: *** [all] Error 2
Administrator@USER-20151226SM /i/chd/gawk-4.1.3
我也遇到类似的问题,上面是报错信息,求解决方法。
=================================================
下面是遇到的2个问题,重复定义,缺少链接库。
目标文件,我已经全部编译出来了。
i:\chd\gawk-4.1.3/missing_d/setenv.c:78: multiple definition of `setenv'
gawkmisc.o:i:\chd\gawk-4.1.3/pc/gawkmisc.pc:559: first defined here
replace.o: In function `unsetenv':
|
|