Thanks Bruno, but unfortunately I couldn't solve the problem completely... I used:
> rpl -R sys_X11 sys_ansi *

and now I have fewer undefined references, but still have some (below). Anybody can help me with a hint of what is missing? Maybe libgcj? (saw this on README and couldn't install yet)

-------------------------------------------------------------------------------------
Making all in tools
/usr/local/bin/bash ../libtool --tag=CC --mode=link gcc  -g -O2  -L..  -o panoinfo      -lpano12
mkdir .libs
gcc -g -O2 -o .libs/panoinfo  -L/home/cartola/lixo/libpano12-2.8.4 /home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so -L/usr/local/lib -ljpeg -lpng -ltiff -lz -Wl,--rpath -Wl,/usr/local/lib
/usr/lib/crt1.o(.text+0x72): In function `_start':
: undefined reference to `main'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `makePathToHost'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `readPrefs'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `mymalloc'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `SaveFileAs'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `readImage'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `makeTempPath'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `infoDlgIntern'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `FindFile'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `myfree'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `GetFullPath'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `PrintErrorIntern'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `showScript'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `MakeTempName'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `writePrefs'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `ProgressIntern'
/home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined reference to `makePathForResult'
*** Error code 1

Stop in /home/cartola/lixo/libpano12-2.8.4/tools.
*** Error code 1

Stop in /home/cartola/lixo/libpano12-2.8.4.
*** Error code 1

Stop in /home/cartola/lixo/libpano12-2.8.4.
-------------------------------------------------------------------------------------


Thank you!

Carlos E. G. Carvalho           OpenIT Solucoes Tecnologicas
Consultor Unix/Internet         Tel. +55 21 2517-6000
http://www.OpenIT.com.br
http://www.MyFreeBSD.com.br

Em Qua, 2006-08-30 às 23:31 +0100, Bruno Postle escreveu:
On Wed 30-Aug-2006 at 19:11 -0300, Carlos Eduardo G. Carvalho wrote:

> /home/cartola/lixo/libpano12-2.8.4/.libs/libpano12.so: undefined
> reference to `gtk_widget_grab_default'

I thought this was fixed...

In the sources there is a broken gtk1 interface for dialog boxes.  
When the build script can't identify the system it tries to build 
this and always fails.

The workaround is to find every reference to 'sys_X11' and replace it 
with 'sys_ansi'.