LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   fbdesk make errors during SlackBuild on Slackware 13.1 (http://www.linuxquestions.org/questions/slackware-14/fbdesk-make-errors-during-slackbuild-on-slackware-13-1-a-860809/)

psionl0 02-04-2011 10:23 PM

fbdesk make errors during SlackBuild on Slackware 13.1
 
I downloaded fbdesk from SlackBuilds.org. The latest version was for Slackware 12.2 but as there didn't seem to be any version specific information in the files I thought it should easily build a package for Slackware 13.1.

Not so. This is the error message generated:
Code:

XFontImp.cc: In member function 'virtual void FbTk::XFontImp::rotate(float)':
XFontImp.cc:221: error: 'calloc' was not declared in this scope
XFontImp.cc:230: error: 'free' was not declared in this scope
XFontImp.cc:269: error: 'free' was not declared in this scope
make[3]: *** [XFontImp.o] Error 1
make[3]: Leaving directory `/tmp/SBo/fbdesk-1.4.1/src/FbTk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/fbdesk-1.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/fbdesk-1.4.1'
make: *** [all] Error 2

The md5sum on the downloaded file is the same as that shown on the Slackbuilds site so I don't know what to make of this.

larryhaja 02-05-2011 04:37 PM

It is missing some includes. Use this patch and it should compile. It did on my Slackware 13.1 desktop.

http://aur.archlinux.org/packages/fb....1-gcc43.patch

psionl0 02-06-2011 10:29 AM

Thanks, I ran the patch and it gave positive feedback. However, on running the SlackBuild, I still got the same error messages as above.

larryhaja 02-06-2011 10:47 AM

Quote:

Originally Posted by psionl0 (Post 4250023)
Thanks, I ran the patch and it gave positive feedback. However, on running the SlackBuild, I still got the same error messages as above.

How are you applying the patch?

If you add this line in red to the slackbuild it should build just fine.
Code:

chmod -R u+w,go+r-w,a-s .

patch -p1 < $CWD/fbdesk-1.4.1-gcc43.patch

CFLAGS="$SLKCFLAGS" \


psionl0 02-06-2011 11:16 AM

That fixed it. I had originally put the patch into SlackBuild as:

patch -p0 $CWD/$PRGNAM-$VERSION-gcc43.patch

Changing that 0 to a 1 made all the difference.

Now I have idesk and fbdesk and need to decide which package is better but that is another story . . .


All times are GMT -5. The time now is 10:13 PM.