Skip to content

Instantly share code, notes, and snippets.

jonm

Block or report user

Report or block jonm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View make-check.txt
$ make check
Making check in src
/Applications/Xcode.app/Contents/Developer/usr/bin/make tests
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCAL_STATE_DIR=\"/usr/local/var\" -g -O2 -MT test.act.wizard.o -MD -MP -MF .deps/test.act.wizard.Tpo -c -o test.act.wizard.o test.act.wizard.c
mv -f .deps/test.act.wizard.Tpo .deps/test.act.wizard.Po
gcc -DLOCAL_STATE_DIR=\"/usr/local/var\" -g -O2 -o tests comm.o act.comm.o act.info.o act.move.o act.obj1.o act.obj2.o act.off.o act.other.o act.social.o act.wizard.o handler.o db.o interpreter.o utility.o spec_assign.o shop.o limits.o mobact.o fight.o modify.o weather.o spells1.o spells2.o spell_parser.o reception.o constants.o spec_procs.o signals.o board.o magic.o magic2.o skills.o Opinion.o Trap.o magicutils.o multiclass.o hash.o Sound.o Heap.o spec_procs2.o magic3.o security.o spec_procs3.o create.o bsd.o parser.o intrinsics.o test.act.wizard.o -lcriterion
/Applications/Xcode.app/Contents/Developer/usr/bin/make check-TESTS
PASS: tests
=========================================
@jonm
jonm / autotools-make-1.txt
Created Nov 16, 2015
first attempt at `make` with autotools-generated `Makefile`
View autotools-make-1.txt
[~/src/SillyMUD]$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT comm.o -MD -MP -MF .deps/comm.Tpo -c -o comm.o comm.c
mv -f .deps/comm.Tpo .deps/comm.Po
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT act.comm.o -MD -MP -MF .deps/act.comm.Tpo -c -o act.comm.o act.comm.c
mv -f .deps/act.comm.Tpo .deps/act.comm.Po
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT act.info.o -MD -MP -MF .deps/act.info.Tpo -c -o act.info.o act.info.c
act.info.c:3340:23: error: no member named 'gname' in 'struct char_special_data'
if (person->specials.gname && CAN_SEE(ch, person)) {
@jonm
jonm / configure.txt
Created Nov 16, 2015
first run of `./configure`
View configure.txt
[~/src/SillyMUD]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
@jonm
jonm / autoreconf-install-2.txt
Created Nov 16, 2015
second run of `autoreconf --install`
View autoreconf-install-2.txt
[~/src/SillyMUD]$ autoreconf --install
configure.ac:3: installing './compile'
configure.ac:2: installing './install-sh'
configure.ac:2: installing './missing'
Makefile.am: installing './INSTALL'
Makefile.am: error: required file './NEWS' not found
Makefile.am: error: required file './README' not found
Makefile.am: error: required file './AUTHORS' not found
Makefile.am: error: required file './ChangeLog' not found
Makefile.am: installing './COPYING' using GNU General Public License v3 file
@jonm
jonm / src-Makefile.am
Created Nov 16, 2015
initial `Makefile.am` for src/ directory
View src-Makefile.am
bin_PROGRAMS = dmserver
dmserver_SOURCES = comm.c act.comm.c act.info.c act.move.c act.obj1.c \
act.obj2.c act.off.c act.other.c act.social.c act.wizard.c handler.c \
db.c interpreter.c utility.c spec_assign.c shop.c limits.c mobact.c \
fight.c modify.c weather.c spells1.c spells2.c spell_parser.c \
reception.c constants.c spec_procs.c signals.c board.c magic.c \
magic2.c skills.c Opinion.c Trap.c magicutils.c multiclass.c hash.c \
Sound.c Heap.c spec_procs2.c magic3.c security.c spec_procs3.c \
create.c bsd.c parser.c intrinsics.c main.c
@jonm
jonm / autoreconf-install-1.txt
Created Nov 16, 2015
first attempt at `autoreconf --install`
View autoreconf-install-1.txt
[~/src/SillyMUD]$ autoreconf --install
configure.ac:2: error: option '-g' not recognized
configure.ac:2: error: option '-DIMPL_SECURITY' not recognized
configure.ac:2: error: option '-DNEW_RENT' not recognized
configure.ac:2: error: option '-DLEVEL_LOSS' not recognized
configure.ac:2: error: option '-DNEWEXP' not recognized
configure.ac:2: error: option '-DGROUP_NAMES' not recognized
autoreconf: automake failed with exit status: 1
@jonm
jonm / configure.ac
Last active Nov 16, 2015
first attempt at configure.ac for src/ directory
View configure.ac
AC_INIT([dmserver], [0.1.0], [foo@example.com])
AM_INIT_AUTOMAKE([-g -Werror -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES])
AC_PROG_CC
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT
@jonm
jonm / Makefile.am
Created Nov 15, 2015
top-level `Makefile.am`
View Makefile.am
SUBDIRS = src
View struct-descriptor-data.h
struct descriptor_data
{
int descriptor; /* file descriptor for socket */
char host[50]; /* hostname */
char pwd[12]; /* password */
int pos; /* position in player-file */
int connected; /* mode of 'connectedness' */
int wait; /* wait for how many loops */
char *showstr_head; /* for paging through texts */
char *showstr_point; /* - */
View do-users.c
void do_users(struct char_data *ch, char *argument, int cmd)
{
char buf[MAX_STRING_LENGTH], line[200], buf2[255];
extern const char *connected_types[];
struct descriptor_data *d;
strcpy(buf, "Connections:\n\r------------\n\r");
for (d = descriptor_list; d; d = d->next){
You can’t perform that action at this time.