bugpyFormex - Bugs: bug #39025, GTS installation problems

 
 

bug #39025: GTS installation problems

Submitted by:  francesco <francio>
Submitted on:  Mon 20 May 2013 01:02:51 PM UTC  
 
Category: InstallSeverity: 3 - Normal
Item Group: Install ErrorStatus: Fixed
Privacy: PublicAssigned to: Benedict Verhegghe <bverheg>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 30 Jan 2014 02:08:31 PM UTC, comment #4:

No further reaction since a long time, so I suppose this issue is fixed. If not, feel free to reopen.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Mon 20 May 2013 02:49:19 PM UTC, comment #3:

I think a broken install of libgts in /usr/local/lib is the culprit. I suggest you remove /usr/local/lib/libgts* and install the official binary package libgts-0.7-5 instead. That should have a correct binding with the libm library.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Mon 20 May 2013 02:33:20 PM UTC, comment #2:

Here the results of the suggested commands. Take into account that I have alredy teh full installation from the gts website so I dont know if this affect the output of these commands

>>> pkg-config --cflags --libs glib-2.0 gts


-pthread -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -L/usr/local/lib -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0

>>> ldd /usr/local/bin/gtsset

linux-vdso.so.1 => (0x00007fff4a561000)
libgts-0.7.so.5 => /usr/local/lib/libgts-0.7.so.5 (0x00007f0b959d5000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f0b956de000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0b954c1000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0b9511e000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0b94e99000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f0b94c5d000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f0b94a55000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0b95a62000)

after sudo ldconfig

>>>ldd /usr/local/bin/gtsset

linux-vdso.so.1 => (0x00007fff279ff000)
libgts-0.7.so.5 => /usr/local/lib/libgts-0.7.so.5 (0x00007ff4e6824000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff4e652d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff4e6310000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff4e5f6d000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff4e5ce8000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff4e5aac000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff4e58a4000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff4e68b1000)

francesco <francio>
Project Member
Mon 20 May 2013 02:25:33 PM UTC, comment #1:

Francesco,

Can you post the output of the following commands:

Also, try running

and then run the last command (ldd) again.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Mon 20 May 2013 01:02:51 PM UTC, original submission:

I dont know how to install gts with the instruction given in pyformex. Isolved the problem installing it from the gts website, but I noticed that is
a recurrent problem experienced by other people so maybe it will be useful to fix it. Hereby I report all the errors and the problems i got
that will maybe helpo to find a solution

I had installed gts on ubuntu 11. It was prevuosly working but lately I am not able to run it anymore, but i cannot say from which
pyformex version . As I thougth it was depending on a bad gts installation, I followed the instruction
in the Makefile in the gts folder of pyformex.

I have installed libgts-dev, libglib2.0-dev, pkg-config
then I made 'sudo make' in the gts folder but I get this error

gcc coarsen.c `pkg-config --cflags --libs glib-2.0 gts` -o gtscoarsen
/usr/local/lib/libgts.so: error: undefined reference to 'sincos'
/usr/local/lib/libgts.so: error: undefined reference to 'sqrt'
/usr/local/lib/libgts.so: error: undefined reference to 'ceil'
/usr/local/lib/libgts.so: error: undefined reference to 'log'
/usr/local/lib/libgts.so: error: undefined reference to 'exp'
/usr/local/lib/libgts.so: error: undefined reference to 'atan2'
/usr/local/lib/libgts.so: error: undefined reference to 'cos'
/tmp/cc4PNhTS.o:coarsen.c:function stop_number_verbose: error: undefined reference to 'floor'
/tmp/cc4PNhTS.o:coarsen.c:function stop_number_verbose: error: undefined reference to 'floor'
/tmp/cc4PNhTS.o:coarsen.c:function stop_number_verbose: error: undefined reference to 'floor'
/tmp/cc4PNhTS.o:coarsen.c:function stop_number_verbose: error: undefined reference to 'floor'
collect2: ld returned 1 exit status
make: *** [gtscoarsen] Error 1

I have also tried to change the FLAG as suggested in the Makefile. it does not give any error as you can see in the report file

gcc coarsen.c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -o gtscoarsen
gcc inside.c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -o gtsinside
gcc refine.c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -o gtsrefine
gcc set.c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -o gtsset
gcc smooth.c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wl,--export-dynamic -lgts -lm -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -o gtssmooth
rst2man gtscoarsen.1.rst > gtscoarsen.1
rst2man gtsinside.1.rst > gtsinside.1
rst2man gtsrefine.1.rst > gtsrefine.1
rst2man gtsset.1.rst > gtsset.1
rst2man gtssmooth.1.rst > gtssmooth.1
install -d /usr/local/bin /usr/local/share/man/man1
install -m 0755 gtscoarsen gtsinside gtsrefine gtsset gtssmooth /usr/local/bin
install -m 0644 gtscoarsen.1 gtsinside.1 gtsrefine.1 gtsset.1 gtssmooth.1 /usr/local/share/man/man1
rm -f gtscoarsen gtsinside gtsrefine gtsset gtssmooth gtscoarsen.1 gtsinside.1 gtsrefine.1 gtsset.1 gtssmooth.1

But when I try to run the example Boolean in pyformex raise this error
Error while executing command:
gtsset -v union /tmp/tmpYGNy4M.gts /tmp/tmpVXMcQF.gts > /tmp/tmp8g6FSZ.gts

Running the same command in the terminal says
gtsset: symbol lookup error: /usr/local/lib/libgts-0.7.so.5: undefined symbol: atan2

francesco <francio>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bverheg (Posted a comment)
  • -unavailable- added by francio (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 30 Jan 2014 02:08:31 PM UTCbverhegCategoryNone=>Install
      Item GroupNone=>Install Error
      StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 20 May 2013 02:25:33 PM UTCbverhegAssigned toNone=>bverheg

    Back to the top


    Powered by Savane 3.1-cleanup1