GNOME Bugzilla – Bug 114696
build error implicit declaration of function `int snprintf(...)'
Last modified: 2004-12-22 21:47:04 UTC
mozilla-notifiers.cpp: In function `void mozilla_notifiers_init(EphyEmbedSingle *)': mozilla-notifiers.cpp:390: implicit declaration of function `int snprintf(...)' make[3]: *** [mozilla-notifiers.lo] Error 1 make[3]: Leaving directory `/home/lfs/gnome-2/epiphany-0.7.0/embed/mozilla' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/lfs/gnome-2/epiphany-0.7.0/embed' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/lfs/gnome-2/epiphany-0.7.0' make: *** [all] Error 2
Hmm... snprintf is declared in stdio.h, and mozilla-notifiers.cpp includes that header. So there must be sth. wrong with your system.
nothing wrong with my system as far as I can see. everything compiles normaly.
I mean every other program, except this release of epiphany.
we have a similar report on gentoo bugzilla with a user on the same compiler. he reports that removing any -O? CFLAGS/CXXFLAGS is the workaround. i can't confirm because i don't have a box with that compiler on it. for reference: http://bugs.gentoo.org/show_bug.cgi?id=22413 http://bugs.gentoo.org/show_bug.cgi?id=21314
unfortunately that didn t do the trick. I am still trying to find a solution myself too. What I think is strange is that for example php, mysql, postgres etc includes the snprintf source and header files. thanks for the help anyway.
*** Bug 114801 has been marked as a duplicate of this bug. ***
Fixed in cvs. snprintf is not ansi.