lists.zerezo.com



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

***BOGO*** Re: [Mingw-users] imlib2



--- Vincent Torri <vtorri@xxxxxxxxxxxx> wrote:
> >> On Wednesday 30 April 2008 15:50, Tripp wrote:

> > api.c: In function 'imlib_context_new':
> > api.c:170: error: 'imlib_context_new': definition is marked as
> > dllimport
> > api.c: At top level:
> > api.c:4787: warning: 'imlib_rotate_image_from_buffer' redeclared
> > without dllimport attribute: previous dllimport ignored

> 
> 1) In Imlib2.h, replace:
> 
> # ifdef WIN32
> #  ifdef BUILDING_DLL
> #   define EAPI __declspec(dllexport)
> #  else
> #   define EAPI __declspec(dllimport)
> #  endif
> # else
> 
> by
> 
> #ifdef _WIN32
> # ifdef EFL_IMLIB2_BUILD
> #  ifdef DLL_EXPORT
> #   define EAPI __declspec(dllexport)
> #  else
> #   define EAPI
> #  endif /* ! DLL_EXPORT */
> # else
> #  define EAPI __declspec(dllimport)
> # endif /* ! EFL_IMLIB2_BUILD */
> #else
> 
> 2) In configure.in
> 
> add:
> 
> AC_LIBTOOL_WIN32_DLL
> 
> before AC_PROG_LIBTOOL
> 
> and add, for example after AC_PROG_LIBTOOL :
> 
> case "$host_os" in
>    mingw*|cegcc)
>      AC_DEFINE(EFL_IMLIB2_BUILD, 1, [Define to mention that imlib2 is
> built])
> esac
> 
> and tell me if it works.

ty,

first, in configure.in, there is no:
AC_PROG_LIBTOOL
it's 
AM_PROG_LIBTOOL

i applied the changes anyway,
and on make it starts off with these 'suspicious'warnings:

$ make
cd . && /bin/sh /c/test/imlib2/missing --run autoconf
configure.in:33: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works,
...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1987: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2000: AC_CACHE_CHECK is expanded from...
aclocal.m4:659: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:5318: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2713: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2644: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:226: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:81: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:61: AC_PROG_LIBTOOL is expanded from...
aclocal.m4:6301: AM_PROG_LIBTOOL is expanded from...
configure.in:33: the top level
configure.in:33: warning: AC_CACHE_VAL(lt_prog_compiler_static_works,
...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:696: AC_LIBTOOL_LINKER_OPTION is expanded from...
configure.in:33: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX,
...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3717: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2721: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1880: _LT_AC_TAGCONFIG is expanded from...
configure.in:33: warning:
AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): 
suspicious cache-id, must contain _cv_ to be cached
configure.in:33: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77,
...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3978: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:3884: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
configure.in:33: warning:
AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious
cache-id, must contain _cv_ to be cached
configure.in:33: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ,
...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:4034: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:3986: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
configure.in:33: warning:
AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious
cache-id, must contain _cv_ to be cached
/bin/sh ./config.status --recheck


and at the end of make it error out like so:

file.c:13:17: error: pwd.h: No such file or directory
file.c: In function '__imlib_FileCanRead':
file.c:234: error: 'S_IRGRP' undeclared (first use in this function)
file.c:234: error: (Each undeclared identifier is reported only once
file.c:234: error: for each function it appears in.)
file.c:234: error: 'S_IROTH' undeclared (first use in this function)
file.c: In function '__imlib_FileHomeDir':
file.c:382: warning: implicit declaration of function 'getuid'
file.c:387: warning: implicit declaration of function 'getpwuid'
file.c:387: warning: assignment makes pointer from integer without a
cast
file.c:390: error: dereferencing pointer to incomplete type
make[3]: *** [file.lo] Error 1
make[3]: Leaving directory `/c/test/imlib2/src/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/test/imlib2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/test/imlib2'
make: *** [all] Error 2


i'd tried Ramiro's patch already.
no diff to the problem i was having.
i also tried applying the patch after the diff sugested above,
and got 
a bunch of these messages on make:

updates.c: In function '__imlib_MergeUpdate':
updates.c:141: warning: visibility attribute not supported in this
configuration; ignored


and it finally rrored out on a string of these errors:

asm_blend.S:28: Error: unknown pseudo-op: `.hidden'
asm_blend.S:28: Warning: .type pseudo-op used outside of .def/.endef
ignored.
asm_blend.S:28: Error: junk at end of line, first unrecognized
character is `_'


thanks for the assistance
tripp





      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users