Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 2013 18:14:51 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Alexander Panyushkin <vsityz@gmail.com>
Cc:        current@FreeBSD.org
Subject:   Re: graphics/poppler-glib not build
Message-ID:  <13ADF1E8-B97E-44E7-8605-B0A4013EDE69@FreeBSD.org>
In-Reply-To: <5246E64C.3080204@gmail.com>
References:  <5246E64C.3080204@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This looks like it's compiling C++ with clang and trying to link it with =
gcc.  Is there a CXXLD=3Dg++ in there somewhere?

David

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

> Hi all
>=20
> After upgrade ports graphics/poppler-glib not build anymore.
>=20
>=20
> 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
>=20
>=20
> =3D=3D=3D>  Building for poppler-glib-0.22.2
> gmake[1]: =D0=92=D1=85=D0=BE=D0=B4 =D0=B2 =D0=BA=D0=B0=D1=82=D0=B0=D0=BB=
=D0=BE=D0=B3 =
`/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 =3D =
(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 =3D (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 =3D (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 =3D (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 =3D (unsigned int *)cairo_image_surface_get_data (dest_surface);
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
>  CXXLD  libpoppler-cairo.la
> gmake[1]: =D0=92=D1=8B=D1=85=D0=BE=D0=B4 =D0=B8=D0=B7 =D0=BA=D0=B0=D1=82=
=D0=B0=D0=BB=D0=BE=D0=B3=D0=B0 =
`/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/poppler'
> gmake[1]: =D0=92=D1=85=D0=BE=D0=B4 =D0=B2 =D0=BA=D0=B0=D1=82=D0=B0=D0=BB=
=D0=BE=D0=B3 `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
>  GEN    stamp-poppler-enums.h
> gmake  all-recursive
> gmake[2]: =D0=92=D1=85=D0=BE=D0=B4 =D0=B2 =D0=BA=D0=B0=D1=82=D0=B0=D0=BB=
=D0=BE=D0=B3 `/usr/ports/graphics/poppler-glib/work/poppler-0.22.2/glib'
> Making all in .
> gmake[3]: =D0=92=D1=85=D0=BE=D0=B4 =D0=B2 =D0=BA=D0=B0=D1=82=D0=B0=D0=BB=
=D0=BE=D0=B3 `/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
>=20
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to =
"freebsd-current-unsubscribe@freebsd.org"
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13ADF1E8-B97E-44E7-8605-B0A4013EDE69>