[gstreamer-bugs] [Bug 572993] New: Broken libregex dependency on Windows
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Tue Feb 24 07:01:32 PST 2009
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=572993
GStreamer | gst-plugins-base | Ver: git
Summary: Broken libregex dependency on Windows
Product: GStreamer
Version: git
Platform: Other
OS/Version: Windows
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: lrn1986 at gmail.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
I'm trying to build plugins-base (with enabled subparse) on Windows with
MinGW/MSys. It requires reg* functions (declared in regex.h). I found necessary
package (with import library, shared library and header) at
http://sourceforge.net/project/showfiles.php?group_id=7382&package_id=12650
Configure picks up regex.h and subsequently enables subparse, however it never
passes -lregex to the linker (and i can't find a place where it should do that,
it seems that configure script is not supposed to do that at all), as a result
subparse fails to build:
libtool: link: gcc -shared .libs/libgstsubparse.dll.def
.libs/libgstsubparse_la-gstssaparse.o .libs/libgstsubparse_la-gstsubparse.o
.libs/libgstsubparse_la-samiparse.o .libs/libgstsubparse_la-tmplayerparse.o
.libs/libgstsubparse_la-mpl2parse.o -LD:/msys/local/lib -L/usr/local/lib
-L/d/python26/Lib /usr/local/lib/libgstbase-0.10.dll.a
/usr/local/lib/libgstreamer-0.10.dll.a -lgobject-2.0 -lgmodule-2.0
-lgthread-2.0 /usr/local/lib/libxml2.dll.a -ldl -lpthread -lws2_32 -lglib-2.0
/usr/local/lib/libintl.dll.a /usr/local/lib/libiconv.dll.a -mms-bitfields
-mms-bitfields -o .libs/libgstsubparse.dll -Wl,--enable-auto-image-base
-Xlinker --out-implib -Xlinker .libs/libgstsubparse.dll.a
Info: resolving ___gst_debug_min by linking to __imp____gst_debug_min
(auto-import)
Creating library file: .libs/libgstsubparse.dll.a
d:/mingw/bin/../lib/gcc/mingw32/4.3.0/../../../../mingw32/bin/ld.exe: warning:
auto-importing has been activated without --enable-auto-import specified on the
command line.
This should work unless it involves constant data structures referencing
symbols from auto-imported DLLs.
.libs/libgstsubparse_la-gstsubparse.o: In function
`gst_sub_parse_data_format_autodetect':
d:\projects\gst-plugins-base\gst\subparse/gstsubparse.c:1003: undefined
reference to `regexec'
d:\projects\gst-plugins-base\gst\subparse/gstsubparse.c:1007: undefined
reference to `regexec'
d:\projects\gst-plugins-base\gst\subparse/gstsubparse.c:992: undefined
reference to `regcomp'
d:\projects\gst-plugins-base\gst\subparse/gstsubparse.c:992: undefined
reference to `regcomp'
d:\projects\gst-plugins-base\gst\subparse/gstsubparse.c:998: undefined
reference to `regerror'
configuring with LDFLAGS="-L/local/lib" and LIBS="-lregex" fixes the problem.
Alternatively you may want to rewrite subparse to use GLib for regular
expressions.
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=572993.
More information about the Gstreamer-bugs
mailing list