Find the answer to your Linux question:
Page 3 of 4 FirstFirst 1 2 3 4 LastLast
Results 21 to 30 of 32
Like Tree1Likes
Originally Posted by Molt Code: #!/volume2/(at)appstore/Perl/usr/perl -w # -*- perl -*- # Generated from aclocal.in; do not edit by hand. Going through that file, what happened so far is actually ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Just Joined!
    Join Date
    Nov 2006
    Location
    Bulgaria
    Posts
    7

    Quote Originally Posted by Molt View Post
    Code:
    #!/volume2/(at)appstore/Perl/usr/perl -w
    # -*- perl -*-
    # Generated from aclocal.in; do not edit by hand.
    Going through that file, what happened so far is actually creaking the directory m4 and creating config-dir too. Both worked fine. Then the aclocal call comes and we all know the result ;-(


    any more ideas? I mean, if it was thorwing some complex errors during compilation, I'd probably be fine..but not being able to call a file isn't enough for me to give up...
    ihuu!

    note this:
    Code:
    #!/volume2/(at)appstore/Perl/usr/perl -w
    Change this line to where your perl executable is, e.g.,
    Code:
    #!/usr/bin/perl -w
    EDIT: Check if your perl executable can be executed, etc.
    Last edited by slonmron; 01-22-2014 at 06:25 PM. Reason: one more thing related to perl executable

  2. #22
    Just Joined!
    Join Date
    Jan 2014
    Posts
    15
    well, it's been in there; it's just that I had to replace the @ sign since the forum doesn't allow @s and stuff unless you have 15 posts or more.

    anyway, I tried a bit and google even more and came to this guy:
    (h**p://forum.synology.com/enu/viewtopic.php?f=38&t=21716&start=45)

    In the end I replaced the builtin perl version by the ipkg one and replaced the ipkg automake (incl. aclocal) by the one of that link

    and what should I say...IT WORKED; haha
    but, well...not all of it, but it went way way further than before!
    gregm likes this.

  3. #23
    Just Joined!
    Join Date
    Jan 2014
    Posts
    15
    Okay, so here I'm back again

    In the end I had to replace a couple IPKG packages with more uptodate self-compiled ones, but that seemed to work fine and the first two commands (./autogen.sh and ./configure) ran without any problems.

    But the following make command vrought up the following lines (after a couple of hundred good-looking ones):
    Code:
    ./.libs/libtesseract.so: undefined reference to `pthread_create'
    ./.libs/libtesseract.so: undefined reference to `sem_wait'
    ./.libs/libtesseract.so: undefined reference to `sem_init'
    ./.libs/libtesseract.so: undefined reference to `sem_post'
    collect2: ld returned 1 exit status
    make[2]: *** [tesseract] Error 1
    trying to ignore it and continuing with make install lead to this:
    Code:
    ./.libs/libtesseract.so: undefined reference to `pthread_create'
    ./.libs/libtesseract.so: undefined reference to `sem_wait'
    ./.libs/libtesseract.so: undefined reference to `sem_init'
    ./.libs/libtesseract.so: undefined reference to `sem_post'
    collect2: ld returned 1 exit status
    make[1]: *** [tesseract] Error 1
    make[1]: Leaving directory `/volume2/Docs/tesseract-ocr/api'
    make: *** [install-recursive] Error 1
    and the final ldconfig command just failed completely
    Code:
    > ldconfig
    -bash: ldconfig: command not found

    But let's start with the first problems: what could I do about the undefined references?

  4. #24
    Linux Newbie
    Join Date
    Nov 2009
    Posts
    224
    Those are probably referring to calls on various libraries. Looks like the threads lib and semaphores. Make sure that the directories in which these libs reside are mentioned in your makefile. Should look something like -L/xxx/yyy/zzz

    "ldconfig" is pretty seminal. How come you don't have access to these commands? Ensure that whatever directories on your system these programs reside is part of your path.

  5. #25
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,274
    Quote Originally Posted by Molt View Post
    Okay, so here I'm back again

    In the end I had to replace a couple IPKG packages with more uptodate self-compiled ones, but that seemed to work fine and the first two commands (./autogen.sh and ./configure) ran without any problems.

    But the following make command vrought up the following lines (after a couple of hundred good-looking ones):
    Code:
    ./.libs/libtesseract.so: undefined reference to `pthread_create'
    ./.libs/libtesseract.so: undefined reference to `sem_wait'
    ./.libs/libtesseract.so: undefined reference to `sem_init'
    ./.libs/libtesseract.so: undefined reference to `sem_post'
    collect2: ld returned 1 exit status
    make[2]: *** [tesseract] Error 1
    trying to ignore it and continuing with make install lead to this:
    Code:
    ./.libs/libtesseract.so: undefined reference to `pthread_create'
    ./.libs/libtesseract.so: undefined reference to `sem_wait'
    ./.libs/libtesseract.so: undefined reference to `sem_init'
    ./.libs/libtesseract.so: undefined reference to `sem_post'
    collect2: ld returned 1 exit status
    make[1]: *** [tesseract] Error 1
    make[1]: Leaving directory `/volume2/Docs/tesseract-ocr/api'
    make: *** [install-recursive] Error 1
    and the final ldconfig command just failed completely
    Code:
    > ldconfig
    -bash: ldconfig: command not found

    But let's start with the first problems: what could I do about the undefined references?
    If the command locate is on your system try:
    Code:
    locate libpthread
    otherwise
    Code:
    find / -name libpthread* 2>/dev/null
    If they come up empty you'll have to install libpthread.

    ldconfig is usually in /sbin - you can use the same commands to look for it.

  6. #26
    Just Joined!
    Join Date
    Nov 2006
    Location
    Bulgaria
    Posts
    7
    Quote Originally Posted by Molt View Post
    ...
    Code:
    ./.libs/libtesseract.so: undefined reference to `pthread_create'
    ./.libs/libtesseract.so: undefined reference to `sem_wait'
    ./.libs/libtesseract.so: undefined reference to `sem_init'
    ./.libs/libtesseract.so: undefined reference to `sem_post'
    collect2: ld returned 1 exit status
    make[2]: *** [tesseract] Error 1
    ...

    But let's start with the first problems: what could I do about the undefined references?
    Some lines above, up to the command which gives the error will be helpful.

    See if you have -pthread option as a command line arg.

  7. #27
    Just Joined!
    Join Date
    Jan 2014
    Posts
    15
    Quote Originally Posted by gregm View Post
    If the command locate is on your system try:
    Code:
    locate libpthread
    otherwise
    Code:
    find / -name libpthread* 2>/dev/null
    If they come up empty you'll have to install libpthread.

    ldconfig is usually in /sbin - you can use the same commands to look for it.
    Code:
    > find / -name libpthread* 2>/dev/null
    /volume2/@optware/arm-none-linux-gnueabi/lib/libpthread-2.5.so
    /volume2/@optware/arm-none-linux-gnueabi/lib/libpthread.so.0
    /volume2/@optware/arm-none-linux-gnueabi/lib/libpthread.so
    /volume2/@optware/lib/libpthread_nonshared.a
    /lib/libpthread.so.0
    > find / -name ldconf* 2>/dev/null
    /volume2/@optware/share/ipkg/intercept/ldconfig
    do they have to be in the path?!?

    Quote Originally Posted by voidpointer69 View Post
    Those are probably referring to calls on various libraries. Looks like the threads lib and semaphores. Make sure that the directories in which these libs reside are mentioned in your makefile. Should look something like -L/xxx/yyy/zzz

    "ldconfig" is pretty seminal. How come you don't have access to these commands? Ensure that whatever directories on your system these programs reside is part of your path.
    well, I suppose it's because I'm working on a NAS... :-/

    SO i had a look in the tesseract-ocr\makefile since that's apperently the folder where it ends, but couldn't find anything like pthread. Same for makefile.in and makefile.am


    To be honest I don't wuite know what to do :-s

  8. #28
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,274
    Quote Originally Posted by Molt View Post
    Code:
    > find / -name libpthread* 2>/dev/null
    /volume2/@optware/arm-none-linux-gnueabi/lib/libpthread-2.5.so
    /volume2/@optware/arm-none-linux-gnueabi/lib/libpthread.so.0
    /volume2/@optware/arm-none-linux-gnueabi/lib/libpthread.so
    /volume2/@optware/lib/libpthread_nonshared.a
    /lib/libpthread.so.0
    > find / -name ldconf* 2>/dev/null
    /volume2/@optware/share/ipkg/intercept/ldconfig
    do they have to be in the path?!?


    well, I suppose it's because I'm working on a NAS... :-/

    SO i had a look in the tesseract-ocr\makefile since that's apperently the folder where it ends, but couldn't find anything like pthread. Same for makefile.in and makefile.am


    To be honest I don't wuite know what to do :-s
    ldconfig must be in the path. It's a shell script so maybe copy it to sbin.

    Libraries are a different path. Once you can run ldconfig do this:
    Code:
    sudo ldconfig 
    ldconfig -p | grep pthread
    and see if pthread is there. If so you're probably good to go. If not:
    Code:
    find / -name ld.so.conf 2>/dev/null
    There may be a couple of them and you'll need to add /lib to the main one - maybe /etc/ld.so.conf.

    Then run the ldconfig commands again.

  9. #29
    Just Joined!
    Join Date
    Jan 2014
    Posts
    15
    Code:
    > ldconfig
    > ldconfig -p | grep pthread
    > ldconfig -p
    >
    whatever was supposed to show up, it didn't
    I added "/volume2/@optware/share/ipkg/intercept" to the path, which indeed made the shell to be able to find ldconfig. But apperently not completely..? :-s

  10. #30
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,274
    No errors? Nothing? Did you find ld.so.conf? Normally there's be some errors when running ldconfig without options unless you're root. Are you logged on as root?

    What do you get from this:
    Code:
    echo $LD_LIBRARY_PATH

Page 3 of 4 FirstFirst 1 2 3 4 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •