Building Win32 RePlugin

Joshua 'Schwa' Gargus schwa at cc.gatech.edu
Sun Mar 2 19:53:25 UTC 2003


After failing last night to successfully use the REPLUGIN.DLL downloaded from
Andrew's site, I tried to build my own.  I am using the same 3.4-5170 image and
source tree that I have successfully built other VMs and plugins from.  I'm 
using Andreas' Win32 toolchain.

I downloaded the RePlugin package from SqueakMap and added RePlugin to the list
of external plugins, and generated the external plugins.  The build goes fine until 
the end:


dlltool \
        --output-def ./RePlugin.def \
        --output-exp ./RePlugin.exp \
        --output-lib ./RePlugin.lib \
        RePlugin.o chartables.o get.o pcre.o study.o
dllwrap -mwindows \
        -def ./RePlugin.def \
        -o   ./RePlugin.dll \
        -lddraw -lopengl32 -lwsock32 -lcomdlg32 -lole32 -lwinmm -luser32 -lgdi32 -lkernel32 -lcrtdll \
        ./RePlugin.exp \
        RePlugin.o chartables.o get.o pcre.o study.o
pcre.o: In function `escapes':
//C/Documents and Settings/localadmin/My Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/pcre.c(.data+0x34): multiple definition of `pcre_malloc'
RePlugin.o(.data+0x0):RePlugin.c: first defined here
pcre.o: In function `escapes':
//C/Documents and Settings/localadmin/My Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/pcre.c(.data+0x38): multiple definition of `pcre_free'
RePlugin.o(.data+0x4):RePlugin.c: first defined here
get.o: In function `pcre_free_substring':
//C/Documents and Settings/localadmin/My Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/get.c:224: undefined reference to `_imp__pcre_free'
get.o: In function `pcre_free_substring_list':
//C/Documents and Settings/localadmin/My Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/get.c:160: undefined reference to `_imp__pcre_free'
get.o: In function `pcre_get_substring':
//C/Documents and Settings/localadmin/My Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/get.c:200: undefined reference to `_imp__pcre_malloc'
get.o: In function `pcre_get_substring_list':
//C/Documents and Settings/localadmin/My Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/get.c:122: undefined reference to `_imp__pcre_malloc'
study.o: In function `pcre_study':
//C/Documents and Settings/localadmin/My Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/study.c:387: undefined reference to `_imp__pcre_malloc'
dllwrap: gcc exited with status 1
make[1]: *** [makedll] Error 1
make[1]: Leaving directory `C:/Documents and Settings/localadmin/My Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin'
make: *** [RePlugin.dll] Error 2


Looking back through the archives, I saw that PhiHo also encoutered
the _imp__prce_malloc, but couldn't find out how he rectified the
situation.  Any ideas?

Thanks,
Joshua




More information about the Squeak-dev mailing list