Build fails if INL=1

Bug #429587 reported by Bob Tanner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netrek Server
Confirmed
Critical
collinp
Nominated for Upstream by r12056

Bug Description

$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/tmp/netrek/ -DINL:BOOLEAN=True ..
<snip>
Linking C executable basep
cd /Users/tanner/projects/netrek/netrek-server/Vanilla/build/robots && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/basep.dir/link.txt --verbose=1
/usr/bin/gcc -g -flat-namespace;-Wl,-search_paths_first -headerpad_max_install_names -fPIC CMakeFiles/basep.dir/basep.o CMakeFiles/basep.dir/commands_basep.o CMakeFiles/basep.dir/roboshar.o -o basep ../ntserv/libnetrek.a /usr/lib/libm.dylib
Undefined symbols:
  "_do_uncaptain", referenced from:
      _commands in commands_basep.o
  "_do_captain", referenced from:
      _commands in commands_basep.o
  "_do_resetgalaxy", referenced from:
      _commands in commands_basep.o
  "_do_switchside", referenced from:
      _commands in commands_basep.o
      _commands in commands_basep.o
  "_do_confine", referenced from:
      _commands in commands_basep.o
  "_do_pickside", referenced from:
      _commands in commands_basep.o
      _commands in commands_basep.o
      _commands in commands_basep.o
      _commands in commands_basep.o
      _commands in commands_basep.o
  "_do_tname", referenced from:
      _commands in commands_basep.o
  "_do_free", referenced from:
      _commands in commands_basep.o
  "_do_gametime", referenced from:
      _commands in commands_basep.o
  "_do_timeout", referenced from:
      _commands in commands_basep.o
  "_do_start", referenced from:
      _commands in commands_basep.o
  "_do_pause", referenced from:
      _commands in commands_basep.o
      _commands in commands_basep.o
      _commands in commands_basep.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Tags: cmake
Revision history for this message
Bob Tanner (tanner) wrote :

Working on Bug #423556 and the sample_sysdef.in to sysdef issue I tried to compile with -DINL=1 and get link errors. Looking at the Makefile.in I'm not sure how this is all suppose to work. Need to investigate it more.

Changed in netrek-server:
status: New → Confirmed
importance: Undecided → Low
tags: added: cmake
Changed in netrek-server:
assignee: nobody → Bob Tanner (tanner)
collinp (collinp)
Changed in netrek-server:
importance: Low → High
collinp (collinp)
Changed in netrek-server:
importance: High → Critical
milestone: none → 2.16.1
collinp (collinp)
Changed in netrek-server:
assignee: Bob Tanner (tanner) → Collin Pruitt (hellow)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.