After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 114696 - build error implicit declaration of function `int snprintf(...)'
build error implicit declaration of function `int snprintf(...)'
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
0.x
Other Linux
: High normal
: 1.0
Assigned To: Marco Pesenti Gritti
Marco Pesenti Gritti
: 114801 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-06-08 10:12 UTC by Serge
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Serge 2003-06-08 10:12:12 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
Comment 1 Christian Persch 2003-06-08 11:57:31 UTC
Hmm... snprintf is declared in stdio.h, and mozilla-notifiers.cpp
includes that header. So there must be sth. wrong with your system.
Comment 2 Serge 2003-06-08 12:53:19 UTC
nothing wrong with my system as far as I can see. everything compiles
normaly. 
Comment 3 Serge 2003-06-08 12:59:04 UTC
I mean every other program, except this release of epiphany.
Comment 4 Alastair Tse 2003-06-09 14:26:00 UTC
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
Comment 5 Serge 2003-06-09 14:35:53 UTC
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.
Comment 6 Marco Pesenti Gritti 2003-06-09 21:05:01 UTC
*** Bug 114801 has been marked as a duplicate of this bug. ***
Comment 7 Marco Pesenti Gritti 2003-06-16 16:18:58 UTC
Fixed in cvs. snprintf is not ansi.