* Compiling Berkeley db for Ruby under Cygwin
@ 2002-01-03 9:38 Albert L. Wagner
2002-01-03 15:28 ` Gerrit P. Haase
2002-01-04 15:23 ` Gerrit P. Haase
0 siblings, 2 replies; 7+ messages in thread
From: Albert L. Wagner @ 2002-01-03 9:38 UTC (permalink / raw)
To: Cygwin, ruby-talk
Even as a Linux user, I probably stay as confused about compiling
under cygwin as some windows users. I cannot figure out just
where the linker is looking to find cygwin-ruby16. The only
cygwin-ruby16 on my Win2k machine is D:\ruby\bin\cygwin-16.dll.
I installed Ruby1.6.5 from the executable installer into
D:\ruby. I also have cygwin installed in D:\cygwin. I have tried
several variations of the --with-db-* options and have moved
shortcuts of cygwin-16.dll to several different directories. But
I still cannot get past the following error. I would appreciate
any tips. Thanks ahead for your help.
$ make
make[1]: Entering directory `/pkg/bdb-0.2.7/src'
dllwrap --target=cygwin --as=as --dlltool-name=dlltool
--driver-name=gcc --expor
t-all -s --def=bdb.def -L/usr/local/cygwin-local/lib
-L/cygdrive/d/ruby/lib -L/
usr/local/lib -o bdb.so bdb.o common.o cursor.o delegator.o env.o
lock.o log.o r
ecnum.o transaction.o -L. -lcygwin-ruby16 -ldb
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cann
ot find -lcygwin-ruby16
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
make[1]: *** [bdb.so] Error 1
make[1]: Leaving directory `/pkg/bdb-0.2.7/src'
make: *** [all] Error 2
--
"It requires wisdom to understand wisdom:
the music is nothing if the audience is deaf."
- Walter Lippman
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compiling Berkeley db for Ruby under Cygwin
2002-01-03 9:38 Compiling Berkeley db for Ruby under Cygwin Albert L. Wagner
@ 2002-01-03 15:28 ` Gerrit P. Haase
2002-01-04 15:23 ` Gerrit P. Haase
1 sibling, 0 replies; 7+ messages in thread
From: Gerrit P. Haase @ 2002-01-03 15:28 UTC (permalink / raw)
To: Albert L. Wagner; +Cc: Cygwin, ruby-talk
Hallo Albert,
Am 2002-01-03 um 18:40 schriebst du:
> Even as a Linux user, I probably stay as confused about compiling
> under cygwin as some windows users. I cannot figure out just
> where the linker is looking to find cygwin-ruby16.
1. Use the correct linker flag `-L/path/to/librubys.a/' and look
if there is a lib named libcygwin-ruby16.a, isn't the name of
the import lib librubys.a or was it changed since 1.6.5 and 1.6.6?
2. use `my' ruby-1.6.5 package which is available at this URI:
http://familiehaase.de/cywgin/ruby/ and installs the lib and
headers and dll in `cygwin-usual' places (/usr/local/lib/ruby/...,
/usr/local/bin)
3. Build ruby yourself:
./configure --enable-shared
make
make test
make install
Gerrit
--
=^..^= mailto:gp@familiehaase.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compiling Berkeley db for Ruby under Cygwin
2002-01-03 9:38 Compiling Berkeley db for Ruby under Cygwin Albert L. Wagner
2002-01-03 15:28 ` Gerrit P. Haase
@ 2002-01-04 15:23 ` Gerrit P. Haase
2002-01-04 15:46 ` Gerrit P. Haase
1 sibling, 1 reply; 7+ messages in thread
From: Gerrit P. Haase @ 2002-01-04 15:23 UTC (permalink / raw)
To: Albert L. Wagner; +Cc: Cygwin, ruby-talk
Hallo Albert,
Am 2002-01-03 um 18:40 schriebst du:
> Even as a Linux user, I probably stay as confused about compiling
> under cygwin as some windows users. I cannot figure out just
> where the linker is looking to find cygwin-ruby16.
1. Use the correct linker flag `-L/path/to/librubys.a/' and look
if there is a lib named libcygwin-ruby16.a, isn't the name of
the import lib librubys.a or was it changed since 1.6.5 and 1.6.6?
2. use `my' ruby-1.6.5 package which is available at this URI:
http://familiehaase.de/cywgin/ruby/ and installs the lib and
headers and dll in `cygwin-usual' places (/usr/local/lib/ruby/...,
/usr/local/bin)
3. Build ruby yourself:
./configure --enable-shared
make
make test
make install
Gerrit
--
=^..^= mailto:gp@familiehaase.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compiling Berkeley db for Ruby under Cygwin
2002-01-04 15:23 ` Gerrit P. Haase
@ 2002-01-04 15:46 ` Gerrit P. Haase
2002-01-04 22:38 ` Charles Wilson
0 siblings, 1 reply; 7+ messages in thread
From: Gerrit P. Haase @ 2002-01-04 15:46 UTC (permalink / raw)
To: Gerrit P. Haase @ cygwin; +Cc: Albert L. Wagner, ruby-talk
Hallo Albert,
> Am 2002-01-03 um 18:40 schriebst du:
>> Even as a Linux user, I probably stay as confused about compiling
>> under cygwin as some windows users. I cannot figure out just
>> where the linker is looking to find cygwin-ruby16.
> 1. Use the correct linker flag `-L/path/to/librubys.a/' and look
> if there is a lib named libcygwin-ruby16.a, isn't the name of
> the import lib librubys.a or was it changed since 1.6.5 and 1.6.6?
Ah, no, librubys.a is the static lib, the importlib is:
/usr/local/lib/libcygwin-ruby16.a in my build.
> 2. use `my' ruby-1.6.5 package which is available at this URI:
> http://familiehaase.de/cywgin/ruby/ and installs the lib and
> headers and dll in `cygwin-usual' places (/usr/local/lib/ruby/...,
> /usr/local/bin)
> 3. Build ruby yourself:
> ./configure --enable-shared
> make
> make test
> make install
Gerrit
--
=^..^= mailto:gp@familiehaase.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compiling Berkeley db for Ruby under Cygwin
2002-01-04 15:46 ` Gerrit P. Haase
@ 2002-01-04 22:38 ` Charles Wilson
2002-01-05 3:35 ` Gerrit P. Haase
0 siblings, 1 reply; 7+ messages in thread
From: Charles Wilson @ 2002-01-04 22:38 UTC (permalink / raw)
To: Gerrit P. Haase; +Cc: Gerrit P. Haase @ cygwin, Albert L. Wagner, ruby-talk
Gerrit P. Haase wrote:
>
>>1. Use the correct linker flag `-L/path/to/librubys.a/' and look
>> if there is a lib named libcygwin-ruby16.a, isn't the name of
>> the import lib librubys.a or was it changed since 1.6.5 and 1.6.6?
>>
>
> Ah, no, librubys.a is the static lib, the importlib is:
> /usr/local/lib/libcygwin-ruby16.a in my build.
FYI, ".dll.a" is a recognized extention meaning "import lib". If found
in the library search path, it takes precedence over ".a" unless -static
is used. E.G.
/my/lib/path/ contains
libfoo.dll.a
libfoo.a
Then
gcc <list of object files> -L/my/lib/path -lfoo
will find and link against /my/lib/path/libfoo.dll.a
gcc -static <list of object files> -L/my/lib/path -lfoo
will link against /my/lib/path/libfoo.a
--Chuck
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compiling Berkeley db for Ruby under Cygwin
2002-01-04 22:38 ` Charles Wilson
@ 2002-01-05 3:35 ` Gerrit P. Haase
0 siblings, 0 replies; 7+ messages in thread
From: Gerrit P. Haase @ 2002-01-05 3:35 UTC (permalink / raw)
To: cygwin; +Cc: Albert L. Wagner, ruby-talk
Hallo Charles,
Am 2002-01-05 um 07:39 schriebst du:
> Gerrit P. Haase wrote:
>>>1. Use the correct linker flag `-L/path/to/librubys.a/' and look
>>> if there is a lib named libcygwin-ruby16.a, isn't the name of
>>> the import lib librubys.a or was it changed since 1.6.5 and 1.6.6?
>> Ah, no, librubys.a is the static lib, the importlib is:
>> /usr/local/lib/libcygwin-ruby16.a in my build.
> FYI, ".dll.a" is a recognized extention meaning "import lib". If found
> in the library search path, it takes precedence over ".a" unless -static
> is used. E.G.
> /my/lib/path/ contains
> libfoo.dll.a
> libfoo.a
> Then
> gcc <list of object files> -L/my/lib/path -lfoo
> will find and link against /my/lib/path/libfoo.dll.a
> gcc -static <list of object files> -L/my/lib/path -lfoo
> will link against /my/lib/path/libfoo.a
Yep, that is the 'standard' but ruby is ruby;)
Thay have their own syntax like perl too.
There is the static lib, /usr/local/lib/ruby/1.6/i686-cygwin/librubys.a
and an importlib /usr/local/lib/libcygwin-ruby16.a
Maybe a symlink libcygwin-ruby16.a -> libcygwin-ruby16.dll.a
would help?
Gerrit
--
=^..^= mailto:gp@familiehaase.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compiling Berkeley db for Ruby under Cygwin
@ 2002-01-03 15:11 Gareth Pearce
0 siblings, 0 replies; 7+ messages in thread
From: Gareth Pearce @ 2002-01-03 15:11 UTC (permalink / raw)
To: alwagner, cygwin, ruby-talk
ummm could it possibly be that the dll is in ruby\bin - and your lib path on
the compile line is ruby\lib ? - but then the name cygwin-16.dll seems wrong
so maybe you typed that little snippit out incorrectly.
Gareth
>Even as a Linux user, I probably stay as confused about compiling
>under cygwin as some windows users. I cannot figure out just
>where the linker is looking to find cygwin-ruby16. The only
>cygwin-ruby16 on my Win2k machine is D:\ruby\bin\cygwin-16.dll.
>I installed Ruby1.6.5 from the executable installer into
>D:\ruby. I also have cygwin installed in D:\cygwin. I have tried
>several variations of the --with-db-* options and have moved
>shortcuts of cygwin-16.dll to several different directories. But
>I still cannot get past the following error. I would appreciate
>any tips. Thanks ahead for your help.
>
>$ make
>make[1]: Entering directory `/pkg/bdb-0.2.7/src'
>dllwrap --target=cygwin --as=as --dlltool-name=dlltool
>--driver-name=gcc --expor
>t-all -s --def=bdb.def -L/usr/local/cygwin-local/lib
>-L/cygdrive/d/ruby/lib -L/
>usr/local/lib -o bdb.so bdb.o common.o cursor.o delegator.o env.o
>lock.o log.o r
>ecnum.o transaction.o -L. -lcygwin-ruby16 -ldb
>/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
>cann
>ot find -lcygwin-ruby16
>collect2: ld returned 1 exit status
>dllwrap: gcc exited with status 1
>make[1]: *** [bdb.so] Error 1
>make[1]: Leaving directory `/pkg/bdb-0.2.7/src'
>make: *** [all] Error 2
>
>
>--
>"It requires wisdom to understand wisdom:
> the music is nothing if the audience is deaf."
> - Walter Lippman
>
>--
>Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting: http://cygwin.com/bugs.html
>Documentation: http://cygwin.com/docs.html
>FAQ: http://cygwin.com/faq/
>
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-01-05 11:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-03 9:38 Compiling Berkeley db for Ruby under Cygwin Albert L. Wagner
2002-01-03 15:28 ` Gerrit P. Haase
2002-01-04 15:23 ` Gerrit P. Haase
2002-01-04 15:46 ` Gerrit P. Haase
2002-01-04 22:38 ` Charles Wilson
2002-01-05 3:35 ` Gerrit P. Haase
2002-01-03 15:11 Gareth Pearce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).