Click here to get back home

perl on pc 104

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
perl on pc 104 Ron Eggler 03-27-2008
Posted by Ron Eggler on March 27, 2008, 1:11 pm
Please log in for more thread options
Hi,

I need to get perl5 on our little pc104 (with goede) system in order to get
ssh-keygen( openSSH) - which depends on openSSL which depends on perl5 -
running.
When I'm trying to compile (configure) it, I get this messages:
[shell]
I used the command:

cc -o
try -O2 -fno-strict-aliasing -pipe -I/usr/local/include -L/usr/local/lib
try.c -lnsl -ldb -ldl -lm -lcrypt -lutil -lc
./try

and I got the following output:

/usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined reference
to `pthread_condattr_setpshared'
/usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined reference
to `pthread_mutexattr_destroy'
/usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined reference
to `pthread_mutexattr_setpshared'
/usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined reference
to `pthread_mutexattr_init'
/usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined reference
to `pthread_mutex_trylock'
collect2: ld returned 1 exit status
I can't compile the test program.
(The supplied flags or libraries might be incorrect.)

You have a BIG problem. Shall I abort Configure [y] y
Ok. Stopping Configure.
[root@NEMS perl-5.10.0]# find / -name "libdb.so"
/usr/lib/libdb.so
[/shell]

Any ideawhat I would be doing wrongly and what that exactly is, as you can
see, i made a find on the bottom and i do have the libdb.so available
in /usr/lib.

Thanks for any help!
--
chEErs roN

Posted by John Bokma on March 27, 2008, 1:19 pm
Please log in for more thread options

[..]

> /usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined
> reference to `pthread_mutexattr_setpshared'
> /usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined
> reference to `pthread_mutexattr_init'
> /usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined

[..]

> Any ideawhat I would be doing wrongly and what that exactly is, as you
> can see, i made a find on the bottom and i do have the libdb.so
> available in /usr/lib.

But do you have pthread.so (I assume it's called like that).

(Unless I am not entirely awake and read the messages wrong...)

--
John

http://johnbokma.com/perl/

Posted by Ron Eggler on March 27, 2008, 2:32 pm
Please log in for more thread options
John Bokma wrote:

>
> [..]
>
>> /usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined
>> reference to `pthread_mutexattr_setpshared'
>> /usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined
>> reference to `pthread_mutexattr_init'
>> /usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined
>
> [..]
>
>> Any ideawhat I would be doing wrongly and what that exactly is, as you
>> can see, i made a find on the bottom and i do have the libdb.so
>> available in /usr/lib.
>
> But do you have pthread.so (I assume it's called like that).
>
> (Unless I am not entirely awake and read the messages wrong...)

I'm not sure what i would need to install to get this problem with pthread
resolved... :o

--
chEErs roN

Posted by Ben Morrow on March 27, 2008, 1:38 pm
Please log in for more thread options

>
> I need to get perl5 on our little pc104 (with goede) system in order to get
> ssh-keygen( openSSH) - which depends on openSSL which depends on perl5 -
> running.
> When I'm trying to compile (configure) it, I get this messages:
> [shell]
> I used the command:
>
> cc -o
> try -O2 -fno-strict-aliasing -pipe -I/usr/local/include -L/usr/local/lib
> try.c -lnsl -ldb -ldl -lm -lcrypt -lutil -lc
> ./try
>
> and I got the following output:
>
> /usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined reference
> to `pthread_condattr_setpshared'
<snip>
>
> Any ideawhat I would be doing wrongly and what that exactly is, as you can
> see, i made a find on the bottom and i do have the libdb.so available
> in /usr/lib.

The problem is not libdb.so, it's that libdb.so requires the pthread
functions, which aren't getting loaded. Do you have a version of
libdb.so which doesn't require threads, and can you persuade Configure
to use it?

Alternatively, can you Configure perl with -Duseithreads? I wouldn't
normally recommend this on a Unix machine (perl threads are practically
useless when you have fork(2)), but it may be an easy way to pull the
thread libraries in.

Otherwise, you may have more luck asking perl5-porters@perl.org: they
are the people who maintain perl, and they will certainly be interested
in situations where perl won't configure.

Ben


Posted by Ron Eggler on March 27, 2008, 2:31 pm
Please log in for more thread options
Ben Morrow wrote:

>
>>
>> I need to get perl5 on our little pc104 (with goede) system in order to
>> get ssh-keygen( openSSH) - which depends on openSSL which depends on
>> perl5 - running.
>> When I'm trying to compile (configure) it, I get this messages:
>> [shell]
>> I used the command:
>>
>> cc -o
>> try -O2 -fno-strict-aliasing -pipe -I/usr/local/include -L/usr/local/lib
>> try.c -lnsl -ldb -ldl -lm -lcrypt -lutil -lc
>> ./try
>>
>> and I got the following output:
>>
>> /usr/lib/gcc/i586-linux-uclibc/3.4.4/../../../libdb.so: undefined
>> reference to `pthread_condattr_setpshared'
> <snip>
>>
>> Any ideawhat I would be doing wrongly and what that exactly is, as you
>> can see, i made a find on the bottom and i do have the libdb.so available
>> in /usr/lib.
>
> The problem is not libdb.so, it's that libdb.so requires the pthread
> functions, which aren't getting loaded. Do you have a version of
> libdb.so which doesn't require threads, and can you persuade Configure
> to use it?
>
> Alternatively, can you Configure perl with -Duseithreads? I wouldn't
> normally recommend this on a Unix machine (perl threads are practically
> useless when you have fork(2)), but it may be an easy way to pull the
> thread libraries in.
>
> Otherwise, you may have more luck asking perl5-porters@perl.org: they
> are the people who maintain perl, and they will certainly be interested
> in situations where perl won't configure.
>
> Ben

Alright, ./Configure -Duseithreads went well withou doing anything else to
pthread libraries.
BUT I get this on make test or make install:
[shell]
NEMS perl-5.10.0 # make test
make: *** No rule to make target `/usr/include/bits/errno_values.h', needed
by `miniperlmain.o'. Stop.
NEMS perl-5.10.0 # make install
make install.perl install.man STRIPFLAGS= DESTDIR=""
make[1]: Entering directory `/uc/home/ron/software/perl-5.10.0'
make[1]: *** No rule to make target `/usr/include/bits/errno_values.h',
needed by `miniperlmain.o'. Stop.
make[1]: Leaving directory `/uc/home/ron/software/perl-5.10.0'
make: *** [install] Error 2
[/shell]
Not really sure wht this means and if this relates to the pthread problem i
had before.
--
chEErs roN

Similar ThreadsPosted
PERL to mean what 'perldoc perl' says is wrong? (was: Re: perl should be improved and perl6) April 14, 2008, 11:37 pm
FAQ 3.0: What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? October 31, 2004, 12:03 pm
FAQ 3.0 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? February 2, 2005, 12:03 pm
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? March 28, 2005, 12:03 am
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? June 12, 2005, 11:03 am
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? August 29, 2005, 10:03 pm
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? October 28, 2005, 10:03 pm
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? December 25, 2005, 5:03 am
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? January 8, 2006, 11:03 pm
FAQ 2.18 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? January 16, 2006, 11:03 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap