FreeBSD compiling fail.

[ 14%] Building Interrogate database built/pandac/input/libpnmimage.in
In file included from built/tmp/libpnmimage_igate.cxx:31:
/usr/local/include/ppmcmap.h:85: error: expected initializer before 'ARGS'
/usr/local/include/ppmcmap.h:86: error: expected initializer before 'ARGS'
/usr/local/include/ppmcmap.h:87: error: expected initializer before 'ARGS'
/usr/local/include/ppmcmap.h:88: error: expected initializer before 'ARGS'
/usr/local/include/ppmcmap.h:91: error: expected initializer before 'ARGS'
pkg_info -W /usr/local/include/ppmcmap.h
/usr/local/include/ppmcmap.h was installed by package netpbm-10.26.64_4

Compiling with -nostdinc(-nostdinc++) is one of the solutions, but maybe isn`t best.

Strange, it compiles fine for me on FreeBSD. Which version of FreeBSD are you using?

Ah! I think the problem is that both Panda and netpbm provide the same header file, and that conflicts.

Try, perhaps:

# pkg_delete -i -r  netpbm-10.26.64_4 

Yeah, I know this, but this means that I need to remove many of other software. I`m using FreeBSD 8.2.

Hmm. You could temporarily move that header file away. Alternatively, you could rename panda’s copy (and change the relevant includes).

I`m compiling this way from long time ago. Thanks, I just report for the conflict. :slight_smile:

Ah, all right. :slight_smile: If you’d like this fixed, you should probably file a bug report at bugs.launchpad.net/panda3d .