Re: Compile problem

Josip Deanovic <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <4043864.jpmLqaZVH9@libria>
Quoting message written on Thursday 2015-06-18 21:03:18:
> You might want to add '--enable-silent-rules', although it will not
> solve any of your problem, just make the compilation more readable.

Hi Christophe, thank you for the response.
I have used the '--enable-silent-rules' this time.

> > [...]
> > wraster.h:182: error: wrong number of arguments specified for
> > 'deprecated' attribute
> Could you please provide the answer for both commands:
>   gcc --version

$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

>   fgrep -C1 deprecated wrlib/wraster.h

$ fgrep -C1 deprecated wrlib/wraster.h
#if __GNUC__ >= 4
#define __wrlib_deprecated(msg)  __attribute__ ((deprecated(msg)))
#elif __GNUC__ >= 3
#define __wrlib_deprecated(msg)  __attribute__ ((deprecated))
#else
#define __wrlib_deprecated(msg)
#endif
--
        unsigned int optimize_for_speed:1
            __wrlib_deprecated("Flag optimize_for_speed in RContext is not used anymore "
                               "and will be removed in future version, please do not use");
--
 */
#undef __wrlib_deprecated


> > After that I can continue compiling the source until I get to the next
> > problem: [...]
> > /usr/bin/ld: cannot open linker script file libwraster.map: No such
> > file or directory
>
> There are 2 things that would help understanding what's going on:
>  - the file 'config.log'

I have attached the config.log file (~102KiB).

>  - fgrep libwraster.map wrlib/Makefile

$ fgrep libwraster.map wrlib/Makefile
am__append_1 = -Wl,--version-script=libwraster.map
EXTRA_libwraster_la_DEPENDENCIES = libwraster.map
CLEANFILES = libwraster.map
libwraster.map: $(include_HEADERS) $(top_srcdir)/script/generate-mapfile-from-header.sh
                -n LIBWRASTER -v $(WRASTER_VERSION) $(srcdir)/$(include_HEADERS) > libwraster.map


Here is how compile looks with '--enable-silent-rules' option:

Window Maker was configured as follows:

Installation path prefix            : /usr/local/windowmaker-0.95.7
Installation path for binaries      : /usr/local/windowmaker-0.95.7/bin
Installation path for libraries     : /usr/local/windowmaker-0.95.7/lib
Installation path for WPrefs.app    : /usr/local/windowmaker-0.95.7
Supported core features:            : Animations MWMHints XDnD
Supported X extensions:             : XShape XShm Xinerama RandR
Supported graphic format libraries  : XPM PNG JPEG GIF TIFF WebP Magick builtin-PPM
Unsupported features                :
Antialiased text support in WINGs   : yes
Pango text layout support in WINGs  : no
Translated languages to support     : disabled

$ make
Generating config-paths.h
make  all-recursive
make[1]: Entering directory `/home/djosip/download/novi_wmaker/wmaker-crm'
Making all in wrlib
make[2]: Entering directory `/home/djosip/download/novi_wmaker/wmaker-crm/wrlib'
Making all in .
make[3]: Entering directory `/home/djosip/download/novi_wmaker/wmaker-crm/wrlib'
  CC     raster.lo
In file included from raster.c:29:
wraster.h:182: error: wrong number of arguments specified for 'deprecated' attribute
make[3]: *** [raster.lo] Error 1
make[3]: Leaving directory `/home/djosip/download/novi_wmaker/wmaker-crm/wrlib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/djosip/download/novi_wmaker/wmaker-crm/wrlib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/djosip/download/novi_wmaker/wmaker-crm'
make: *** [all] Error 2


At that point I need to modify the file wrlib/wraster.h in order to continue
with the compile.
In line 181 of the file wrlib/wraster.h I simply change these lines:

        unsigned int optimize_for_speed:1
            __wrlib_deprecated("Flag optimize_for_speed in RContext is not used anymore "
                               "and will be removed in future version, please do not use");

with these lines:
        unsigned int optimize_for_speed:1;
/*            __wrlib_deprecated("Flag optimize_for_speed in RContext is not used anymore "
                               "and will be removed in future version, please do not use");*/


And then I can continue with the compile until the next error:

$ make
make  all-recursive
make[1]: Entering directory `/home/djosip/download/novi_wmaker/wmaker-crm'
Making all in wrlib
make[2]: Entering directory `/home/djosip/download/novi_wmaker/wmaker-crm/wrlib'
Making all in .
make[3]: Entering directory `/home/djosip/download/novi_wmaker/wmaker-crm/wrlib'
  CC     raster.lo
  CC     alpha_combine.lo
  CC     draw.lo
  CC     color.lo
  CC     load.lo
  CC     save.lo
  CC     gradient.lo
  CC     xpixmap.lo
  CC     convert.lo
  CC     context.lo
  CC     misc.lo
  CC     scale.lo
  CC     rotate.lo
  CC     flip.lo
  CC     convolve.lo
  CC     save_xpm.lo
  CC     xutil.lo
  CC     load_ppm.lo
  CC     load_gif.lo
  CC     load_jpeg.lo
  CC     load_png.lo
  CC     load_tiff.lo
  CC     load_xpm.lo
  CC     load_webp.lo
  CC     load_magick.lo
  CCLD   libwraster.la
/usr/bin/ld: cannot open linker script file libwraster.map: No such file or directory
collect2: ld returned 1 exit status
make[3]: *** [libwraster.la] Error 1
make[3]: Leaving directory `/home/djosip/download/novi_wmaker/wmaker-crm/wrlib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/djosip/download/novi_wmaker/wmaker-crm/wrlib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/djosip/download/novi_wmaker/wmaker-crm'
make: *** [all] Error 2


Obviously libwraster.map file doesn't get created and I don't see why.
If I copy libwraster.map from older windowmaker source directories then the
source would compile but I prefer to get it created during compile time as it
probably should be. Otherwise I cannot be sure that some bugs regarding widget
elements drawing I would like to report are actually bugs and not the result of
an invalid compile.


Please let me know if there is anything else I could do to help understanding this
issue.

Several months ago when I have compiled windowmaker I had no problems compiling
windowmaker. It might be that some update changed the behavior of my system
because if I do "make distclean" and manually remove libwraster.map file (it is
not removed by the "make distclean" command then I cannot compile even the code
several months old which was previously successfully compiled.


Regards

-- 
Josip Deanovic
config.log (text/x-log, 102.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.