Find the answer to your Linux question:
Results 1 to 3 of 3
Hi! I'm trying to compile the game XBill from source for learning I guess, but I keep getting this: ./configure outputs: Code: loading cache ./config.cache checking for bison... (cached) bison ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2014
    Posts
    1

    Building XBill


    Hi! I'm trying to compile the game XBill from source for learning I guess, but I keep getting this:

    ./configure outputs:
    Code:
    loading cache ./config.cache
    checking for bison... (cached) bison -y
    checking for gcc... (cached) gcc
    checking whether the C compiler (gcc  ) works... yes
    checking whether the C compiler (gcc  ) is a cross-compiler... no
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking how to run the C preprocessor... (cached) gcc -E
    checking for flex... (cached) flex
    checking for yywrap in -lfl... (cached) no
    checking for a BSD compatible install... (cached) /usr/bin/install -c
    checking whether ln -s works... (cached) yes
    checking whether make sets ${MAKE}... (cached) yes
    checking for ranlib... (cached) ranlib
    checking for c++... (cached) c++
    checking whether the C++ compiler (c++  ) works... yes
    checking whether the C++ compiler (c++  ) is a cross-compiler... no
    checking whether we are using GNU C++... (cached) yes
    checking whether c++ accepts -g... (cached) yes
    checking for X... (cached) libraries , headers
    checking for dnet_ntoa in -ldnet... (cached) no
    checking for dnet_ntoa in -ldnet_stub... (cached) no
    checking for gethostbyname... (cached) yes
    checking for connect... (cached) yes
    checking for remove... (cached) yes
    checking for shmat... (cached) yes
    checking for IceConnectionNumber in -lICE... (cached) yes
    checking for ANSI C header files... (cached) yes
    checking for unistd.h... (cached) yes
    checking for working const... (cached) yes
    checking for XmGetPixmap in -lXm... (cached) no
    checking for XawInitializeWidgetSet in -lXaw3d... (cached) yes
    checking for gtk-config... (cached) no
    creating ./config.status
    creating Makefile
    creating config.h
    config.h is unchanged
    And then when i try to make:
    Code:
    gcc -g -O2  -I. -c Bill.c -o Bill.o
    gcc -g -O2  -I. -c Bucket.c -o Bucket.o
    gcc -g -O2  -I. -c Cable.c -o Cable.o
    gcc -g -O2  -I. -c Computer.c -o Computer.o
    gcc -g -O2  -I. -c Game.c -o Game.o
    gcc -g -O2  -I. -c Horde.c -o Horde.o
    gcc -g -O2  -I. -c Network.c -o Network.o
    gcc -g -O2  -I. -c OS.c -o OS.o
    gcc -g -O2  -I. -DSCOREFILE=\"/usr/local/var/xbill/scores\" -c Scorelist.c -o Scorelist.o
    gcc -g -O2  -I. -c Spark.c -o Spark.o
    gcc -g -O2  -I. -c UI.c -o UI.o
    gcc -g -O2  -I. -c util.c -o util.o
    gcc -g -O2  -I.  -c x11-athena.c -o x11-athena.o
    x11-athena.c: In function ‘popup’:
    x11-athena.c:34:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      x11_athena_popup_dialog((int)client_data);
    x11-athena.c: In function ‘new_menu_item’:
    x11-athena.c:42:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      XtAddCallback(menu_item, XtNcallback, popup, (void *) dialog);
                                                   ^
    gcc -g -O2  -I.  -DIMAGES=\"/usr/local/share/xbill\" -c x11.c -o x11.o
    gcc -g -O2  -o xbill Bill.o Bucket.o Cable.o Computer.o Game.o Horde.o Network.o OS.o Scorelist.o Spark.o UI.o util.o  x11-athena.o x11.o -lXaw3d -lXmu -lXt -lX11  -lSM -lICE
    x11.o: In function `x11_load_picture':
    /home/yves/Documents/XLennart/XLennart-0.0/x11.c:205: undefined reference to `XpmReadFileToPixmap'
    /home/yves/Documents/XLennart/XLennart-0.0/x11.c:205: undefined reference to `XpmReadFileToPixmap'
    collect2: error: ld returned 1 exit status
    Makefile:63: recipe for target 'xbill' failed
    make: *** [xbill] Error 1
    Any hint is very much appreciated!

  2. #2
    Linux Newbie nihili's Avatar
    Join Date
    Dec 2013
    Posts
    177
    tl;dr

    xbill is pretty ancient - better learn compiling from source with something more up-to-date.

  3. #3
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,298
    Xaw (Athena) is still maintained but not used much anymore. Since nihili says xbill is ancient that may be why it's used with this.

    In any event XpmReadFileToPixmap is part of libxpm - on ubuntu variants the package is libxpm-dev. You'd probably need to add it to your ld args (-lxpm).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •