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 133233 - [PATCH] [tcpsink] check possible inet_aton() usage
[PATCH] [tcpsink] check possible inet_aton() usage
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other opensolaris
: Normal normal
: NONE
Assigned To: Stefan Sauer (gstreamer, gtkdoc dev)
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-02 15:51 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2005-03-25 19:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
adds missing function if not present (2.41 KB, patch)
2004-02-02 17:44 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
none Details | Review
add missing test to configure.ac (493 bytes, patch)
2004-02-02 17:46 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
none Details | Review
patch for gst/udp/gstudpsrc.c. (2.44 KB, patch)
2004-02-03 11:27 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
none Details | Review
corrected patrch to gsttcpsink.c (2.77 KB, patch)
2004-02-03 11:30 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
none Details | Review
and another reference to inet_aton (365 bytes, patch)
2004-02-03 15:03 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
none Details | Review

Description Stefan Sauer (gstreamer, gtkdoc dev) 2004-02-02 15:51:04 UTC
gst/tcp/gsttcpsink.c
uses inet_aton(). This function is not available everywhere, so the modules
needs to be disabled, when this function is not available (or better a
replacement should be used)
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2004-02-02 17:44:50 UTC
Created attachment 23996 [details] [review]
adds missing function if not present
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2004-02-02 17:46:04 UTC
Created attachment 23997 [details] [review]
add missing test to configure.ac
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2004-02-03 11:27:54 UTC
Created attachment 24014 [details] [review]
patch for gst/udp/gstudpsrc.c.
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2004-02-03 11:30:04 UTC
Created attachment 24015 [details] [review]
corrected patrch to gsttcpsink.c
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2004-02-03 15:03:38 UTC
Created attachment 24024 [details] [review]
and another reference to inet_aton
Comment 6 Benjamin Otte (Company) 2004-02-08 14:09:34 UTC
I don't think it's a good idea to include our own copy of inet_aton
as. It is deprecated anyway.
The correct way seems to be to use inet_pton and/or gethostbyname.

ORBit might give some pointers on how to do it correctly.
Comment 7 Stefan Sauer (gstreamer, gtkdoc dev) 2004-02-09 12:53:18 UTC
inet_pton seems to be not portable as well (at least I don't have this
on the sun), gethostbyname() is available though.

The supplied patch is definitely not nice (more kind of hotfix), which
actually is uased by many other applications in this form (from gnu
screen to midnight commander).
Comment 8 Thomas Vander Stichele 2004-07-21 08:19:24 UTC
Stefan,

given that the old tcp elements are now deprecated - can you look at the same
issue in server/client src/sink and advise ?
Comment 9 Stefan Sauer (gstreamer, gtkdoc dev) 2004-07-27 10:49:23 UTC
I switched from the solaris box to SuSe91. for GStreamer development as
compiling all gst from CVS takes ages on this old solaris box.
Comment 10 Thomas Vander Stichele 2004-07-28 09:20:10 UTC
right, but you can still check if it's portable or not, no ? :)

otherwise we can't do anything about this bug.
Comment 11 Stephane Loeuillet 2004-12-13 11:27:05 UTC
status update please
Comment 12 Stefan Sauer (gstreamer, gtkdoc dev) 2004-12-14 12:44:23 UTC
then just close the report, today I've tried to build the latest gst-cvs and
there are other packages that I would need (popt).
Comment 13 Thomas Vander Stichele 2004-12-23 12:18:03 UTC
DON'T milestone to next release without a possible resolution
Comment 14 Ronald Bultje 2005-03-25 19:18:06 UTC
Since Stefan can no longer help, unfortunately marking as WONTFIX. If it is
still an issue, people will re-report it.