DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th May 2009
WeakSauceIII WeakSauceIII is offline
Port Guard
 
Join Date: May 2008
Posts: 36
Default Undefined function in OpenBSD

This may be all BSDs and may be better suited for a different area on the board such as general programming so I apologize if it's out of place. Here is my issue.

I compile a lot of stuff on OpenBSD andi am usually able to get it going. Recently I tried to compile the R statistics package which is not in ports/packages. I downloaded the code from their site. It all compiles fine but dies in the linking phase. What i see is an undefined reference to the function __isfinitel. This function is declared as 'extern' in math.h. The problem is at link time i do not see this function in any shared library. I grep the system and I don't see it in source or binary, just the extern declaration in math.h. Now the function __isfinite is define in all those places as well as included in libc.a and others. It seems the difference between these two similar named functions is the numeric precision they use. I am running 4.4. I can post output from all this if needed.
Thanks all for your time.
Reply With Quote
  #2   (View Single Post)  
Old 19th May 2009
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by WeakSauceIII View Post
Recently I tried to compile the R statistics package which is not in ports/packages.
That is NOT true. R is ported to OpenBSD!
Reply With Quote
  #3   (View Single Post)  
Old 19th May 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,028
Default

It's math/R -- the package for 4.4 is R-2.6.2p2.tgz, for 4.5 it's R-2.8.0.tgz, and -current is at 2.8.1.
Reply With Quote
  #4   (View Single Post)  
Old 20th May 2009
WeakSauceIII WeakSauceIII is offline
Port Guard
 
Join Date: May 2008
Posts: 36
Default

Nice, the port would have saved me about a week so i wish i would have posted sooner. I did get it going though by changing a header file. It does seem that isfinitel is not implemented in openbsd. Am i wrong on that? The header i changed basically was checking to see if the finite functions would be built with math.h or the built in R math header. Having it use the R files worked. In the end i appreciate what i learned about building stuff on openbsd though.

thanks for your help.
Reply With Quote
  #5   (View Single Post)  
Old 20th May 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,028
Default

Ports are just the infrastructure to build the 3rd party apps from their source. This scaffolding may include OpenBSD specific patches. Looking at the -current tree for math/R, I see 8 patches: http://www.openbsd.org/cgi-bin/cvswe...ath/R/patches/

Several of these affect library selections/lookups.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ncurses & function keys JimC OpenBSD General 1 24th October 2011 02:36 PM
How to vectorize a function for numpy arrays in Python kasse Programming 0 26th August 2008 12:12 PM
ports/sysutils/pfstat; undefined reference to `gdImagePng' chris FreeBSD Ports and Packages 2 5th July 2008 06:31 PM


All times are GMT. The time now is 11:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick