perl on pc 104 - Embedded

This is a discussion on perl on pc 104 - Embedded ; 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 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: perl on pc 104

  1. perl on pc 104

    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

  2. Re: perl on pc 104

    Ron Eggler wrote:

    > 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.


    Not libdb.so is your problem (you added it with -ldb already). libpthread.so
    is missed. Add -lpthread to the list of libraries to link.

    JB

+ Reply to Thread