ports/160701: databases/libgda: CLANG fails to compile/update port

Hartmann at FreeBSD.org Hartmann at FreeBSD.org
Tue Sep 13 08:50:13 UTC 2011


>Number:         160701
>Category:       ports
>Synopsis:       databases/libgda: CLANG fails to compile/update port
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 13 08:50:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Hartmann, O.
>Release:        FreeBSD-9.0-BETA2
>Organization:
FU Berlin
>Environment:
>Description:
While updating ports and compiling ports via CLANG, the following error occurs in databases/libgda:

libtool: compile:  clang -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include/glib12 -I/usr/local/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/local/include -I/usr/local/include/gnome-xml -I/usr/local/include/gconf/1 -I/usr/local/include -I/usr/local/include/glib12 -I/usr/local/include/orbit-1.0 -I/usr/local/include/gnome-1.0 -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include -I/usr/local/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include/gdk-pixbuf-1.0 -I/usr/local/include/freetype2 -I/usr/local/include/gnome-xml -I/usr/local/include/orbit-1.0 -I/usr/local/include/glib12 -I/usr/local/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/local/include -I/usr/local/include/gnome-xml -I/usr/local/include/gconf/1 -I/usr/local/include -I/usr/local/include/glib12 -I/usr/local/include/orbit-1.0 -I/usr/local/include/gnome-1.0 -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include
  -I/usr/local/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include/gdk-pixbuf-1.0 -I/usr/local/include/freetype2 -I/usr/local/include/gnome-xml -I/usr/local/include/orbit-1.0 -I../../lib/gda-common -I../../lib/gda-common -I/usr/local/include -O3 -pipe -fno-strict-aliasing -march=native -std=gnu89 -c gda-server-connection.c  -fPIC -DPIC -o .libs/gda-server-connection.o
gda-server-connection.c:112:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
gda-server-connection.c:250:2: error: non-void function 'impl_GDA_Connection_createTable' should return a value [-Wreturn-type]
        g_return_if_fail (GDA_IS_SERVER_CONNECTION (cnc));
        ^
/usr/local/include/glib12/glib.h:423:3: note: expanded from:
         return;                                                        \
         ^
gda-server-connection.c:716:2: error: non-void function 'gda_server_connection_sql2xml' should return a value [-Wreturn-type]
        g_return_if_fail (cnc != NULL);
        ^
/usr/local/include/glib12/glib.h:423:3: note: expanded from:
         return;                                                        \
         ^
gda-server-connection.c:717:2: error: non-void function 'gda_server_connection_sql2xml' should return a value [-Wreturn-type]
        g_return_if_fail (cnc->server_impl != NULL);
        ^
/usr/local/include/glib12/glib.h:423:3: note: expanded from:
         return;                                                        \
         ^
gda-server-connection.c:718:2: error: non-void function 'gda_server_connection_sql2xml' should return a value [-Wreturn-type]
        g_return_if_fail (cnc->server_impl->functions.connection_sql2xml !=
        ^
/usr/local/include/glib12/glib.h:423:3: note: expanded from:
         return;                                                        \
         ^
gda-server-connection.c:730:2: error: non-void function 'gda_server_connection_xml2sql' should return a value [-Wreturn-type]
        g_return_if_fail (cnc != NULL);
        ^
/usr/local/include/glib12/glib.h:423:3: note: expanded from:
         return;                                                        \
         ^
gda-server-connection.c:731:2: error: non-void function 'gda_server_connection_xml2sql' should return a value [-Wreturn-type]
        g_return_if_fail (cnc->server_impl != NULL);
        ^
/usr/local/include/glib12/glib.h:423:3: note: expanded from:
         return;                                                        \
         ^
gda-server-connection.c:732:2: error: non-void function 'gda_server_connection_xml2sql' should return a value [-Wreturn-type]
        g_return_if_fail (cnc->server_impl->functions.connection_xml2sql !=
        ^
/usr/local/include/glib12/glib.h:423:3: note: expanded from:
         return;                                                        \
         ^
gda-server-connection.c:847:43: warning: passing 'const char [82]' to parameter of type 'gchar *' (aka 'char *') discards qualifiers
        gda_server_error_make (error, NULL, cnc, __PRETTY_FUNCTION__);
                                                 ^~~~~~~~~~~~~~~~~~~
./gda-server-error.h:30:43: note: passing argument to parameter 'where' here
                            GdaServerConnection * cnc, gchar * where);
                                                               ^
2 warnings and 7 errors generated.
gmake[3]: *** [gda-server-connection.lo] Error 1
gmake[3]: Leaving directory `/usr/ports/databases/libgda/work/libgda-0.2.96/lib/gda-server'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/databases/libgda/work/libgda-0.2.96/lib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/databases/libgda/work/libgda-0.2.96'
gmake: *** [all-recursive-am] Error 2
*** Error code 1

Stop in /usr/ports/databases/libgda.


>How-To-Repeat:
Try compiling databases/libgda with CLANG.
>Fix:


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



More information about the freebsd-ports-bugs mailing list