! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
build error in xfcalendar on debian stable
Status:
CLOSED: FIXED
Severity:
blocker

Comments

Description aur 2005-01-27 18:05:36 CET
I have no Xfce 4.0.x installed in my /usr.
I use debian stable, with manually installed gtk2 libraries.

During the build (manually or with the installer) i get the following error:

gcc -g -O2 -o xfcalendar xfcalendar-about-xfcalendar.o xfcalendar-callbacks.o
xfcalendar-interface.o xfcalendar-main.o xfcalendar-mainbox.o
xfcalendar-reminder.o xfcalendar-support.o xfcalendar-tray_icon.o
xfcalendar-xfce_trayicon.o -Wl,--export-dynamic -Wl,-R/usr/local/lib 
-L/usr/X11R6/lib -L/usr/local/lib /usr/local/lib/libxfcegui4.so
/usr/local/lib/libgtk-x11-2.0.so /usr/local/lib/libgdk-x11-2.0.so
/usr/local/lib/libatk-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so
/usr/local/lib/libpangoxft-1.0.so /usr/local/lib/libpangox-1.0.so
/usr/local/lib/libpango-1.0.so
/usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libdbh.so -lm
/usr/local/lib/libxfce4mcs-client.so -lSM -lICE -lX11
/usr/local/lib/libxfce4util.so /usr/local/lib/libgobject-2.0.so
/usr/local/lib/libglib-2.0.so
xfcalendar-about-xfcalendar.o: In function `create_wAbout':
/opt/xfce-4.2.0/src-bz2/xfcalendar-4.2.0/src/about-xfcalendar.c:41: undefined
reference to `xfce_builtin_license_GPL'
collect2: ld returned 1 exit status

The same bug was discribe here :
http://www.os-cillation.de/cgi-bin/yabb/YaBB.cgi?board=Help;action=display;num=1104832969

When i build manually xffm, xfdesktop and xfprint, i have the same bug with
message :
undefined reference to `xfce_builtin_license_LGPL' or undefined reference to
`xfce_builtin_license_BSD'

Sorry but i don't speak english

++

Aur
Comment 1 korbinus editbugs 2005-01-28 13:11:46 CET
Hi,

in which directory are you trying to install xfcalendar? /usr or /usr/local?


Cheers
Korbinus
Comment 2 aur 2005-01-28 13:45:38 CET
Hi,

I have not specify an installation prefix in 'configure'. 
So, my install directory is /usr/local. 

++

Aur
Comment 3 kautto.juha 2005-01-31 11:39:14 CET
This symbol should be in /usr/local/lib/libxfce4util.so which is in your link
list of libraries. 
Could you let us know what is the outcome of:

nm /usr/local/lib/libxfce4util.so | grep license


It should give something like:
$ nm libxfce4util.so| grep license
00009d80 R xfce_builtin_license_BSD
0000a240 R xfce_builtin_license_GPL
0000e8a0 R xfce_builtin_license_LGPL

if your nm does not find those licenses there must be something wrong in the
installation of libxfce4util. But let's check first if those symbols are in
place or not.
Comment 4 aur 2005-01-31 14:23:01 CET
On my computer :

$ nm /usr/local/lib/libxfce4util.so | grep license
00009f80 ? xfce_builtin_license_BSD
0000a440 ? xfce_builtin_license_GPL
0000eaa0 ? xfce_builtin_license_LGPL

++

Aur
Comment 5 kautto.juha 2005-01-31 19:32:49 CET
There definitely is something wrong in the libxfce4util since symbol types are
unknown. Could you try to relink it ?
Go to libxfce4util-4.2.0 directory and do: 
configure
make
sudo make install

