Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: Compile errors on OpenBSD 4.8

fsvs
Discussion topic

Back to topic list

Re: Compile errors on OpenBSD 4.8

Author froh
Full name Frode Haugsgjerd
Date 2011-06-25 13:41:37 PDT
Message Hi again Phil !

2011/6/25 Philipp Marek <philipp at marek dot priv dot at>

> Hello Frode!
>
>
> > Now gmake fails much later:
> ...
> > /home/froh/sw/src/fs​vs-1.2/src/fsvs.c:47​6: undefined reference to
> `fmemopen'
> Well, this should be seen during configure - HAVE_FMEMOPEN - and then just
> the
> debug-buffer options should be disabled during compilation.
>
> You could try --enable-release - this would remove all debug print calls
> (although the
> function would have to be removed by the linker). But that shouldn't be
> necessary!
>
>
That worked, and adding this to configure also worked:
if [ `uname -s` = "OpenBSD" ]
then
        # OSX 10.6 - thanks, Florian.
        EXTRALIBS="-liconv"
        have_fmemopen=no
fi


> > /home/froh/sw/src/fs​vs-1.2/src/helper.c:​1436: undefined reference to
> > `iconv_open'
> ...
> > From a quick web search it seems fmemopen is a glibc only
> >
> > I did some testing of openbsd's iconv, as suggested in this thread:
> >
> https://bitbucket.or​g/medoc/recoll/issue​/61/configure-on-ope​nbsd-fails-on-iconv
> ...
> > $ gcc iconvtest.c
> > iconvtest.c:8: error: conflicting types for 'libiconv_open'
> > /usr/local/include/iconv.h:73: error: previous declaration of
> > 'libiconv_open' was here
> Well, this is a compile error; with FSVS it's a linker problem.
>
>

> Perhaps this is an artifact of not running configure again after the
> update; please
> re-run "make clean", "configure", and "make".
>

Thanks, but I always do this when recompiling.

I talked to a Mr. "NicM" on #openbsd@freenode, who identified a use of
iconv_open outside #ifdef HAVE_LOCALES in helper.c

Then i supected HAVE_LOCALES was not set, and commented out the ifdef
around #include <iconv.h>
Now fsvs compiles.

--
Frode Haugsgjerd
Norway
Attachments

« Previous message in topic | 9 of 11 | Next message in topic »

Messages

Show all messages in topic

Compile errors on OpenBSD 4.8 froh Frode Haugsgjerd 2011-06-22 10:36:34 PDT
     Re: Compile errors on OpenBSD 4.8 pmarek P.Marek 2011-06-22 12:27:45 PDT
         RE: Re: Compile errors on OpenBSD 4.8 froh Frode Haugsgjerd 2011-06-22 12:58:29 PDT
     RE: Re: Compile errors on OpenBSD 4.8 pmarek P.Marek 2011-06-23 00:49:09 PDT
         RE: Re: Compile errors on OpenBSD 4.8 froh Frode Haugsgjerd 2011-06-23 17:24:36 PDT
             Re: Compile errors on OpenBSD 4.8 pmarek P.Marek 2011-06-25 00:04:48 PDT
                 Re: Compile errors on OpenBSD 4.8 pmarek P.Marek 2011-06-25 02:13:22 PDT
     Re: Compile errors on OpenBSD 4.8 pmarek P.Marek 2011-06-25 11:23:48 PDT
         Re: Compile errors on OpenBSD 4.8 froh Frode Haugsgjerd 2011-06-25 13:41:37 PDT
             Re: Compile errors on OpenBSD 4.8 pmarek P.Marek 2011-06-26 00:06:51 PDT
                 Re: Compile errors on OpenBSD 4.8 froh Frode Haugsgjerd 2011-06-26 04:05:32 PDT
Messages per page: