* Package: games-sports/foobillard-3.0a-r1 * Repository: gentoo * Maintainer: games@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking foobillard-3.0a.tar.gz to /var/tmp/portage/games-sports/foobillard-3.0a-r1/work >>> Source unpacked in /var/tmp/portage/games-sports/foobillard-3.0a-r1/work >>> Preparing source in /var/tmp/portage/games-sports/foobillard-3.0a-r1/work/foobillard-3.0a ... * Applying foobillard-3.0a-no_nvidia.patch ... [ ok ] * Applying foobillard-3.0a-freetype_pkgconfig.patch ... [ ok ] * Applying foobillard-3.0a-fbsd.patch ... [ ok ] * Applying foobillard-3.0a-as-needed.patch ... [ ok ] * Applying foobillard-3.0a-gl-clamp.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/games-sports/foobillard-3.0a-r1/work/foobillard-3.0a' ... * Running 'aclocal' ... [ ok ] * Running 'autoconf --force' ... [ ok ] * Running 'autoheader' ... [ ok ] * Running 'automake --add-missing --copy --force-missing' ... [ ok ] * Running elibtoolize in: foobillard-3.0a/ >>> Source prepared. >>> Configuring source in /var/tmp/portage/games-sports/foobillard-3.0a-r1/work/foobillard-3.0a ... * econf: updating foobillard-3.0a/config.sub with /usr/share/gnuconfig/config.sub * econf: updating foobillard-3.0a/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=x86_64-gentoo-linux-musl --host=x86_64-gentoo-linux-musl --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/foobillard-3.0a-r1 --htmldir=/usr/share/doc/foobillard-3.0a-r1/html --libdir=/usr/lib --enable-sound --disable-SDL --enable-glut --disable-nvidia checking for a BSD-compatible install... /usr/lib/portage/python3.9/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-gentoo-linux-musl-gcc... x86_64-gentoo-linux-musl-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether x86_64-gentoo-linux-musl-gcc accepts -g... yes checking for x86_64-gentoo-linux-musl-gcc option to enable C11 features... none needed checking whether x86_64-gentoo-linux-musl-gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of x86_64-gentoo-linux-musl-gcc... none checking for x86_64-gentoo-linux-musl-g++... x86_64-gentoo-linux-musl-g++ checking whether the compiler supports GNU C++... yes checking whether x86_64-gentoo-linux-musl-g++ accepts -g... yes checking for x86_64-gentoo-linux-musl-g++ option to enable C++11 features... none needed checking dependency style of x86_64-gentoo-linux-musl-g++... none checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for limits.h... yes checking for unistd.h... (cached) yes checking for math.h... yes checking for stdlib.h... (cached) yes checking for stdio.h... (cached) yes checking for endian.h... yes checking for sys/endian.h... no checking for an ANSI C-conforming const... yes checking for inline... inline checking how to run the C preprocessor... x86_64-gentoo-linux-musl-gcc -E checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for socket... yes checking for poll... yes checking "for SDL support"... "no" checking "for glut support"... "yes" checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating foobillard.spec config.status: creating foobillard-SDL.spec config.status: creating src/Makefile config.status: creating data/Makefile config.status: creating src/config.h config.status: executing depfiles commands >>> Source configured. >>> Compiling source in /var/tmp/portage/games-sports/foobillard-3.0a-r1/work/foobillard-3.0a ... make -j4 Making all in src make[1]: Entering directory '/var/tmp/portage/games-sports/foobillard-3.0a-r1/work/foobillard-3.0a/src' make all-am make[2]: Entering directory '/var/tmp/portage/games-sports/foobillard-3.0a-r1/work/foobillard-3.0a/src' x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o billard3d.o billard3d.c x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o billmove.o billmove.c x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o billard.o billard.c x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o vmath.o vmath.c billmove.c: In function 'my_rand': billmove.c:412:5: warning: type of 'nr' defaults to 'int' [-Wimplicit-int] 412 | int my_rand(nr) | ^~~~~~~ At top level: billmove.c:908:12: warning: 'proceed_dt_euler' defined but not used [-Wunused-function] 908 | static int proceed_dt_euler(BallsType *balls, BordersType *borders, BMfloat dt, int depth) | ^~~~~~~~~~~~~~~~ billard3d.c: In function 'Idle_timer': billard3d.c:1596:16: warning: variable 'first_time' set but not used [-Wunused-but-set-variable] 1596 | static int first_time=1; | ^~~~~~~~~~ billard.c: In function 'create_8ball_scene': billard.c:735:21: warning: variable 'ampl' set but not used [-Wunused-but-set-variable] 735 | double ang, ampl; | ^~~~ billard3d.c: In function 'DisplayFunc': billard3d.c:2797:12: warning: variable 'light_position' set but not used [-Wunused-but-set-variable] 2797 | GLfloat light_position[] = { 0.0, 0.0, 0.7, 1.0 }; | ^~~~~~~~~~~~~~ billard3d.c: In function 'free_cuberef_tex': billard3d.c:4005:28: warning: pointer targets in passing argument 2 of 'glDeleteTextures' differ in signedness [-Wpointer-sign] 4005 | glDeleteTextures(1,&cuberef_allballs_texbind[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/freeglut_std.h:143, from /usr/include/GL/glut.h:17, from billard3d.c:34: /usr/include/GL/gl.h:1304:66: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' 1304 | I void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); | ~~~~~~~~~~~~~~^~~~~~~~ billard3d.c: In function 'reassign_and_gen_cuberef_tex': billard3d.c:4028:25: warning: pointer targets in passing argument 2 of 'glGenTextures' differ in signedness [-Wpointer-sign] 4028 | glGenTextures(1,&cuberef_allballs_texbind[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/freeglut_std.h:143, from /usr/include/GL/glut.h:17, from billard3d.c:34: /usr/include/GL/gl.h:1302:57: note: expected 'GLuint *' {aka 'unsigned int *'} but argument is of type 'int *' 1302 | GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures ); | ~~~~~~~~^~~~~~~~ At top level: billard3d.c:217:15: warning: 'half_full_names' defined but not used [-Wunused-variable] 217 | static char * half_full_names[]={"any","full","half"}; | ^~~~~~~~~~~~~~~ x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o ball.o ball.c ball.c:59:13: warning: pointer targets in initialization of 'const unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 59 | "!!VP1.0 \n" | ^~~~~~~~~~~~ ball.c:128:13: warning: pointer targets in initialization of 'const unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 128 | "!!VP1.0 \n" | ^~~~~~~~~~~~ ball.c: In function 'ball_subdivide_nonrec': ball.c:499:18: warning: unused variable 'rho' [-Wunused-variable] 499 | double xt,yt,rho; | ^~~ ball.c: In function 'calc_reftex': ball.c:812:25: warning: variable 'v_xy' set but not used [-Wunused-but-set-variable] 812 | double phi,th,v_abs,v_xy; | ^~~~ ball.c: In function 'myDrawElements': ball.c:853:20: warning: variable 'v_in' set but not used [-Wunused-but-set-variable] 853 | myvec v_ref[3],v_in; | ^~~~ ball.c:852:25: warning: variable 'v_xy' set but not used [-Wunused-but-set-variable] 852 | double phi,th,v_abs,v_xy; | ^~~~ ball.c:847:21: warning: variable 'tchanged' set but not used [-Wunused-but-set-variable] 847 | int i,j,k,l,m,n,tchanged; | ^~~~~~~~ ball.c: In function 'draw_ball': ball.c:982:18: warning: variable 'cfar' set but not used [-Wunused-but-set-variable] 982 | float cnear, cfar, geomfact; | ^~~~ ball.c: In function 'draw_balls': ball.c:1547:16: warning: unused variable 'fresnel_init' [-Wunused-variable] 1547 | static int fresnel_init = 0; | ^~~~~~~~~~~~ At top level: ball.c:1547:16: warning: 'fresnel_init' defined but not used [-Wunused-variable] ball.c:263:12: warning: 'in_array_old' defined but not used [-Wunused-function] 263 | static int in_array_old( ElemArray * array, GLfloat * v, GLfloat tex_x, GLfloat tex_y ) | ^~~~~~~~~~~~ ball.c:221:16: warning: 'col_refl4' defined but not used [-Wunused-variable] 221 | static GLfloat col_refl4[4] = {1.0, 1.0, 1.0, 1.0}; /* for rendered cubemap (fresnel) */ | ^~~~~~~~~ ball.c:215:16: warning: 'col_null' defined but not used [-Wunused-variable] 215 | static GLfloat col_null [4] = {0.0, 0.0, 0.0, 0.0}; /* dont need any specular because of reflections */ | ^~~~~~~~ ball.c:127:30: warning: 'fresnel_vert_prog_obj_coord_str' defined but not used [-Wunused-variable] 127 | static const unsigned char * fresnel_vert_prog_obj_coord_str= /* object coordinates */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ball.c:58:30: warning: 'fresnel_vert_prog_world_coord_str' defined but not used [-Wunused-variable] 58 | static const unsigned char * fresnel_vert_prog_world_coord_str= | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ball.c:57:24: warning: 'fresnel_vert_prog_bind' defined but not used [-Wunused-variable] 57 | static int fresnel_vert_prog_bind; | ^~~~~~~~~~~~~~~~~~~~~~ x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o png_loader.o png_loader.c x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o table.o table.c table.c: In function 'my_Edge': table.c:224:89: warning: variable 'v9' set but not used [-Wunused-but-set-variable] 224 | 40,n0,n1,n2,n3,n4,n5,n6,n7,n8,n9,v0,v1,v2,v3,v4,v5,v6,v7,v8,v9, v8_2,v8_3, v4_2,v4_3; | ^~ table.c:224:62: warning: variable 'v0' set but not used [-Wunused-but-set-variable] 224 | VMvect n00,n10,n20,n30,n40,n0,n1,n2,n3,n4,n5,n6,n7,n8,n9,v0,v1,v2,v3,v4,v5,v6,v7,v8,v9, v8_2,v8_3, v4_2,v4_3; | ^~ table.c:224:59: warning: variable 'n9' set but not used [-Wunused-but-set-variable] 224 | VMvect n00,n10,n20,n30,n40,n0,n1,n2,n3,n4,n5,n6,n7,n8,n9,v0,v1,v2,v3,v4,v5,v6,v7,v8,v9, v8_2,v8_3, v4_2,v4_3; | ^~ table.c:224:32: warning: variable 'n0' set but not used [-Wunused-but-set-variable] 224 | VMvect n00,n10,n20,n30,n40,n0,n1,n2,n3,n4,n5,n6,n7,n8,n9,v0,v1,v2,v3,v4,v5,v6,v7,v8,v9, v8_2,v8_3, v4_2,v4_3; | ^~ table.c: In function 'create_table': table.c:1190:49: warning: pointer targets in passing argument 2 of 'glDeleteTextures' differ in signedness [-Wpointer-sign] 1190 | if( frametexbind > 0 ) glDeleteTextures( 1, &frametexbind ); | ^~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/glu.h:34, from table.c:25: /usr/include/GL/gl.h:1304:66: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' 1304 | I void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); | ~~~~~~~~~~~~~~^~~~~~~~ table.c:1192:25: warning: pointer targets in passing argument 2 of 'glGenTextures' differ in signedness [-Wpointer-sign] 1192 | glGenTextures(1,&frametexbind); | ^~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/glu.h:34, from table.c:25: /usr/include/GL/gl.h:1302:57: note: expected 'GLuint *' {aka 'unsigned int *'} but argument is of type 'int *' 1302 | GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures ); | ~~~~~~~~^~~~~~~~ table.c:1206:49: warning: pointer targets in passing argument 2 of 'glDeleteTextures' differ in signedness [-Wpointer-sign] 1206 | if( tabletexbind > 0 ) glDeleteTextures( 1, &tabletexbind ); | ^~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/glu.h:34, from table.c:25: /usr/include/GL/gl.h:1304:66: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' 1304 | I void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); | ~~~~~~~~~~~~~~^~~~~~~~ table.c:1208:25: warning: pointer targets in passing argument 2 of 'glGenTextures' differ in signedness [-Wpointer-sign] 1208 | glGenTextures(1,&tabletexbind); | ^~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/glu.h:34, from table.c:25: /usr/include/GL/gl.h:1302:57: note: expected 'GLuint *' {aka 'unsigned int *'} but argument is of type 'int *' 1302 | GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures ); | ~~~~~~~~^~~~~~~~ table.c:1224:49: warning: pointer targets in passing argument 2 of 'glDeleteTextures' differ in signedness [-Wpointer-sign] 1224 | if( clothtexbind > 0 ) glDeleteTextures( 1, &clothtexbind ); | ^~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/glu.h:34, from table.c:25: /usr/include/GL/gl.h:1304:66: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' 1304 | I void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); | ~~~~~~~~~~~~~~^~~~~~~~ table.c:1226:25: warning: pointer targets in passing argument 2 of 'glGenTextures' differ in signedness [-Wpointer-sign] 1226 | glGenTextures(1,&clothtexbind); | ^~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/glu.h:34, from table.c:25: /usr/include/GL/gl.h:1302:57: note: expected 'GLuint *' {aka 'unsigned int *'} but argument is of type 'int *' 1302 | GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures ); | ~~~~~~~~^~~~~~~~ x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o queue.o queue.c table.c:1796:12: warning: unused variable 'pass' [-Wunused-variable] 1796 | int pass; | ^~~~ table.c:1156:13: warning: unused variable 's_gen_params' [-Wunused-variable] 1156 | GLfloat s_gen_params[] = {0.0,1.0,0.0,0.0}; | ^~~~~~~~~~~~ table.c:1155:13: warning: unused variable 't_gen_params' [-Wunused-variable] 1155 | GLfloat t_gen_params[] = {8.0,0.0,0.0,0.0}; | ^~~~~~~~~~~~ table.c:1128:11: warning: unused variable 'cm' [-Wunused-variable] 1128 | float cm = 0.01; // cm | ^~ table.c:1111:24: warning: unused variable 'bumpcloth' [-Wunused-variable] 1111 | static BumpRefType bumpcloth; | ^~~~~~~~~ table.c:1108:16: warning: unused variable 'bump_cloth_init' [-Wunused-variable] 1108 | static int bump_cloth_init = 0; | ^~~~~~~~~~~~~~~ At top level: table.c:1108:16: warning: 'bump_cloth_init' defined but not used [-Wunused-variable] table.c:1111:24: warning: 'bumpcloth' defined but not used [-Wunused-variable] 1111 | static BumpRefType bumpcloth; | ^~~~~~~~~ queue.c: In function 'delete_queue_texbind': queue.c:142:24: warning: pointer targets in passing argument 2 of 'glDeleteTextures' differ in signedness [-Wpointer-sign] 142 | glDeleteTextures(1,&queuetexbind); | ^~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/glu.h:34, from queue.c:26: /usr/include/GL/gl.h:1304:66: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' 1304 | I void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); | ~~~~~~~~~~~~~~^~~~~~~~ queue.c: In function 'create_queue_texbind': queue.c:150:21: warning: pointer targets in passing argument 2 of 'glGenTextures' differ in signedness [-Wpointer-sign] 150 | glGenTextures(1,&queuetexbind); | ^~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/glu.h:34, from queue.c:26: /usr/include/GL/gl.h:1302:57: note: expected 'GLuint *' {aka 'unsigned int *'} but argument is of type 'int *' 1302 | GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures ); | ~~~~~~~~^~~~~~~~ queue.c: In function 'draw_queue': queue.c:194:29: warning: pointer targets in passing argument 2 of 'glGenTextures' differ in signedness [-Wpointer-sign] 194 | glGenTextures(1,&queueshadowbind); | ^~~~~~~~~~~~~~~~ | | | int * In file included from /usr/include/GL/glu.h:34, from queue.c:26: /usr/include/GL/gl.h:1302:57: note: expected 'GLuint *' {aka 'unsigned int *'} but argument is of type 'int *' 1302 | GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures ); | ~~~~~~~~^~~~~~~~ x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o aiplayer.o aiplayer.c billard3d.c: In function 'DisplayFunc': billard3d.c:2910:19: warning: 'eye_offs0' may be used uninitialized in this function [-Wmaybe-uninitialized] 2910 | double eye_offs0; | ^~~~~~~~~ x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o options.o options.c x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o evaluate_move.o evaluate_move.c evaluate_move.c: In function 'evaluate_last_move_snooker': evaluate_move.c:409:5: warning: enumeration value 'SN_DONE' not handled in switch [-Wswitch] 409 | switch(st.to_play) | ^~~~~~ x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o helpscreen.o helpscreen.c billard3d.c: In function 'init_menu': billard3d.c:4580:27: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] 4580 | sprintf(str,"P1 Name: %s",player[0].name); | ^~ ~~~~~~~~~~~~~~ billard3d.c:4580:5: note: 'sprintf' output between 10 and 265 bytes into a destination of size 256 4580 | sprintf(str,"P1 Name: %s",player[0].name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ billard3d.c:4587:27: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] 4587 | sprintf(str,"P2 Name: %s",player[1].name); | ^~ ~~~~~~~~~~~~~~ billard3d.c:4587:5: note: 'sprintf' output between 10 and 265 bytes into a destination of size 256 4587 | sprintf(str,"P2 Name: %s",player[1].name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ billard3d.c:4601:27: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] 4601 | sprintf(str,"P1 Name: %s",player[0].name); | ^~ ~~~~~~~~~~~~~~ billard3d.c:4601:5: note: 'sprintf' output between 10 and 265 bytes into a destination of size 256 4601 | sprintf(str,"P1 Name: %s",player[0].name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ billard3d.c:4603:27: warning: '%s' directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=] 4603 | sprintf(str,"P2 Name: %s",player[1].name); | ^~ ~~~~~~~~~~~~~~ billard3d.c:4603:5: note: 'sprintf' output between 10 and 265 bytes into a destination of size 256 4603 | sprintf(str,"P2 Name: %s",player[1].name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o textobj.o textobj.c x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o font.o font.c textobj.c: In function 'diff_x_font': textobj.c:57:16: warning: variable 'h2' set but not used [-Wunused-but-set-variable] 57 | int x,y,w2,h2; | ^~ textobj.c:57:13: warning: variable 'w2' set but not used [-Wunused-but-set-variable] 57 | int x,y,w2,h2; | ^~ textobj.c: In function 'diff_xy_font': textobj.c:71:16: warning: variable 'h2' set but not used [-Wunused-but-set-variable] 71 | int x,y,w2,h2; | ^~ textobj.c:71:13: warning: variable 'w2' set but not used [-Wunused-but-set-variable] 71 | int x,y,w2,h2; | ^~ textobj.c: In function 'create_string_quad': textobj.c:96:21: warning: pointer targets in passing argument 2 of 'glGenTextures' differ in signedness [-Wpointer-sign] 96 | glGenTextures(1,&texbind); | ^~~~~~~~ | | | int * In file included from options.h:22, from textobj.c:22: /usr/include/GL/gl.h:1302:57: note: expected 'GLuint *' {aka 'unsigned int *'} but argument is of type 'int *' 1302 | GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures ); | ~~~~~~~~^~~~~~~~ textobj.c:91:29: warning: unused variable 'ny' [-Wunused-variable] 91 | int w1,w2, h1,h2, nx,ny; | ^~ textobj.c:91:26: warning: unused variable 'nx' [-Wunused-variable] 91 | int w1,w2, h1,h2, nx,ny; | ^~ textobj.c:91:22: warning: unused variable 'h2' [-Wunused-variable] 91 | int w1,w2, h1,h2, nx,ny; | ^~ textobj.c:91:19: warning: unused variable 'h1' [-Wunused-variable] 91 | int w1,w2, h1,h2, nx,ny; | ^~ textobj.c:91:15: warning: unused variable 'w2' [-Wunused-variable] 91 | int w1,w2, h1,h2, nx,ny; | ^~ textobj.c:91:12: warning: unused variable 'w1' [-Wunused-variable] 91 | int w1,w2, h1,h2, nx,ny; | ^~ textobj.c: In function 'textObj_toggle3D': textobj.c:204:30: warning: pointer targets in passing argument 2 of 'glDeleteTextures' differ in signedness [-Wpointer-sign] 204 | glDeleteTextures( 1, &(obj->tex_id) ); | ^~~~~~~~~~~~~~ | | | int * In file included from options.h:22, from textobj.c:22: /usr/include/GL/gl.h:1304:66: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' 1304 | I void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); | ~~~~~~~~~~~~~~^~~~~~~~ textobj.c: In function 'textObj_setText': textobj.c:227:38: warning: pointer targets in passing argument 2 of 'glDeleteTextures' differ in signedness [-Wpointer-sign] 227 | glDeleteTextures( 1, &(obj->tex_id) ); | ^~~~~~~~~~~~~~ | | | int * In file included from options.h:22, from textobj.c:22: /usr/include/GL/gl.h:1304:66: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' 1304 | I void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); | ~~~~~~~~~~~~~~^~~~~~~~ textobj.c: In function 'textObj_setHeight': textobj.c:271:30: warning: pointer targets in passing argument 2 of 'glDeleteTextures' differ in signedness [-Wpointer-sign] 271 | glDeleteTextures( 1, &(obj->tex_id) ); | ^~~~~~~~~~~~~~ | | | int * In file included from options.h:22, from textobj.c:22: /usr/include/GL/gl.h:1304:66: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' 1304 | I void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); | ~~~~~~~~~~~~~~^~~~~~~~ textobj.c: In function 'textObj_setFont': textobj.c:300:30: warning: pointer targets in passing argument 2 of 'glDeleteTextures' differ in signedness [-Wpointer-sign] 300 | glDeleteTextures( 1, &(obj->tex_id) ); | ^~~~~~~~~~~~~~ | | | int * In file included from options.h:22, from textobj.c:22: /usr/include/GL/gl.h:1304:66: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' 1304 | I void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); | ~~~~~~~~~~~~~~^~~~~~~~ textobj.c: In function 'textObj_delete': textobj.c:389:30: warning: pointer targets in passing argument 2 of 'glDeleteTextures' differ in signedness [-Wpointer-sign] 389 | glDeleteTextures( 1, &(obj->tex_id) ); | ^~~~~~~~~~~~~~ | | | int * In file included from options.h:22, from textobj.c:22: /usr/include/GL/gl.h:1304:66: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' 1304 | I void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures); | ~~~~~~~~~~~~~~^~~~~~~~ x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o sys_stuff.o sys_stuff.c font.c: In function 'makeGLGeometryFT': font.c:439:57: warning: passing argument 3 of 'gluTessCallback' from incompatible pointer type [-Wincompatible-pointer-types] 439 | gluTessCallback(tessdata->tobj, GLU_TESS_BEGIN, glBegin); | ^~~~~~~ | | | void (*)(GLenum) {aka void (*)(unsigned int)} In file included from font.c:32: /usr/include/GL/glu.h:336:87: note: expected '_GLUfuncptr' {aka 'void (*)(void)'} but argument is of type 'void (*)(GLenum)' {aka 'void (*)(unsigned int)'} 336 | essCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc); | ~~~~~~~~~~~~^~~~~~~~~~~~ font.c:440:58: warning: passing argument 3 of 'gluTessCallback' from incompatible pointer type [-Wincompatible-pointer-types] 440 | gluTessCallback(tessdata->tobj, GLU_TESS_VERTEX, my_Vertex_cb); | ^~~~~~~~~~~~ | | | void (*)(void *) In file included from font.c:32: /usr/include/GL/glu.h:336:87: note: expected '_GLUfuncptr' {aka 'void (*)(void)'} but argument is of type 'void (*)(void *)' 336 | essCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc); | ~~~~~~~~~~~~^~~~~~~~~~~~ font.c:443:24: warning: assignment to 'FT_Outline_MoveToFunc' {aka 'int (*)(const struct FT_Vector_ *, void *)'} from incompatible pointer type 'int (*)(FT_Vector *, void *)' {aka 'int (*)(struct FT_Vector_ *, void *)'} [-Wincompatible-pointer-types] 443 | funcs.move_to = cb_tess_move_to; | ^ font.c:444:24: warning: assignment to 'FT_Outline_LineToFunc' {aka 'int (*)(const struct FT_Vector_ *, void *)'} from incompatible pointer type 'int (*)(FT_Vector *, void *)' {aka 'int (*)(struct FT_Vector_ *, void *)'} [-Wincompatible-pointer-types] 444 | funcs.line_to = cb_tess_line_to; | ^ font.c:445:24: warning: assignment to 'FT_Outline_ConicToFunc' {aka 'int (*)(const struct FT_Vector_ *, const struct FT_Vector_ *, void *)'} from incompatible pointer type 'int (*)(FT_Vector *, FT_Vector *, void *)' {aka 'int (*)(struct FT_Vector_ *, struct FT_Vector_ *, void *)'} [-Wincompatible-pointer-types] 445 | funcs.conic_to = cb_tess_conic_to; | ^ font.c:446:24: warning: assignment to 'FT_Outline_CubicToFunc' {aka 'int (*)(const struct FT_Vector_ *, const struct FT_Vector_ *, const struct FT_Vector_ *, void *)'} from incompatible pointer type 'int (*)(FT_Vector *, FT_Vector *, FT_Vector *, void *)' {aka 'int (*)(struct FT_Vector_ *, struct FT_Vector_ *, struct FT_Vector_ *, void *)'} [-Wincompatible-pointer-types] 446 | funcs.cubic_to = cb_tess_cubic_to; | ^ font.c:466:26: warning: variable 'n' set but not used [-Wunused-but-set-variable] 466 | VMvect n1,n2,n, d1,d2; | ^ font.c:374:14: warning: unused variable 'v' [-Wunused-variable] 374 | GLdouble v[1000][3]; | ^ font.c:373:21: warning: unused variable 'start_y' [-Wunused-variable] 373 | double start_x, start_y; | ^~~~~~~ font.c:373:12: warning: unused variable 'start_x' [-Wunused-variable] 373 | double start_x, start_y; | ^~~~~~~ font.c:372:28: warning: unused variable 'tobj' [-Wunused-variable] 372 | struct GLUtesselator * tobj; | ^~~~ font.c:370:11: warning: unused variable 'j' [-Wunused-variable] 370 | int i,j; | ^ font.c:370:9: warning: unused variable 'i' [-Wunused-variable] 370 | int i,j; | ^ font.c: In function 'getStringGLListFT': font.c:530:52: warning: unused variable 'h1' [-Wunused-variable] 530 | int pen_x, pen_y, n,i,w,h, error, w1,h1; | ^~ font.c:530:49: warning: unused variable 'w1' [-Wunused-variable] 530 | int pen_x, pen_y, n,i,w,h, error, w1,h1; | ^~ font.c:530:39: warning: unused variable 'h' [-Wunused-variable] 530 | int pen_x, pen_y, n,i,w,h, error, w1,h1; | ^ font.c:530:37: warning: unused variable 'w' [-Wunused-variable] 530 | int pen_x, pen_y, n,i,w,h, error, w1,h1; | ^ font.c:530:35: warning: unused variable 'i' [-Wunused-variable] 530 | int pen_x, pen_y, n,i,w,h, error, w1,h1; | ^ font.c:530:26: warning: unused variable 'pen_y' [-Wunused-variable] 530 | int pen_x, pen_y, n,i,w,h, error, w1,h1; | ^~~~~ font.c:530:19: warning: unused variable 'pen_x' [-Wunused-variable] 530 | int pen_x, pen_y, n,i,w,h, error, w1,h1; | ^~~~~ x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o net_socket.o net_socket.c x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o sound_stuff.o sound_stuff.c font.c: In function 'makeGLGeometryFT': font.c:496:54: warning: 'tdv_n' may be used uninitialized in this function [-Wmaybe-uninitialized] 496 | glVertex3f( tdv_n->d[0], tdv_n->d[1], -depth ); | ~~~~~~~~^~~ x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -DNDEBUG -DDATA_DIRECTORY='"/usr/share/foobillard/"' -Wall `x86_64-gentoo-linux-musl-pkg-config --cflags freetype2` -DNO_NV_BUMPREF -DNO_NV_FRESNEL -DUSE_SOUND -pipe -march=native -fno-diagnostics-color -O2 -c -o menu.o menu.c sound_stuff.c:36:10: fatal error: sys/unistd.h: No such file or directory 36 | #include | ^~~~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:475: sound_stuff.o] Error 1 make[2]: *** Waiting for unfinished jobs.... menu.c: In function 'menu_create_textobj': menu.c:178:28: warning: ' : ' directive writing 3 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 178 | sprintf(str,"%s : %s",entry->text,entry->settingtext); | ^~~ menu.c:178:13: note: 'sprintf' output between 4 and 514 bytes into a destination of size 256 178 | sprintf(str,"%s : %s",entry->text,entry->settingtext); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c: In function 'menu_entry_set_text': menu.c:142:31: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] 142 | sprintf(str,"%s : %s",entry->text,entry->settingtext); | ^~ menu.c:142:13: note: 'sprintf' output 4 or more bytes (assuming 259) into a destination of size 256 142 | sprintf(str,"%s : %s",entry->text,entry->settingtext); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c: In function 'menu_entry_set_settingtext': menu.c:158:28: warning: ' : ' directive writing 3 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 158 | sprintf(str,"%s : %s",entry->text,entry->settingtext); | ^~~ menu.c:158:13: note: 'sprintf' output 4 or more bytes (assuming 259) into a destination of size 256 158 | sprintf(str,"%s : %s",entry->text,entry->settingtext); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/var/tmp/portage/games-sports/foobillard-3.0a-r1/work/foobillard-3.0a/src' make[1]: *** [Makefile:343: all] Error 2 make[1]: Leaving directory '/var/tmp/portage/games-sports/foobillard-3.0a-r1/work/foobillard-3.0a/src' make: *** [Makefile:356: all-recursive] Error 1 * ERROR: games-sports/foobillard-3.0a-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=games-sports/foobillard-3.0a-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=games-sports/foobillard-3.0a-r1::gentoo'`. * The complete build log is located at '/var/log/portage/games-sports:foobillard-3.0a-r1:20220119-143032.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-sports/foobillard-3.0a-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-sports/foobillard-3.0a-r1/temp/environment'. * Working directory: '/var/tmp/portage/games-sports/foobillard-3.0a-r1/work/foobillard-3.0a' * S: '/var/tmp/portage/games-sports/foobillard-3.0a-r1/work/foobillard-3.0a'