That might at least give some hints what is going wrong.
Comment 6 aur 2005-02-01 14:17:24 CET
Created attachment 177 
log file of order 'configure' for libxfce4util-4.2.0
Comment 7 aur 2005-02-01 14:29:08 CET
Created attachment 178 
log file of orders 'make' and 'make install' for libxfce4util-4.2.0
Comment 8 aur 2005-02-01 14:38:05 CET
I rebuilt the library 'libxfce4util-4.2.0' without problem (I joined the log
files). But the order 'nm /usr/local/lib/libxfce4util.so | grep license' always
returns :
00009f80 ? xfce_builtin_license_BSD
0000a440 ? xfce_builtin_license_GPL
0000eaa0 ? xfce_builtin_license_LGPL
Comment 9 kautto.juha 2005-02-01 21:14:03 CET
Those logs were usefull. From the logs I can see that
libxfce4util_la-licenses-texts.o is not getting generated. And I bet your nm
gives same unknowns from there:
$nm libxfce4util_la-licenses-texts.o|grep lic
00000000 R xfce_builtin_license_BSD
000004c0 R xfce_builtin_license_GPL
00004b20 R xfce_builtin_license_LGPL

Could you check what date you have on
libxfce4util-4.2.0/libxfce4util/libxfce4util_la-licenses-texts.o
it seems that it was not generated in your system, but was copied from somewhere
else and is not in correct format now.

To fix this, do make clean also like this:
Go to libxfce4util-4.2.0 directory and do: 
configure
make clean
make
sudo make install

and check again the date of
libxfce4util-4.2.0/libxfce4util/libxfce4util_la-licenses-texts.o
and the symbols
if correct try to compile xfcalendar
Comment 10 aur 2005-02-02 20:58:15 CET
Here the orders which I carried out and their results :

$nm libxfce4util_la-licenses-texts.o|grep lic

00000000 ? xfce_builtin_license_BSD
000004c0 ? xfce_builtin_license_GPL
00004b20 ? xfce_builtin_license_LGPL

$ls -l libxfce4util_la-licenses-texts.o

-rw-r--r--    1 aurelien aurelien    47064 jan 27 17:36         
libxfce4util_la-licenses-texts.o

$./configure
$make clean
$make
$make install

$ls -l libxfce4util_la-licenses-texts.o

-rw-r--r--    1 aurelien aurelien    47064 f
Comment 11 kautto.juha 2005-02-03 11:51:53 CET
strange. 
I am starting to believe that there is something wrong in your c compiler. You
did not get any errors or warnings when the license object was generated ?
What version is your gcc? 
$ gcc --version
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Could you try a small test code:
1) Build a file test.c:
char test1[]="test1";
const char test2[]="test2";
 
main()
{ printf("hi\n"); }

2) compile it:
$ make test.o
cc    -c -o test.o test.c

no warnings ? no errors ?

3) check symbols:
$ nm test.o
00000000 T main
         U printf
00000000 D test1
00000000 R test2

4) link it:
$ make test
cc   test.o   -o test

5) test it:
$ ./test
hi


Comment 12 aur 2005-02-03 17:32:06 CET
I did not note error or warning when the license object was generated.

Version of my gcc :

$gcc --version

2.95.4


Here the result concerning the small test codes :

$make test.o

cc    -c -o test.o test.c

(no warnings ! no errors !)

$nm test.o

00000000 t gcc2_compiled.
00000000 T main
         U printf
00000000 D test1
00000000 R test2

$make test

cc   test.o   -o test

$./test

hi

Aur
Comment 13 kautto.juha 2005-02-08 07:16:47 CET
looks strange. Your compiler is able to handle the needed code, but for some
reason it does not compile the license module correctly. I would next start
looking the gcc flags, but since this problem really is not in xfcalendar code,
but in core libxfce4util, those maintainers may have better idea what is causing
this.
need to get this reassigned to general.
Comment 14 juha editbugs 2005-02-13 12:05:12 CET
reassigning to the utils owner.
Comment 15 Harold Aling 2007-02-15 21:00:54 CET
(In reply to comment #14)
> reassigning to the utils owner.
> 

And I'm closing it since the utils owner nor the reported replied after 2005-02-13...

Bug #746

Reported by:
aur
Reported on: 2005-01-27
Last modified on: 2013-12-11

People

CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information