bugFIM: Fbi IMproved - Bugs: bug #53449, make -->...

 
 

bug #53449: make --> //lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line

Submitted by:  None
Submitted on:  Sat 24 Mar 2018 07:43:08 AM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 04 Apr 2018 11:17:25 PM UTC, comment #1: 

I see your LIBS:

LIBS : -lm -lgif -ltiff -lreadline -ljpeg -lpng16 -lexif

does not contain -lpthread.

Does ./configure LIBS=-lpthread ...
or simply modifying the Makefile and adding -lpthread
solve the problem ?

dezperado <dezperado>
Project Administrator
Sat 24 Mar 2018 07:43:08 AM UTC, original submission:  

Hi,

i try to install FIM 0.6 on a Raspberr Pi and get following error when running "make":

g++  -g -O2 -I/usr/include/libpng16   -o fim lex.yy.o yacc.tab.o fim.o fim_plugin.o help.o help-acm.o fim_stream.o readline.o AADevice.o CACADevice.o SDLDevice.o Arg.o Browser.o Cache.o Command.o CommandConsole.o CommandConsole-cmd.o CommandConsole-var.o CommandConsole-init.o CommandConsole-help.o DebugConsole.o DisplayDevice.o FbiStuff.o FbiStuffFbtools.o FbiStuffLoader.o FbiStuffPpm.o FbiStuffBit1.o FbiStuffBit24.o FbiStuffText.o FbiStuffMatrixMarket.o FontServer.o FramebufferDevice.o Image.o Namespace.o Var.o Viewport.o FimWindow.o common.o fim_interpreter.o fim_string.o FbiStuffGif.o FbiStuffTiff.o FbiStuffJpeg.o FbiStuffBmp.o FbiStuffPcx.o FbiStuffPng.o   -lm  -lgif -ltiff  -lreadline -ljpeg -lpng16 -lexif
FbiStuff.o: In function `fim_tempnam':
/home/pi/fim-0.6-trunk/src/./FbiStuff.cpp:1600: warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/bin/ld: Browser.o: undefined reference to symbol 'pthread_create@@GLIBC_2.4'
//lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:520: recipe for target 'fim' failed
make[4]: *** [fim] Error 1
make[4]: Leaving directory '/home/pi/fim-0.6-trunk/src'
Makefile:805: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/pi/fim-0.6-trunk/src'
Makefile:442: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/pi/fim-0.6-trunk/src'
Makefile:447: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/fim-0.6-trunk'
Makefile:358: recipe for target 'all' failed
make: *** [all] Error 2

My System:
Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux

I have installed the following packages:
apt-get install -y flex
apt-get install -y bison
apt-get install -y libexif-dev
apt-get install -y libtiff-dev
apt-get install -y libgif-dev
apt-get -y install automake autoconf libtool
apt-get -y install libreadline-dev

Afterwards i run:
./configure

With the following output:
----------------------------------
        YACC     : bison -y
        LEX      : flex
        CXX      : g++
        CXXFLAGS : -g -O2 -I/usr/include/libpng16
        LIBS     : -lm  -lgif -ltiff  -lreadline -ljpeg -lpng16 -lexif
        prefix   : /usr/local

If you are not satisfied with this configuration, please invoke
  ./configure --help=short
for a complete list of configure options and variables specific to Fim.
When you are satisfied, run 'make' to build Fim and its documentation.
To install the program and its documentation, run 'make install' if you are root,
or run 'su -c '"make install"' if you are not root.
RTFM: README, man fim, man fimrc.  Enjoy!

------------------------------------------------

Afterwards:
make

This brings me to the error on the top.

I was try this but for me it looks good.
root@raspberrypi:/home/pi/fim-0.6-trunk# readelf -s /lib/arm-linux-gnueabihf/libpthread.so.0 | grep pthread_create
   135: 00006364  3760 FUNC    GLOBAL DEFAULT   13 pthread_create@@GLIBC_2.4
   688: 00006364  3760 FUNC    LOCAL  DEFAULT   13 __pthread_create_2_1
  1155: 00006364  3760 FUNC    GLOBAL DEFAULT   13 pthread_create@@GLIBC_2.4

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dezperado (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5