Hmm, the previous report is wrong:
on kubuntu everything is ok.

it's on CentOS 5.2
flex 2.5.4

which is failing, and also the mentioned line fixes the .c generation, but then compilation fails with:
Linking bin/openchangepfadmin
libmapi.so.0.8: undefined reference to `libmapi_utf8_convert_wrap'
collect2: ld returned 1 exit status
make: *** [bin/openchangepfadmin] Error 1

So it's indeed the flex version.

Alessandro

Alessandro Briosi ha scritto:
Hi Julien,
I also experienced the same problem.
Building from trunk on kubuntu intrepid 8.10
flex version is 2.5.35

the problem seems to be in the autogen or the configure script which generate the following lines in the Makefile:

libmapi/utf8_convert.yy.c:      libmapi/utf8_convert.l
        @echo "Generating $@"
        @echo $(FLEX) -Plibmapi_utf8_convert_ -t $< > $@

the @echo is somehow strange :)
changing to:
libmapi/utf8_convert.yy.c:      libmapi/utf8_convert.l
        @echo "Generating $@"
        @$(FLEX) -Plibmapi_utf8_convert_ -t $< > $@

Seems to fix this problem.

Alessandro

Julien Kerihuel ha scritto:
On Mon, 2009-01-26 at 14:09 +0100, Alessandro Manzi wrote:
i have got an error trying to install libmapi 0.8 when i run make it stops with this code :

libmapi.so.0.8: undefined reference to `libmapi_utf8_convert_wrap'
collect2: ld returned 1 exit status
make: *** [bin/openchangepfadmin] Error 1

anyone knows how to fix this problem
help will be appreciate
thanks

Hi Alessandro,

Looks to me like your flex version is outdated.

In the meantime, the libmapi-0.8 package (on sourceforge.net) already
includes generated files for the lexer, so this problem shouldn't occur.

Are you building trunk or the release package?

Cheers,
Julien.



------------------------------------------------------------------------

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to