[Q] Building Error - GST on Windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Q] Building Error - GST on Windows

Chun, Sungjin
Hi,

Following messages are my error messages during building gst-3.0 with
gcc-4.2.2(mingw).

Can anyonne help me? Thank you in advance.

make[2]: Leaving directory `/C/Users/Sungjin/Documents/GST/smalltalk-3.0/libgst'
Making all in .
make[2]: Entering directory `/C/Users/Sungjin/Documents/GST/smalltalk-3.0'
/bin/sh ./libtool --tag=CC --mode=link gcc -Os -Wall -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -Wwrite-strings -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -o gst-tool.exe -export-dynamic gst-tool.o libgst/libgst.la -lws2_32 -lm
gcc -Os -Wall -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -Wwrite-strings -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -o .libs/gst-tool.exe gst-tool.o -Wl,--export-dynamic libgst/.libs/libgst.dll.a -lws2_32 -Wl,--rpath -Wl,/C/GST/lib
gst-tool.o:gst-tool.c:(.text+0x54): undefined reference to `_strsep'
gst-tool.o:gst-tool.c:(.text+0x154): undefined reference to `_strsep'
gst-tool.o:gst-tool.c:(.text+0x60c): undefined reference to `_setenv'
gst-tool.o:gst-tool.c:(.text+0x620): undefined reference to `_setenv'
gst-tool.o:gst-tool.c:(.text+0x634): undefined reference to `_setenv'
collect2: ld returned 1 exit status
make[2]: *** [gst-tool.exe] Error 1
make[2]: Leaving directory `/C/Users/Sungjin/Documents/GST/smalltalk-3.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/C/Users/Sungjin/Documents/GST/smalltalk-3.0'
make: *** [all] Error 2



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [Q] Building Error - GST on Windows

Paolo Bonzini-2
[hidden email] wrote:
> Hi,
>
> Following messages are my error messages during building gst-3.0 with
> gcc-4.2.2(mingw).
>
> Can anyonne help me? Thank you in advance.

Sure.  You can get around it by taking lib-src/strsep.c and
lib-src/setenv.c, and dropping them at the end of gst-tool.c.

Otherwise, this patch should fix it too:

diff --git a/Makefile.am b/Makefile.am
index 7db64a3..d955fe1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -114,6 +114,6 @@ endif
  # we use noinst here.
  noinst_PROGRAMS = gst-tool
  gst_tool_SOURCES = gst-tool.c
-gst_tool_LDADD = libgst/libgst.la
-gst_tool_DEPENDENCIES = libgst/libgst.la
+gst_tool_LDADD = libgst/libgst.la lib-src/library.la
+gst_tool_DEPENDENCIES = libgst/libgst.la lib-src/library.la
  gst_tool_LDFLAGS = -export-dynamic


Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk