Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#175 wavefront/gcc-4.1.0 compile error

closed
Brian Gerkey
player (137)
5
2006-03-28
2006-03-27
Brian Gerkey
No

The wavefront driver fails to compile with gcc-4.1.0 on
RHFC5 with an apparent error in <openssl/md5.h>,
appended below. Don't know who's at fault here.

Until we fix it, the workaround is to configure player
with --disable-wavefront.

make[5]: Entering directory
`/root/PSG/player-2.0.0/server/drivers/planner/wavefront'
if /bin/sh ../../../../libtool --tag=CC --mode=compile gcc
-DHAVE_CONFIG_H -I. -I. -I../../../..
-I../../../../libplayercore
-I../../../../client_libs/libplayerc++ -Wall -g
-I../../../.. -g -O2
-MT plan.lo -MD -MP -MF ".deps/plan.Tpo" -c -o plan.lo
plan.c; \ then mv -f ".deps/plan.Tpo" ".deps/plan.Plo"; else rm -f
".deps/plan.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../../../..
-I../../../../libplayercore
-I../../../../client_libs/libplayerc++ -Wall -g
-I../../../.. -g -O2 -MT
plan.lo -MD -MP -MF .deps/plan.Tpo -c plan.c -fPIC
-DPIC -o .libs/plan.o
In file included from plan.c:14:
/usr/include/openssl/md5.h:108: error: expected
declaration specifiers
or '...' before 'size_t'
/usr/include/openssl/md5.h:110: error: expected
declaration specifiers
or '...' before 'size_t'
plan.c: In function 'plan_md5':
plan.c:518: error: too many arguments to function
'MD5_Update'
make[5]: *** [plan.lo] Error 1
make[5]: Leaving directory
`/root/PSG/player-2.0.0/server/drivers/planner/wavefront'
make[4]: *** [all-recursive] Error 1

Discussion

  • Logged In: NO

    To fix this error, move '#include <sys/types.h>' to be above
    '#if HAVE_OPENSSL...', in
    server/drivers/planner/wavefront/plan.c.

     
  • Brian Gerkey
    Brian Gerkey
    2006-03-28

    • status: open --> closed
     
  • Brian Gerkey
    Brian Gerkey
    2006-03-28

    Logged In: YES
    user_id=211013

    Thanks for the feedback. Fixed in CVS.