Skip to content

Unable to change dir to /usr/lib/conquer [gpl-release] #13

@MikZyth

Description

@MikZyth

Hello.
By default, when not setting $PREFIX, make new_game will exit with the following error:

~/src/conquer/gpl-release$ make new_game

=== Linking administrative executable...
rm -f cexecuteA.c ioA.c miscA.c navyA.c magicA.c dataA.c tradeA.c 2>/dev/null
/usr/bin/gcc -g -fno-strict-aliasing -fwrapv -Wall -Wextra -O2 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -DDEFAULTDIR=\"/usr/lib/conquer\" -DEXEDIR=\"/usr/bin\" -DVERSION=\"4\" -DPATCHLEVEL=\"12\" -DLOGIN=\"vmacc\" -o conqrun combat.o cexecuteA.o ioA.o admin.o makeworl.o navyA.o spew.o newlogin.o update.o magicA.o npc.o miscA.o randeven.o dataA.o tradeA.o check.o -lncurses -ltinfo  -lcrypt
strip conqrun
=== Linking game executable...
rm -f cexecuteG.c ioG.c miscG.c navyG.c magicG.c dataG.c tradeG.c 2>/dev/null
/usr/bin/gcc -g -fno-strict-aliasing -fwrapv -Wall -Wextra -O2 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -o conquer commands.o cexecuteG.o forms.o ioG.o main.o move.o navyG.o magicG.o miscG.o reports.o dataG.o display.o extcmds.o tradeG.o check.o -lncurses -ltinfo  -lcrypt
strip conquer
/usr/bin/gcc -g -fno-strict-aliasing -fwrapv -Wall -Wextra -O2 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -o conqsort sort.c
strip conqsort
/usr/bin/gcc -g -fno-strict-aliasing -fwrapv -Wall -Wextra -O2 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -DPSFILE=\"/home/vmacc/conquer/bin/psmap.ps\" -DLETTER psmap.c -o conqps
In file included from psmap.c:30:
psmap.h:3:1: warning: "/*" within comment [-Wcomment]
    3 | /*
psmap.c: In function ‘main’:
psmap.c:467:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
  467 |     for (c = 0; c < strlen(firstline); c++) {
      |                   ^
strip conqps
✓ Build complete for Linux (x86_64)
Run 'make new_game' to set up a new game world
Run 'make install' to install existing game
Setting up new game world...
Creating world...
unable to change dir to /usr/lib/conquer
make: *** [Makefile:320: new_game] Error 1

Perhaps, because /usr/lib/conquer is hardcoded in Makefile.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions