project-navigation
Personal tools

Author Topic: Make error.  (Read 3855 times)

Offline O01eg

  • Rookie
  • ***
  • Posts: 73
    • View Profile
Make error.
« on: March 13, 2009, 04:00:35 am »
I have got strange error:
Code: [Select]
* [UFO] src/client/menu/m_dragndrop.c
 * [UFO] src/client/menu/m_draw.c
 * [UFO] src/client/menu/m_font.c
src/client/menu/m_dragndrop.c: In function ‘MN_DrawDragAndDrop’:
src/client/menu/m_dragndrop.c:247: warning: implicit declaration of function ‘R_DrawCircle2D’
src/client/menu/m_dragndrop.c:247: error: ‘viddef’ undeclared (first use in this function)
src/client/menu/m_dragndrop.c:247: error: (Each undeclared identifier is reported only once
src/client/menu/m_dragndrop.c:247: error: for each function it appears in.)
make: *** [debug-linux-gnu-x86_64/client/client/menu/m_dragndrop.o] Error 1
make: *** Waiting for unfinished jobs....
I solved it by including "../cl_video.h" into src/client/menu/m_dragndrop.c, but I didn't find anybody who hed got this error too.
SVN Revision: 23491
SVN Revision of src/client/menu/m_dragndrop.c: 22920
OS: Gentoo x86_64

[attachment deleted by admin]

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: Make error.
« Reply #1 on: March 13, 2009, 11:19:30 am »
Hello and thanks for your message.

Maybe you are the only one using PARANOID to build the game, that why you have this problem.

I fix this problem in r23501.

If you dont need it, you also can undefine PARANOID. Maybe its only used for evil debuging.

Offline O01eg

  • Rookie
  • ***
  • Posts: 73
    • View Profile
Re: Make error.
« Reply #2 on: March 15, 2009, 12:33:52 am »
Yet another bug:
Code: [Select]
* [GAM] src/game/g_phys.c
 * [GAM] src/game/g_reaction.c
 * [GAM] src/game/g_main.c
src/game/g_main.c: In function ‘Com_Printf’:
src/game/g_main.c:328: error: ‘game_import_t’ has no member named ‘__dprintf_chk’
src/game/g_main.c: In function ‘Com_DPrintf’:
src/game/g_main.c:347: error: ‘game_import_t’ has no member named ‘__dprintf_chk’
make: *** [release-linux-gnu-x86_64/game/game/g_main.o] Error 1
SVN revision: 23530
SVN revision of src/game/g_main.c: 23142


[attachment deleted by admin]

Offline O01eg

  • Rookie
  • ***
  • Posts: 73
    • View Profile
Re: Make error.
« Reply #3 on: March 16, 2009, 12:49:29 am »
Bug yet not solved.
SVN Revision: 23538
SVN revision of src/game/g_main.c: 23538

[attachment deleted by admin]

Offline O01eg

  • Rookie
  • ***
  • Posts: 73
    • View Profile
Re: Make error.
« Reply #4 on: March 21, 2009, 02:10:55 am »
This bug is caused with file /usr/include/bits/stdio2.h from sys-libs/glibc-2.8_p20080602-r1 where define at line 189:
Code: [Select]
#   define dprintf(fd, ...) \
  __dprintf_chk (fd, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
g_cmds.1.c is g_cmds.c after preprocessor (getted with option -E of gcc).
SVN revision: 23617
SVN revision of src/game/g_cmds.c: 23551
OS: Gentoo x86_64

[attachment deleted by admin]

Offline O01eg

  • Rookie
  • ***
  • Posts: 73
    • View Profile
Re: Make error.
« Reply #5 on: April 01, 2009, 10:19:53 am »
As I understood this error caused by "-D_FORTIFY_SOURCE=2" in release then include <bits/stdio2.h> with own dprintf:
/usr/include/stdio.h:
Code: [Select]
905: #if __USE_FORTIFY_LEVEL > 0 && defined __extern_always_inline
906: # include <bits/stdio2.h>
907: #endif
/usr/include/bits/stdio2.h:
Code: [Select]
131: # ifdef __USE_GNU
154: #  ifdef __va_arg_pack
184: #  elif !defined __cplusplus
189: #   define dprintf(fd, ...) \
190:   __dprintf_chk (fd, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
193: #  endif
216: # endif
218: #endif
Is it possible to solve this error?