Makefile Localization Process and Errors
This snippet displays the process of localizing a project using a Makefile. It shows the output from running 'make localized', including warnings and errors related to missing files and prerequisites. The commands also suggest steps to resolve issues with configuration files.elkaintmoose
plain_text
a year ago
7.7 kB
11
Indexable
echo "Localizing for your locale..."
Localizing for your locale...
(cd po; make localized)
make[1]: Entering directory '/home/pennboy/istari/po'
Makefile:8: warning: ignoring prerequisites on suffix rule definition
make[1]: *** No rule to make target 'C.UTF-8.po', needed by 'localized'. Stop.
make[1]: Leaving directory '/home/pennboy/istari/po'
make: [Makefile:84: localized] Error 2 (ignored)
Please use 'make update' to update your options.h file from options.h.dist
You must cp options.h.dist to options.h and edit it.
exit 1
make: *** [Makefile:46: options.h] Error 1
pennboy@fweb:~/istari$ cp options.h.dist options.h
pennboy@fweb:~/istari$ make install
echo "Localizing for your locale..."
Localizing for your locale...
(cd po; make localized)
make[1]: Entering directory '/home/pennboy/istari/po'
Makefile:8: warning: ignoring prerequisites on suffix rule definition
make[1]: *** No rule to make target 'C.UTF-8.po', needed by 'localized'. Stop.
make[1]: Leaving directory '/home/pennboy/istari/po'
make: [Makefile:84: localized] Error 2 (ignored)
(cd utils; sh mkcmds.sh commands)
Rebuilding command prototype file
................................................................................................................................................
(cd utils; sh mkcmds.sh functions)
Rebuilding function prototype file
.......................................................................................................................................................................................................................................................................................................................................................
(cd utils; sh mkcmds.sh switches)
Rebuilding command switch file
.....................................................................................................................................................
*** Creating game/mush.cnf from game/mushcnf.dst...
Making all in src.
(cd src; make all "CC=cc" "CCFLAGS=-g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include " \
"LDFLAGS=-L/usr/local/lib" "CLIBS=-lssl -lcrypto -lmysqlclient" "MAKE=make" \
"MAKEFLAGS=")
make[1]: Entering directory '/home/pennboy/istari/src'
rm -f ../hdrs/buildinf.h
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o access.o access.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o atr_tab.o atr_tab.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o attrib.o attrib.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o boolexp.o boolexp.c
if [ ! -f ../hdrs/patches.h ]; then \
(cd ../utils; sh mkcmds.sh patches); \
fi
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o bsd.o bsd.c
In file included from bsd.c:96:
bsd.c: In function ‘do_doing’:
bsd.c:3921:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
3921 | T("Doing set. %d characters lost."),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../hdrs/externs.h:19:24: note: in definition of macro ‘T’
19 | #define T(str) gettext(str)
| ^~~
bsd.c:3921:34: note: format string is defined here
3921 | T("Doing set. %d characters lost."),
| ~^
| |
| int
| %ld
In file included from bsd.c:96:
bsd.c: In function ‘do_poll’:
bsd.c:3954:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
3954 | T("Poll set. %d characters lost."),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../hdrs/externs.h:19:24: note: in definition of macro ‘T’
19 | #define T(str) gettext(str)
| ^~~
bsd.c:3954:33: note: format string is defined here
3954 | T("Poll set. %d characters lost."),
| ~^
| |
| int
| %ld
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o bufferq.o bufferq.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o chunk.o chunk.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o cmdlocal.o cmdlocal.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o cmds.o cmds.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o command.o command.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o compress.o compress.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o conf.o conf.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o cque.o cque.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o create.o create.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o db.o db.c
db.c: In function ‘db_paranoid_write_object’:
db.c:765:31: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
765 | sprintf(tbuf1, "%s%d", name, count);
| ^
db.c:765:11: note: ‘sprintf’ output between 2 and 8203 bytes into a destination of size 8192
765 | sprintf(tbuf1, "%s%d", name, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o destroy.o destroy.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o extchat.o extchat.c
extchat.c: In function ‘list_partial_matches’:
extchat.c:957:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
957 | ? (int) (void *) onchannel(player, p)
| ^
extchat.c: In function ‘channel_description’:
extchat.c:2793:24: warning: ‘%s’ directive writing up to 30 bytes into a region of size between 0 and 8191 [-Wformat-overflow=]
2793 | sprintf(buf, "%s %s", buf, ChanName(c->chan));
| ^~
extchat.c:2793:7: note: ‘sprintf’ output between 2 and 8223 bytes into a destination of size 8192
2793 | sprintf(buf, "%s %s", buf, ChanName(c->chan));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o extmail.o extmail.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o filecopy.o filecopy.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o flaglocal.o flaglocal.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o flags.o flags.c
cc -g -I.. -I../hdrs -fpcc-struct-return -I/usr/local/include -c -o funcrypt.o funcrypt.c
funcrypt.c: In function ‘safe_sha0’:
funcrypt.c:118:3: warning: implicit declaration of function ‘SHA’; did you mean ‘SHA1’? [-Wimplicit-function-declaration]
118 | SHA(text, len, hash);
| ^~~
| SHA1
funcrypt.c: In function ‘fun_digest’:
funcrypt.c:162:14: error: storage size of ‘ctx’ isn’t known
162 | EVP_MD_CTX ctx;
| ^~~
make[1]: *** [<builtin>: funcrypt.o] Error 1
make[1]: Leaving directory '/home/pennboy/istari/src'
make: *** [Makefile:33: all] Error 2Editor is loading...
Leave a Comment