Re: graphics/poppler-glib not build

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Sat, 28 Sep 2013 18:14:51 +0100
This looks like it's compiling C++ with clang and trying to link it with gcc.  Is there a CXXLD=g++ in there somewhere?

David

On 28 Sep 2013, at 15:23, Alexander Panyushkin <vsityz_at_gmail.com> wrote:

> Hi all
> 
> After upgrade ports graphics/poppler-glib not build anymore.
> 
> 
> pkg_info -R poppler-glib-0.22.2
> [...]
> Required by:
> gimp-app-2.8.6_1,1
> py27-gimp-app-2.8.6
> evince-2.32.0_11
> epdfview-0.1.8_4
> 
> 
> ===>  Building for poppler-glib-0.22.2
> gmake[1]: Вход в каталог `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/poppler'
>  CXX    CairoFontEngine.lo
> In file included from CairoFontEngine.cc:39:
> ./CairoFontEngine.h:98:11: warning: private field 'doc' is not used [-Wunused-private-field]
>  PDFDoc *doc;
>          ^
> 1 warning generated.
>  CXX    CairoOutputDev.lo
> CairoOutputDev.cc:1626:29: warning: cast from 'unsigned char *' to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4
>      [-Wcast-align]
>    uint32_t *source_data = (uint32_t*)cairo_image_surface_get_data(source);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> CairoOutputDev.cc:2386:12: warning: cast from 'unsigned char *' to 'unsigned int *' increases required alignment from 1 to 4 [-Wcast-align]
>    dest = (unsigned int *) (buffer + y * row_stride);
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> CairoOutputDev.cc:2536:12: warning: cast from 'unsigned char *' to 'unsigned int *' increases required alignment from 1 to 4 [-Wcast-align]
>    dest = (unsigned int *) (buffer + y * row_stride);
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> CairoOutputDev.cc:2765:26: warning: cast from 'unsigned char *' to 'uint32_t *' (aka 'unsigned int *') increases required alignment from 1 to 4
>      [-Wcast-align]
>        uint32_t *dest = (uint32_t *) (buffer + y * stride);
>                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 4 warnings generated.
>  CXX    CairoRescaleBox.lo
> CairoRescaleBox.cc:283:10: warning: cast from 'unsigned char *' to 'unsigned int *' increases required alignment from 1 to 4 [-Wcast-align]
>  dest = (unsigned int *)cairo_image_surface_get_data (dest_surface);
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
>  CXXLD  libpoppler-cairo.la
> gmake[1]: Выход из каталога `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/poppler'
> gmake[1]: Вход в каталог `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
>  GEN    stamp-poppler-enums.h
> gmake  all-recursive
> gmake[2]: Вход в каталог `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
> Making all in .
> gmake[3]: Вход в каталог `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
>  CC     poppler-enums.lo
>  CXX    poppler-action.lo
>  CXX    poppler-date.lo
>  CXX    poppler-document.lo
>  CXX    poppler-page.lo
>  CXX    poppler-attachment.lo
> poppler-attachment.cc:123:65: warning: cast from 'GTime *' (aka 'int *') to 'time_t *' (aka 'long *') increases required alignment from 4 to 8
>      [-Wcast-align]
>    _poppler_convert_pdf_date_to_gtime (embFile->createDate (), (time_t *)&attachment->ctime);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> poppler-attachment.cc:125:62: warning: cast from 'GTime *' (aka 'int *') to 'time_t *' (aka 'long *') increases required alignment from 4 to 8
>      [-Wcast-align]
>    _poppler_convert_pdf_date_to_gtime (embFile->modDate (), (time_t *)&attachment->mtime);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
>  CXX    poppler-form-field.lo
>  CXX    poppler-annot.lo
>  CXX    poppler-layer.lo
>  CXX    poppler-media.lo
>  CXX    poppler-movie.lo
>  CXX    poppler-cached-file-loader.lo
>  CXX    poppler-input-stream.lo
>  CXX    poppler.lo
>  CXXLD  libpoppler-glib.la
> c++: warning: argument unused during compilation: '-pthread'
> c++: warning: argument unused during compilation: '-pthread'
> c++: warning: argument unused during compilation: '-pthread'
> c++: warning: argument unused during compilation: '-pthread'
> /usr/bin/ld: cannot find -lstdc++
> c++: error: linker command failed with exit code 1 (use -v to see invocation)
> gmake[3]: *** [libpoppler-glib.la] Error 1
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
Received on Sat Sep 28 2013 - 15:15:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC