[FUG-BR] Problemas de compilação

Marcus Alves Grando marcus em corp.grupos.com.br
Terça Agosto 29 21:26:09 BRT 2006


Carlos E. G. Carvalho wrote:
> Pessoal,
> 
> estou tentando atualizar o port libpano12, pré-requisito para atualizar
> outro port, o hugin, ambos ferramentas para montar imagens panorâmicas.
> 
> Passei por alguns percalços que ajustei, mas empaquei num ponto em que
> não consegui mais rastrear o erro. Abaixo a saída obtida na compilação.
> Originalmente esta linha do gcc não continha o "-L../.libs" e dava outro
> erro, não encontrando a libpano12.so, então compilei adicionando este -L
> e entrou nessa função "_start" com "undefined reference to `main'".
> Alguma dica ó gurus do C?
> 

Deve estar faltando flags de compilação para achar a lib GTK.

Passando pro CFLAGS=`gtk-config --cflags` e para o LDCONFIG=`gtk-config
--libs` deve funcionar.

Abraços

> -----------------------
> gcc -g -O2 -L.. -L../.libs -o panoinfo -lpano12
> /usr/lib/crt1.o(.text+0x72): In function `_start':
> : undefined reference to `main'
> ../.libs/libpano12.so: undefined reference to `makePathToHost'
> ../.libs/libpano12.so: undefined reference to `gtk_widget_grab_default'
> ../.libs/libpano12.so: undefined reference to
> `gtk_toggle_button_get_type'
> ../.libs/libpano12.so: undefined reference to `readPrefs'
> ../.libs/libpano12.so: undefined reference to `gtk_entry_set_text'
> ../.libs/libpano12.so: undefined reference to
> `gtk_radio_button_get_type'
> ../.libs/libpano12.so: undefined reference to `gtk_object_get_type'
> ../.libs/libpano12.so: undefined reference to `mymalloc'
> ../.libs/libpano12.so: undefined reference to `ptools_isOK'
> ../.libs/libpano12.so: undefined reference to `pt_set_size_source'
> ../.libs/libpano12.so: undefined reference to `gtk_widget_show'
> ../.libs/libpano12.so: undefined reference to `gtk_rc_parse'
> ../.libs/libpano12.so: undefined reference to
> `gtk_toggle_button_set_active'
> ../.libs/libpano12.so: undefined reference to `SaveFileAs'
> ../.libs/libpano12.so: undefined reference to `ptool_save_callback'
> ../.libs/libpano12.so: undefined reference to `gtk_hbox_new'
> ../.libs/libpano12.so: undefined reference to `pt_widget_destroy'
> ../.libs/libpano12.so: undefined reference to `gtk_signal_connect_full'
> ../.libs/libpano12.so: undefined reference to `readImage'
> ../.libs/libpano12.so: undefined reference to `gimp_gtkrc'
> ../.libs/libpano12.so: undefined reference to `makeTempPath'
> ../.libs/libpano12.so: undefined reference to `gtk_frame_new'
> ../.libs/libpano12.so: undefined reference to `gtk_dialog_new'
> ../.libs/libpano12.so: undefined reference to `gtk_table_attach'
> ../.libs/libpano12.so: undefined reference to
> `gtk_radio_button_new_with_label'
> ../.libs/libpano12.so: undefined reference to `infoDlgIntern'
> ../.libs/libpano12.so: undefined reference to `gtk_container_add'
> ../.libs/libpano12.so: undefined reference to `gtk_table_get_type'
> ../.libs/libpano12.so: undefined reference to
> `gtk_check_button_new_with_label'
> ../.libs/libpano12.so: undefined reference to
> `gtk_frame_set_shadow_type'
> ../.libs/libpano12.so: undefined reference to `FindFile'
> ../.libs/libpano12.so: undefined reference to `myfree'
> ../.libs/libpano12.so: undefined reference to `gtk_window_set_position'
> ../.libs/libpano12.so: undefined reference to `gdk_flush'
> ../.libs/libpano12.so: undefined reference to `GetFullPath'
> ../.libs/libpano12.so: undefined reference to `gtk_box_get_type'
> ../.libs/libpano12.so: undefined reference to `gtk_label_new'
> ../.libs/libpano12.so: undefined reference to `gtk_box_pack_end'
> ../.libs/libpano12.so: undefined reference to `gtk_window_get_type'
> ../.libs/libpano12.so: undefined reference to `PrintErrorIntern'
> ../.libs/libpano12.so: undefined reference to `gtk_dialog_get_type'
> ../.libs/libpano12.so: undefined reference to `gtk_label_get_type'
> ../.libs/libpano12.so: undefined reference to `gtk_frame_get_type'
> ../.libs/libpano12.so: undefined reference to `pt_find_file'
> ../.libs/libpano12.so: undefined reference to `gtk_window_set_title'
> ../.libs/libpano12.so: undefined reference to `gtk_entry_get_text'
> ../.libs/libpano12.so: undefined reference to `gtk_box_pack_start'
> ../.libs/libpano12.so: undefined reference to `ptool_load_callback'
> ../.libs/libpano12.so: undefined reference to
> `gtk_container_set_border_width'
> ../.libs/libpano12.so: undefined reference to `gtk_init'
> ../.libs/libpano12.so: undefined reference to `pt_main_destroy'
> ../.libs/libpano12.so: undefined reference to
> `gtk_radio_button_get_group'
> ../.libs/libpano12.so: undefined reference to `g_malloc'
> ../.libs/libpano12.so: undefined reference to `showScript'
> ../.libs/libpano12.so: undefined reference to `gtk_main_quit'
> ../.libs/libpano12.so: undefined reference to `MakeTempName'
> ../.libs/libpano12.so: undefined reference to `gtk_entry_get_type'
> ../.libs/libpano12.so: undefined reference to `gtk_main'
> ../.libs/libpano12.so: undefined reference to `writePrefs'
> ../.libs/libpano12.so: undefined reference to `gtk_label_set_text'
> ../.libs/libpano12.so: undefined reference to `ProgressIntern'
> ../.libs/libpano12.so: undefined reference to `g_strdup'
> ../.libs/libpano12.so: undefined reference to `gtk_widget_destroy'
> ../.libs/libpano12.so: undefined reference to `gtk_table_new'
> ../.libs/libpano12.so: undefined reference to
> `g_type_check_instance_cast'
> ../.libs/libpano12.so: undefined reference to `gtk_entry_new'
> ../.libs/libpano12.so: undefined reference to `gtk_container_get_type'
> ../.libs/libpano12.so: undefined reference to
> `gtk_button_new_with_label'
> ../.libs/libpano12.so: undefined reference to `gtk_widget_set_usize'
> ../.libs/libpano12.so: undefined reference to `makePathForResult'
> ../.libs/libpano12.so: undefined reference to `gtk_vbox_new'
> 
> Abraços,
> 

-- 
Marcus Alves Grando
marcus(at)corp.grupos.com.br  |  Grupos Internet S/A
  mnag(at)FreeBSD.org         |  FreeBSD.org


Mais detalhes sobre a lista de discussão freebsd