Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2013 13:08:26 GMT
From:      Stefan Kück <stefankueck@online.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184564: gpicview 0.2.4 doen't compile with clang
Message-ID:  <201312071308.rB7D8Q0P014732@oldred.freebsd.org>
Resent-Message-ID: <201312071310.rB7DA0pi082708@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184564
>Category:       ports
>Synopsis:       gpicview 0.2.4 doen't compile with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 07 13:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Kück
>Release:        9.2-RELEASE-p2
>Organization:
>Environment:
FreeBSD BiXi.Manteuffel 9.2-RELEASE-p2 FreeBSD 9.2-RELEASE-p2 #0: Sat Dec  7 12:26:20 CET 2013     root@BiXi.Manteuffel:/usr/obj/usr/src/sys/BiXi  amd64

>Description:
clang compile error

stefan@BiXi:/usr/ports/graphics/gpicview # make install
===>  License GPLv2 accepted by the user
===>  Found saved configuration for gpicview-0.2.3
===> Fetching all distfiles required by gpicview-0.2.4 for building
===>  Extracting for gpicview-0.2.4
=> SHA256 Checksum OK for gpicview-0.2.4.tar.gz.
===>  Patching for gpicview-0.2.4
===>   gpicview-0.2.4 depends on executable: update-desktop-database - found
===>   gpicview-0.2.4 depends on executable: gmake - found
===>   gpicview-0.2.4 depends on executable: pkgconf - found
===>   gpicview-0.2.4 depends on executable: gtk-update-icon-cache - found
===>   gpicview-0.2.4 depends on file: /usr/local/bin/intltool-extract - found
===>   gpicview-0.2.4 depends on shared library: libintl.so - found
===>   gpicview-0.2.4 depends on shared library: libatk-1.0.so - found
===>   gpicview-0.2.4 depends on shared library: libgdk_pixbuf-2.0.so - found
===>   gpicview-0.2.4 depends on shared library: libglib-2.0.so - found
===>   gpicview-0.2.4 depends on shared library: libpcre.so - found
===>   gpicview-0.2.4 depends on shared library: libgtk-x11-2.0.so - found
===>   gpicview-0.2.4 depends on shared library: libpango-1.0.so - found
===>  Configuring for gpicview-0.2.4
configure: loading site script /usr/ports/Templates/config.site
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether gmake sets $(MAKE)... yes
checking whether gmake supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... amd64-portbld-freebsd9.2
checking host system type... amd64-portbld-freebsd9.2
checking how to print strings... printf
checking for style of include used by gmake... GNU
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking dependency style of cc... gcc3
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... (cached) /usr/bin/fgrep
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert amd64-portbld-freebsd9.2 file names to amd64-portbld-freebsd9.2 format... func_convert_file_noop
checking how to convert amd64-portbld-freebsd9.2 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... cpp
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd9.2 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for library containing strerror... none required
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking whether cc understands -c and -o together... (cached) yes
checking dependency style of cc... (cached) gcc3
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking whether cc understands -c and -o together... (cached) yes
checking dependency style of cc... (cached) gcc3
checking for ANSI C header files... (cached) yes
checking whether gmake supports nested variables... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... no
checking for bindtextdomain in -lintl... yes
checking for ngettext in -lintl... yes
checking for dgettext in -lintl... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking whether NLS is requested... yes
checking for intltool >= 0.40.0... 0.50.2 found
checking for intltool-update... /usr/local/bin/intltool-update
checking for intltool-merge... /usr/local/bin/intltool-merge
checking for intltool-extract... /usr/local/bin/intltool-extract
checking for xgettext... (cached) /usr/local/bin/xgettext
checking for msgmerge... /usr/local/bin/msgmerge
checking for msgfmt... (cached) /usr/local/bin/msgfmt
checking for gmsgfmt... (cached) /usr/local/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.16.3
checking for XML::Parser... ok
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking for X11... yes
checking for jpeg_start_decompress in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating data/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

GPicView....................... : Version 0.2.4

Prefix..........................: /usr/local

The binary will be installed in /usr/local/bin

http://lxde.org/

===>  Building for gpicview-0.2.4
gmake  all-recursive
gmake[1]: Entering directory `/tmp/ports/usr/ports/graphics/gpicview/work/gpicview-0.2.4'
Making all in src
gmake[2]: Entering directory `/tmp/ports/usr/ports/graphics/gpicview/work/gpicview-0.2.4/src'
  CC       gpicview-gpicview.o
  CC       gpicview-image-list.o
  CC       gpicview-main-win.o
  CC       gpicview-image-view.o
  CC       gpicview-working-area.o
  CC       gpicview-ptk-menu.o
  CC       gpicview-file-dlgs.o
  CC       gpicview-jpeg-tran.o
  CC       gpicview-tran-supp.o
  CC       gpicview-pref.o
main-win.c  CC       gpicview-jhead.o
:381:9: error: non-void function 'main_win_open' should return a value [-Wreturn-type]
        return;
        ^
main-win.c:510:36: warning: if statement has empty body [-Wempty-body]
        if( mw->animation_timeout );
                                   ^
main-win.c:510:36: note: put the semicolon on a separate line to silence this warning
  CC       gpicview-exif.o
  CC       gpicview-jpgfile.o
1 warning and 1 error generated.
gmake[2]: *** [gpicview-main-win.o] Fehler 1
  CC       xml_purge-xml-purge.o
gmake[2]: *** Warte auf noch nicht beendete Prozesse...
exif.c:471:50: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
            printf("Map: %05d-%05d: Directory\n",DirStart-OffsetBase, DirEnd+4-OffsetBase);
                         ~~~~                    ^~~~~~~~~~~~~~~~~~~
                         %05ld
exif.c:471:71: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
            printf("Map: %05d-%05d: Directory\n",DirStart-OffsetBase, DirEnd+4-OffsetBase);
                              ~~~~                                    ^~~~~~~~~~~~~~~~~~~
                              %05ld
2 warnings generated.
gmake[2]: Leaving directory `/tmp/ports/usr/ports/graphics/gpicview/work/gpicview-0.2.4/src'
gmake[1]: *** [all-recursive] Fehler 1
gmake[1]: Leaving directory `/tmp/ports/usr/ports/graphics/gpicview/work/gpicview-0.2.4'
gmake: *** [all] Fehler 2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/graphics/gpicview.
*** [install] Error code 1

Stop in /usr/ports/graphics/gpicview.
>How-To-Repeat:
cd /usr/ports/graphics/gpicview
make install
>Fix:
CFLAGS += Wno-return-type

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312071308.rB7D8Q0P014732>