Package: cxref
Version: 1.6e-3+b1
Severity: normal

Tried to use cxref on latest GNU Backgammon source confbigured with and without
Python support. gnubg builds OK.

Command: cxref gnubg.c -CPP 'cpp -E -C -dD'

Output:
/usr/include/stdlib.h:140: cxref: syntax error, unexpected IDENTIFIER,
expecting ';' or ','

The previous 10, current and next 10 symbols are:
-10 | 258 :       IDENTIFIER : __nptr
 -9 |  44 :              ',' : ,
 -8 | 294 :             CHAR : char
 -7 |  42 :              '*' : *
 -6 |  42 :              '*' : *
 -5 | 258 :       IDENTIFIER : __endptr
 -4 |  41 :              ')' : )
 -3 |  59 :              ';' : ;
 -2 | 286 :           EXTERN : extern
 -1 | 258 :       IDENTIFIER : _Float32
  0 | 258 :       IDENTIFIER : strtof32
  1 |  40 :              '(' : (
  2 | 290 :            CONST : const
  3 | 294 :             CHAR : char
  4 |  42 :              '*' : *
  5 | 258 :       IDENTIFIER : __nptr
  6 |  44 :              ',' : ,
  7 | 294 :             CHAR : char
  8 |  42 :              '*' : *
  9 |  42 :              '*' : *
 10 | 258 :       IDENTIFIER : __endptr

Things I tried:
1. Used cxref on other code - Worked OK
2. Built cxref version 1.6e myself and tried that - same kinds of results
although failed at different place in code
3. Tried many combinations of cxref on simple code (hello world), simple code
including more complex headers, etc - with installed cxref and my local built
cxref. When it did work on complex code it generated very little html output -
basically the file name with no detail about variables, calls etc.
4. Tried cxref on the cxref code itself and it worked on cxref.c at least.
5. Hoped to get clues about problem but am giving up at this pont

Here is my .cxref file:
-xref-all
-index-all
-html-src

-I.
-I./lib
-I./board3d
-I./pixmaps
-I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include

-DHAVE_CONFIG_H
-DLOCALEDIR=/usr/local/share/locale
-DAC_DOCDIR=/usr/local/share/doc/gnubg
-DAC_DATADIR=/usr/local/share
-DAC_PKGDATADIR=/usr/local/share/gnubg
-DG_DISABLE_ASSERT

But like I said, I tried alot of things, so the above is just one snapshot of
attempts.



-- System Information:
Debian Release: 10.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-8-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cxref depends on:
ii  debconf [debconf-2.0]  1.5.71
ii  gcc                    4:8.3.0-1
ii  libc6                  2.28-10
ii  ucf                    3.0038+nmu1

cxref recommends no packages.

Versions of packages cxref suggests:
pn  cxref-doc                  <none>
ii  firefox-esr [www-browser]  68.6.0esr-1~deb10u1
pn  texlive-binaries           <none>

-- debconf information:
  cxref/cxref-cpp-autoconf: true

Reply via email to