Re: ld necessary? (was Re: help on compile/link flags)

2010-08-12 Thread Edwin Eyan Moragas
On Thu, Aug 12, 2010 at 3:26 PM, patrick keshishian wrote: > > It looks like your lib/ht has undefined references to all above > symbols. You need to figure out where these are defined. Are they part > of picolist or some other library built? > the undefined symbols are part of the main picoLisp f

solved (was Re: ld necessary? (was Re: help on compile/link flags))

2010-08-12 Thread Edwin Eyan Moragas
Hi misc, got picoLisp behaving normally in openbsd. thanks for all who helped. here's the lowdown: partial diff follows: ifeq ($(shell uname), OpenBSD) OS = OpenBSD - PICOLISP-FLAGS = -m32 -rdynamic + PICOLISP-FLAGS = -m32 -rdynamic -Wl,-E LIB-FLAGS = -lc -lm -

Re: ld necessary? (was Re: help on compile/link flags)

2010-08-12 Thread patrick keshishian
On Wed, Aug 11, 2010 at 11:41 PM, Edwin Eyan Moragas wrote: > Hi Patrick, > > On Thu, Aug 12, 2010 at 6:59 AM, patrick keshishian > wrote: > i am stupid. the buffer used for the param to dlopen() was truncated. > expanding it and passing the full absolute path, dlerror() returns > "Ca

Re: ld necessary? (was Re: help on compile/link flags)

2010-08-11 Thread Edwin Eyan Moragas
Hi Patrick, On Thu, Aug 12, 2010 at 6:59 AM, patrick keshishian wrote: i am stupid. the buffer used for the param to dlopen() was truncated. expanding it and passing the full absolute path, dlerror() returns "Cannot load specified object". clues, pointers? >>> >>> You can

Re: ld necessary? (was Re: help on compile/link flags)

2010-08-11 Thread patrick keshishian
On Wed, Aug 11, 2010 at 6:54 AM, Edwin Eyan Moragas wrote: > Hi David, > > CCing misc > > On Wed, Aug 11, 2010 at 9:50 PM, David Coppa wrote: >> On Wed, Aug 11, 2010 at 3:42 PM, Edwin Eyan Moragas wrote: i'm trying to compile picoLisp on obsd 4.7. as suggest i passed an absolute p

Re: ld necessary? (was Re: help on compile/link flags)

2010-08-11 Thread Edwin Eyan Moragas
Hi David, CCing misc On Wed, Aug 11, 2010 at 9:50 PM, David Coppa wrote: > On Wed, Aug 11, 2010 at 3:42 PM, Edwin Eyan Moragas wrote: >>> i'm trying to compile picoLisp on obsd 4.7. >>> >>> as suggest i passed an absolute path to dlopen(). dlerror() says >>> "File not found". >> >> i am stupid

Re: ld necessary? (was Re: help on compile/link flags)

2010-08-11 Thread Edwin Eyan Moragas
> i'm trying to compile picoLisp on obsd 4.7. > > as suggest i passed an absolute path to dlopen(). dlerror() says > "File not found". i am stupid. the buffer used for the param to dlopen() was truncated. expanding it and passing the full absolute path, dlerror() returns "Cannot load specified ob

Re: ld necessary? (was Re: help on compile/link flags)

2010-08-11 Thread Edwin Eyan Moragas
Hi Philip/misc, On Wed, Aug 11, 2010 at 12:01 AM, Philip Guenther wrote: > On Tue, Aug 10, 2010 at 8:41 AM, Edwin Eyan Moragas wrote: > actually find the shared object. If the path you give dlopen() > doesn't contain a slash, then it will _not_ normally search the > current directory. Perhaps

Re: help on compile/link flags

2010-08-11 Thread Janne Johansson
2010/8/10 Edwin Eyan Moragas > On Tue, Aug 10, 2010 at 3:56 PM, David Coppa wrote: > > Where's the error? > > there is none. [...] > the main program (picoLisp) just can't seem to find the > shared lib. > > so whats the error? -- To our sweethearts and wives. May they never meet. -- 19th

Re: ld necessary? (was Re: help on compile/link flags)

2010-08-10 Thread Philip Guenther
On Tue, Aug 10, 2010 at 8:41 AM, Edwin Eyan Moragas wrote: > taking another stab at my problem... > > is ld(1) necessary for dlopen(3) to work? The shared object that you're opening with dlopen() needs to be generated using ld (or cc, which will invoke ld). On the ELF platforms that us normally

ld necessary? (was Re: help on compile/link flags)

2010-08-10 Thread Edwin Eyan Moragas
Hi again misc, taking another stab at my problem... is ld(1) necessary for dlopen(3) to work? thank you and apologies for my previous brainless post. best, /e

Re: help on compile/link flags

2010-08-10 Thread Edwin Eyan Moragas
On Tue, Aug 10, 2010 at 3:56 PM, David Coppa wrote: > Where's the error? there is none. i just wanted to make sure that there are no flags that i missed. the main program (picoLisp) just can't seem to find the shared lib. judging from here, i'll look at the source if it's looking in the right pl

Re: help on compile/link flags

2010-08-10 Thread David Coppa
Where's the error? On Tue, Aug 10, 2010 at 9:43 AM, Edwin Eyan Moragas wrote: > Hi misc, > > i'm stumped and my makefile foo is not up to par. i need some help to > figure this out. > > i'm trying to make picoLisp run on openbsd 4.7. the common gcc > invocation looks like: > > gcc -c -O2 -m32 -pi