resurrecting this thread!
I'm getting some errors, not sure if this is something to do with the LAMP stack I've got on digital ocean.
root@chimemux:/tinymux/mux# make -j2
make all-am
make[1]: Entering directory '/tinymux/mux'
CXX game.o
CXX levels.o
game.cpp: In function ‘void init_sql()’:
game.cpp:2423:6: error: ‘my_bool’ was not declared in this scope
2423 | my_bool reconnect = 1;
| ^~~~~~~
game.cpp:2424:71: error: ‘reconnect’ was not declared in this scope; did you mean ‘connect’?
2424 | mysql_options(mush_database, MYSQL_OPT_RECONNECT, (const char *)&reconnect);
| ^~~~~~~~~
| connect
game.cpp: In function ‘void do_shutdown(dbref, dbref, dbref, int, int, UTF8*, const UTF8**, int)’:
game.cpp:1278:18: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
1278 | (void) mux_write(fd, message, static_cast<unsigned int>(strlen((char *)message)));
game.cpp:1279:18: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
1279 | (void) mux_write(fd, ENDLINE, sizeof(ENDLINE)-1);
make[1]: *** [Makefile:1567: game.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tinymux/mux'
make: *** [Makefile:1023: all] Error 2
and ...
root@chimemux:/tinymux/mux# make install
make install-am
make[1]: Entering directory '/tinymux/mux'
CXX game.o
game.cpp: In function ‘void init_sql()’:
game.cpp:2423:6: error: ‘my_bool’ was not declared in this scope
2423 | my_bool reconnect = 1;
| ^~~~~~~
game.cpp:2424:71: error: ‘reconnect’ was not declared in this scope; did you mean ‘connect’?
2424 | mysql_options(mush_database, MYSQL_OPT_RECONNECT, (const char *)&reconnect);
| ^~~~~~~~~
| connect
game.cpp: In function ‘void do_shutdown(dbref, dbref, dbref, int, int, UTF8*, const UTF8**, int)’:
game.cpp:1278:18: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
1278 | (void) mux_write(fd, message, static_cast<unsigned int>(strlen((char *)message)));
game.cpp:1279:18: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
1279 | (void) mux_write(fd, ENDLINE, sizeof(ENDLINE)-1);
make[1]: *** [Makefile:1567: game.o] Error 1
make[1]: Leaving directory '/tinymux/mux'
make: *** [Makefile:2144: install] Error 2```
Any suggestions? The ./configure --prefix=$home/game worked just fine.
Edit: I was able to get past this by changing the my_bool line to just bool
and reconnect
to connect
. However, it still hasn't created the /game folder.