On Donnerstag 02 April 2009 16:10:43 Philipp Thomas wrote:
* Sascha 'saigkill' Manns (samannsml@directbox.com) [20090402 15:23]:
configure broke on the same place. He gives me an error with -lm. After remove -lm the configure break. Then he says me,: checking for dumb_exit in -ldumb... no.
The error is in your kqlives-ldumb.patch. The crucial lines must look like this:
-AC_CHECK_LIB(dumb, dumb_exit, [ALLEGRO_LIBS="-ldumb $ALLEGRO_LIBS"], - [AC_MSG_ERROR([Dumb not found])]) +AC_CHECK_LIB(dumb, dumb_exit, [ALLEGRO_LIBS="-ldumb -lm $ALLEGRO_LIBS"], - [AC_MSG_ERROR([Dumb not found])], -lm)
i.e. you *have* to add the -lm as another paramter to AC_CHECK_LIB. See »info '(autoconf.info.gz)Libraries'« for an explanation why this is necessary. That was an good Idea. With them the build runs. But i become the following compiler warnings: I: Function call uses possibly exploitable format strings W: kqlives format-security maps/mapdiff.c:142, 685, 686, 784 W: kqlives format-security maps/mapdump.c:99 W: kqlives format-security maps/mapedit.c:1298, 2102 W: kqlives format-security maps/mapshared.c:291
I: Statement is overflowing a buffer E: kqlives bufferoverflow src/intrface.c:1048 I: Statement might be overflowing a buffer in strncat. Common mistake: BAD: strncat(buffer,charptr,sizeof(buffer)) is wrong, it takes the left over size as 3rd argument GOOD: strncat(buffer,charptr,sizeof(buffer)-strlen(buffer)-1) E: kqlives bufferoverflowstrncat src/movement.c:113 What is to do? -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service openSUSE Features Screening Team Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org