sandsmark / kgtk

qt5/kf5 port

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation fails: implicit declaration of function 'get_current_dir_name'

probonopd opened this issue · comments

Compilation fails on FreeBSD with:

/usr/local/include/glib-2.0/glib/gmacros.h:1102:37: note: expanded from macro 'G_DEPRECATED'     
#define G_DEPRECATED __attribute__((__deprecated__))
                                    ^
/tmp/kgtk/common/kgtk.c:2208:51: error: implicit declaration of function 'get_current_dir_name' [-Werror,-Wimplicit-function-declaration]
                                                : get_current_dir_name());
                                                  ^
/tmp/kgtk/common/kgtk.c:2207:62: warning: pointer/integer type mismatch in conditional expression ('gchar *' (aka 'char *') and 'int') [-Wconditional-type-mismatch]
                    GString *cur = g_string_new(data->folder ? data->folder
                                                             ^ ~~~~~~~~~~~~
/tmp/kgtk/common/kgtk.c:2585:54: error: implicit declaration of function 'get_current_dir_name' [-Werror,-Wimplicit-function-declaration]
        gtk_file_chooser_set_current_folder(chooser, get_current_dir_name());
                                                     ^
/tmp/kgtk/common/kgtk.c:2585:54: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const gchar *' (aka 'const char *') [-Wint-conversion]
        gtk_file_chooser_set_current_folder(chooser, get_current_dir_name());
                                                     ^~~~~~~~~~~~~~~~~~~~~~
/tmp/kgtk/common/kgtk.c:2542:84: note: passing argument to parameter 'folder' here               
gboolean gtk_file_chooser_set_current_folder(GtkFileChooser *chooser, const gchar *folder)
                                                                                   ^
/tmp/kgtk/common/kgtk.c:2966:58: warning: unused parameter 'button' [-Wunused-parameter]         
static void handleGtkFileChooserButtonClicked(GtkButton *button, gpointer user_data)
                                                         ^
/tmp/kgtk/common/kgtk.c:3136:48: warning: unused parameter 'module' [-Wunused-parameter]         
const gchar *kgtk_g_module_check_init(GModule *module)
                                               ^
/tmp/kgtk/common/kgtk.c:3142:36: warning: declaration of 'struct PR_LoadLibrary' will not be visible outside of this function [-Wvisibility]
void *PR_FindFunctionSymbol(struct PR_LoadLibrary *lib, const char *raw_name)
                                   ^
9 warnings and 2 errors generated.                                                               
*** Error code 1

Stop.
make[2]: stopped in /tmp/kgtk
*** Error code 1

Stop.
make[1]: stopped in /tmp/kgtk
*** Error code 1

Stop.
make: stopped in /tmp/kgtk