microdc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microdc-devel] Re: compilation error under freebsd 6


From: stgib
Subject: [microdc-devel] Re: compilation error under freebsd 6
Date: Tue, 07 Feb 2006 05:42:10 +0300
User-agent: nail 11.25 7/29/05

"Oskar Liljeblad" <address@hidden> wrote:

> On Tuesday, January 24, 2006 at 20:38, address@hidden wrote:
> > > Just a guess, try running configure with --without-libiconv-prefix
> > It's workaround, anyway:
> > Neither 0.11.0 nor 0.11.1 works.
> > Furthermore, I have no diffiriences between config.log with it
> > and without it except one thing. Here is exception:
>
> I finally got around looking into this... I think one problem
> (at least) is that microdc.h includes iconv.h not knowing if it
> exists or not. And other places in the code it is assumed that
> iconv is available. I've done some modifications to the code.
> Please, if you find the time, try out the source code on this
> location:
>
>   http://oskarsapps.mine.nu/microdc-0.11.2.tar.gz


(Currently I'm using 
FreeBSD 6.1-PRERELEASE #2: Tue Feb  7 01:30:38 MSK 2006)

The first thing I've noticed util.c still complains about undeclared
AF_INET as it was in 0.11.1. Yeah, I avoided it by including 
<sys/socket.h>. After that compilation ends successfully.
But --prefix switch still causes missing iconv support.
Here is a example of it from config.log:

@@ -2689,22 +2691,14 @@
 |   ;
 |   return 0;
 | }
-configure:11818: gcc -o conftest -g -O2 -I/usr/local/include  conftest.c  
/usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib >&5
-configure:11824: $? = 0
-configure:11827: test -z         || test ! -s conftest.err
-configure:11830: $? = 0
-configure:11833: test -s conftest
-configure:11836: $? = 0
-configure:11851: result: yes
-configure:11861: checking how to link with libiconv
-configure:11863: result: /usr/local/lib/libiconv.so -Wl,-rpath 
-Wl,/usr/local/lib
-configure:11874: checking for iconv declaration
-configure:11908: gcc -c -g -O2 -I/usr/local/include conftest.c >&5
-conftest.c:106: error: conflicting types for 'libiconv'
-/usr/local/include/iconv.h:82: error: previous declaration of 'libiconv' was 
here
-conftest.c:106: error: conflicting types for 'libiconv'
-/usr/local/include/iconv.h:82: error: previous declaration of 'libiconv' was 
here
-configure:11914: $? = 1
+configure:11818: gcc -o conftest -g -O2   conftest.c  -liconv >&5
+conftest.c:98:19: iconv.h: No such file or directory
+conftest.c: In function `main':
+conftest.c:102: error: syntax error before "cd"
+conftest.c:103: error: `cd' undeclared (first use in this function)
+conftest.c:103: error: (Each undeclared identifier is reported only once
+conftest.c:103: error: for each function it appears in.)
+configure:11824: $? = 1
 configure: failed program was:
 | /* confdefs.h.  */
 | 

(almost full diff here - http://stgib.pastebin.com/542554)

But it's not only iconv related problem. Becuse --prefix switch just
wipes all -I/usr/local/include -L/usr/local/lib cflag that's encounters.
That's why I suppose configure script is broken in general on freebsd
or at least on 6.X.
Anyway the *workaround* solution is explicity override
--with-libiconv-prefix  and --with-libintl-prefix to /usr/local.
And it works on 0.11.2 as well as on earlier(0.11.0,0.11.1) versions 
that I saw. Dunno why I've not found this solution before. Sry for bother.

But either w/ prefix switch or w/o it userlist and browser list 
(users' filelists) still in non-converted charset regarding to variable
of microdc and chat messages. I guess this problem isn't for same thread.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]