could not build scim with the latest svn trunk code

1 message Options
Embed this post
Permalink
Liu, Raymond

could not build scim with the latest svn trunk code

Reply Threaded More More options
Print post
Permalink
Hi

        I am trying to build latest scim code from http://scim.svn.sourceforge.net/svnroot/scim/scim/trunk 

I run bootstrap first, then run configure --prefix=/usr --sysconfdir=/etc
Then make, it turns out to be:

-------------------------------------------------------------------------
make[2]: Entering directory `/home/raymond/moblin/reference/scim/src'
/bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -I.. -I../src -I../intl -DSCIM_DATADIR=\"/usr/share/scim\" -DSCIM_LOCALEDIR=\"/usr/share/locale\" -DSCIM_SYSCONFDIR=\"/etc\" -DSCIM_LIBEXECDIR=\"/usr/lib/scim-1.0\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -DSCIM_MODULE_PATH=\"/usr/lib/scim-1.0\"    -g -O2 -MT ltdl.lo -MD -MP -MF .deps/ltdl.Tpo -c -o ltdl.lo ltdl.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../src -I.. -I../src -I../intl -DSCIM_DATADIR=\"/usr/share/scim\" -DSCIM_LOCALEDIR=\"/usr/share/locale\" -DSCIM_SYSCONFDIR=\"/etc\" -DSCIM_LIBEXECDIR=\"/usr/lib/scim-1.0\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -DSCIM_MODULE_PATH=\"/usr/lib/scim-1.0\" -g -O2 -MT ltdl.lo -MD -MP -MF .deps/ltdl.Tpo -c ltdl.cpp  -fPIC -DPIC -o .libs/ltdl.o
ltdl.cpp: In function 'void* scim::rpl_memcpy(void*, const void*, size_t)':
ltdl.cpp:384: error: pointer of type 'void *' used in arithmetic
ltdl.cpp:384: error: 'void*' is not a pointer-to-object type
ltdl.cpp:384: error: pointer of type 'void *' used in arithmetic
ltdl.cpp:384: error: 'const void*' is not a pointer-to-object type
ltdl.cpp: At global scope:
ltdl.cpp:825: error: 'LTDL_OBJDIR' was not declared in this scope
ltdl.cpp:2071: error: expected initializer before '*' token
ltdl.cpp: In function 'int scim::tryall_dlopen_module(scim::lt_dlhandle_struct**, const char*, const char*, const char*)':
ltdl.cpp:2402: error: 'sprintf' was not declared in this scope
ltdl.cpp: In function 'int scim::find_file_callback(char*, void*, void*)':
ltdl.cpp:2647: error: 'FILE' was not declared in this scope
ltdl.cpp:2647: error: 'pfile' was not declared in this scope
ltdl.cpp:2647: error: expected primary-expression before ')' token
ltdl.cpp:2647: error: expected `;' before 'data2'
ltdl.cpp:2654: error: 'fopen' was not declared in this scope
ltdl.cpp:2656: error: invalid conversion from 'const char*' to 'char*'
ltdl.cpp: At global scope:
ltdl.cpp:2669: error: expected initializer before '*' token
ltdl.cpp: In function 'int scim::try_dlopen(scim::lt_dlhandle_struct**, const char*)':
ltdl.cpp:3003: error: invalid conversion from 'const char*' to 'char*'
ltdl.cpp:3030: error: 'FILE' was not declared in this scope
ltdl.cpp:3030: error: 'file' was not declared in this scope
ltdl.cpp:3056: error: 'isalnum' was not declared in this scope
ltdl.cpp:3079: error: 'find_file' was not declared in this scope
ltdl.cpp:3086: error: 'find_file' was not declared in this scope
ltdl.cpp:3106: error: 'fopen' was not declared in this scope
ltdl.cpp:3122: error: 'fclose' was not declared in this scope
ltdl.cpp:3128: error: 'feof' was not declared in this scope
ltdl.cpp:3130: error: 'fgets' was not declared in this scope
ltdl.cpp:3140: error: 'fgets' was not declared in this scope
ltdl.cpp:3198: error: invalid conversion from 'const char*' to 'char*'
ltdl.cpp:3214: error: 'fclose' was not declared in this scope
ltdl.cpp: In function 'scim::lt_dlhandle_struct* scim::lt_dlopenext(const char*)':
ltdl.cpp:3376: error: invalid conversion from 'const char*' to 'char*'
make[2]: *** [ltdl.lo] Error 1
make[2]: Leaving directory `/home/raymond/moblin/reference/scim/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/raymond/moblin/reference/scim'
make: *** [all] Error 2

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

Building env: ubuntu 8.10, gcc 4.3.2, libtoolize 2.2.4, automake 1.10.1, autoconf 2.61

So how should I solve this problem?  It looks to me that by including some headfile in ltdl.cpp can solve part of the problem. But I think there should be other solution?

Actually, the souce code fetched from ubuntu 8.10 source could be build without running bootstrap successfully( and there are no libltdl dir), while as long as bootstrap is run( a lot of Makefile.in generated from Makefile.am is not the same as the original one come with the src package and libltdl dir added), it stop to work.

Best Regards,
Raymond Liu

------------------------------------------------------------------------------
_______________________________________________
Scim-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/scim-devel