cqrlog build tries to rebuild lib files in /usr

2 posts / 0 new
Last post
AB1KW
AB1KW's picture
cqrlog build tries to rebuild lib files in /usr

On Fedora 15, trying to build cqrlog results in this error:

$ make
...
Error: Can't create object file: /usr/lib64/lazarus/components/printers/lib/x86_64-linux/gtk2/cupsdyn.o
TExternalToolList.Run Exception: Error: Can't create object file: /usr/lib64/lazarus/components/printers/lib/x86_64-linux/gtk2/cupsdyn.o
ERROR: tool reported error
make: *** [cqrlog] Error 2
$

A one line change to the Makefile, adding -d to the lazbuild options so it will not try to rebuild the dependencies, gets rid of that problem:

--- cqrlog-1.1.0/Makefile.orig 2011-06-25 10:57:44.384233006 -0400
+++ cqrlog-1.1.0/Makefile 2011-06-25 10:57:50.148276899 -0400
@@ -5,7 +5,7 @@ bindir = $(DESTDIR)/usr/bin
sharedir = $(DESTDIR)/usr/share

cqrlog: src/cqrlog.lpi
- $(CC) --ws=gtk2 src/cqrlog.lpi
+ $(CC) -d --ws=gtk2 src/cqrlog.lpi
$(ST) src/cqrlog
gzip tools/cqrlog.1 -c > tools/cqrlog.1.gz

(yes, I am trying to create a cqrlog.spec file for RPM building)

ok2cqr
ok2cqr's picture
Re: cqrlog build tries to rebuild lib files in /usr

As I wrote to email for Rik, I'll add -d option to makefile.

I don't know if it's a bug or not. I don't have any problem in Ubuntu.