Hi leondo,

Seems that sedna-ruby is not aware of sedna C library naming on Windows. Try
to rename one of the files located in driver/c.

1. sednamt.lib -> sedna.lib (probably sednamt.exp -> sedna.exp);
2. sednamd.lib -> sedna.lib (probably sednamd.exp -> sedna.exp);
3. libsednamt.lib -> sedna.lib (or libsedna.lib)
4. libsednamd.lib -> sedna.lib (or libsedna.lib)

One of that should work. Please, let us know results.

Ivan Shcheklein,
Sedna Team

Hello I have a problem installing sedna-ruby rubygem to my system (
> http://rubygems.org/gems/sedna).
> My system:
> Windows 7 x64
> ruby 1.9.2p136 [i386-mingw32]
> rubygems 1.6.2 (I tried with older versions too before upgrading to 1.6.2)
> DevKit-tdm-32-4.5.1-20101214-1400
> sedna-3.4.66 both x86 and x64
>
> I'm trying to install it with the commands gem install sedna, gem install
> sedna -- --with-sedna-dir=path_to_my_sedna, but it makes errors.
>
> Temporarily enhancing PATH to include DevKit...
> Building native extensions.  This could take a while...
> ERROR:  Error installing sedna:
>         ERROR: Failed to build gem native extension.
>
>         C:/Ruby192/bin/ruby.exe extconf.rb
> --with-sedna-dir=E:/_temp/sedna-3.4.
> 6-src-win/sedna-3.4.66
> checking for SEconnect() in -lsedna... no
>
>
> ==============================================================================
> Could not find libsedna.
>
> * Did you install Sedna in a non default location? Call extconf.rb
>   with --with-sedna-dir=/path/to/sedna to override it. With rubygems:
>
>     gem install sedna -- --with-sedna-dir=/path/to/sedna
>
> * Did you install a version of Sedna not compiled for your architecture?
>   The standard Sedna distribution of Sedna is compiled for i386. If your
>   platform is x86_64, and your Ruby was compiled as x86_64, you must
>   recompile Sedna for x86_64 as well. Download the sources at:
>
>     http://modis.ispras.ru/sedna/download.html
>
> ==============================================================================
>
>
>
>
> *The mkmf.log file in the
> C:\Ruby192\lib\ruby\gems\1.9.1\gems\sedna-0.6.0\ext\sedna has this content:
> *
>
>
> -----------------------------------------------------------------------------------------------------------------------
> find_library: checking for SEconnect() in -lsedna... --------------------
> no
>
> "gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -IC:/Ruby192/include/ruby-1.9.1/ruby/backward
> -IC:/Ruby192/include/ruby-1.9.1 -I.
> -IE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/include     -O3 -g -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
> -LC:/Ruby192/lib -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/lib -L.
> -lmsvcrt-ruby191-static  -lshell32 -lws2_32  "
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <winsock2.h>
> 4: #include <windows.h>
> 5: int main() {return 0;}
> /* end */
>
> "gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -IC:/Ruby192/include/ruby-1.9.1/ruby/backward
> -IC:/Ruby192/include/ruby-1.9.1 -I.
> -IE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/include     -O3 -g -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
> -LC:/Ruby192/lib -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/lib -L.
> -lmsvcrt-ruby191-static -lsedna  -lshell32 -lws2_32  "
> conftest.c: In function 't':
> conftest.c:8:53: error: 'SEconnect' undeclared (first use in this function)
> conftest.c:8:53: note: each undeclared identifier is reported only once for
> each function it appears in
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <winsock2.h>
> 4: #include <windows.h>
> 5:
> 6: /*top*/
> 7: int main() {return 0;}
> 8: int t() { void ((*volatile p)()); p = (void ((*)()))SEconnect; return 0;
> }
> /* end */
>
> "gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -IC:/Ruby192/include/ruby-1.9.1/ruby/backward
> -IC:/Ruby192/include/ruby-1.9.1 -I.
> -IE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/include     -O3 -g -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
> -LC:/Ruby192/lib -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/lib -L.
> -lmsvcrt-ruby191-static -lsedna  -lshell32 -lws2_32  "
> c:/ruby192/a/mingw/bin/../lib/gcc/mingw32/4.5.1/../../../../mingw32/bin/ld.exe:
> cannot find -lsedna
> collect2: ld returned 1 exit status
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <winsock2.h>
> 4: #include <windows.h>
> 5:
> 6: /*top*/
> 7: int main() {return 0;}
> 8: int t() { SEconnect(); return 0; }
> /* end */
>
> "gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -IC:/Ruby192/include/ruby-1.9.1/ruby/backward
> -IC:/Ruby192/include/ruby-1.9.1 -I.
> -IE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/include     -O3 -g -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
> -LC:/Ruby192/lib -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/lib
> -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/driver/c -L.
> -lmsvcrt-ruby191-static -lsedna  -lshell32 -lws2_32  "
> conftest.c: In function 't':
> conftest.c:8:53: error: 'SEconnect' undeclared (first use in this function)
> conftest.c:8:53: note: each undeclared identifier is reported only once for
> each function it appears in
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <winsock2.h>
> 4: #include <windows.h>
> 5:
> 6: /*top*/
> 7: int main() {return 0;}
> 8: int t() { void ((*volatile p)()); p = (void ((*)()))SEconnect; return 0;
> }
> /* end */
>
> "gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
> -IC:/Ruby192/include/ruby-1.9.1/ruby/backward
> -IC:/Ruby192/include/ruby-1.9.1 -I.
> -IE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/include     -O3 -g -Wextra
> -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
> -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
> -LC:/Ruby192/lib -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/lib
> -LE:/_temp/sedna-3.4.66-src-win/sedna-3.4.66/driver/c -L.
> -lmsvcrt-ruby191-static -lsedna  -lshell32 -lws2_32  "
> c:/ruby192/a/mingw/bin/../lib/gcc/mingw32/4.5.1/../../../../mingw32/bin/ld.exe:
> cannot find -lsedna
> collect2: ld returned 1 exit status
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <winsock2.h>
> 4: #include <windows.h>
> 5:
> 6: /*top*/
> 7: int main() {return 0;}
> 8: int t() { SEconnect(); return 0; }
> /* end */
>
>
>
> -----------------------------------------------------------------------------------------------------------
>
>
> It doesn't find SEconnect() in sedna.c? I don't understand what is
> happenning.
> If anyone encountered something like this please help. I know it's not
> something wrong with sedna, but I can't find a solution.
> Thank you in advance
>
>
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> Sedna-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to