Problems building with libtool

2013-05-15 Thread William Orr
Hello, I'm having trouble building some software (out of ports) with libtool. The libtool linking step always fails reporting that it cannot find strchr or strlen when linking, depending on the component I'm compiling. However, gcc finds all of the other functions from libs (glib, gio, pcre,

Re: Problems building with libtool

2013-05-15 Thread Stuart Henderson
On 2013-05-15, William Orr wrote: > Hello, > > I'm having trouble building some software (out of ports) with libtool. > The libtool linking step always fails reporting that it cannot find > strchr or strlen when linking, depending on the component I'm compiling. > However, gcc finds all of the

Re: Problems building with libtool

2013-05-15 Thread William Orr
Thanks for the quick response! Even with the OpenBSD libtool, the problem persists. If I rerun the command that it outputted with the -lc flag passed on the command line, it works perfectly. Both libtools strip it out, as I discovered in this mailing list post[1]. I'm not sure why I need to pa

Re: Problems building with libtool

2013-05-15 Thread Philip Guenther
On Wed, May 15, 2013 at 5:00 PM, William Orr wrote: > Even with the OpenBSD libtool, the problem persists. If I rerun the command > that it outputted with the -lc flag passed on the command line, it works > perfectly. Both libtools strip it out, as I discovered in this mailing list > post[1]. I'm

Re: Problems building with libtool

2013-05-15 Thread William Orr
Thanks for the detailed answer, I understand why passing -lc is a bad idea now after reading your response and thinking on it. I removed -Wl,--no-undefined from AM_LDFLAGS, and it worked perfectly. Philip Guenther Wednesday, May 15, 2013 8:26 PM OpenBSD does not, i