FS#10104 - slim login manager won't build
Attached to Project:
Arch Linux
Opened by Niki Kovacs (kikinovak) - Monday, 07 April 2008, 11:13 GMT
Last edited by Alexander Fehr (pizzapunk) - Friday, 12 December 2008, 01:09 GMT
Opened by Niki Kovacs (kikinovak) - Monday, 07 April 2008, 11:13 GMT
Last edited by Alexander Fehr (pizzapunk) - Friday, 12 December 2008, 01:09 GMT
|
Details
I just tried to build the slim login manager from ABS, in
order to put my own default configurations into the package.
The build process stops short, with the following error
message:
/usr/bin/g++ -Wall -I. -I/usr/include/xorg -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/libpng12 -I/usr/include -DPACKAGE=\"slim\" -DVERSION=\"1.3.0\" -DPKGDATADIR=\"/usr/share/slim\" -DSYSCONFDIR=\"/etc\" -DHAVE_SHADOW -c numlock.cpp -o numlock.o /usr/bin/g++ -Wall -I. -I/usr/include/xorg -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/libpng12 -I/usr/include -DPACKAGE=\"slim\" -DVERSION=\"1.3.0\" -DPKGDATADIR=\"/usr/share/slim\" -DSYSCONFDIR=\"/etc\" -DHAVE_SHADOW -c cfg.cpp -o cfg.o cfg.cpp: In static member function ‘static int Cfg::string2int(const char*, bool*)’: cfg.cpp:212: erreur: ‘strtol’ was not declared in this scope make: *** [cfg.o] Erreur 1 ==> ERREUR: La compilation a échoué. Which leaves me clueless. |
This task depends upon
Closed by Alexander Fehr (pizzapunk)
Friday, 12 December 2008, 01:09 GMT
Reason for closing: Fixed
Additional comments about closing: slim 1.3.1-1
Friday, 12 December 2008, 01:09 GMT
Reason for closing: Fixed
Additional comments about closing: slim 1.3.1-1
http://slackbuilds.org/slackbuilds/12.0/desktop/slim/Makefile-i686.diff.gz
I put this patch in an ABS build of arch and used the attached PKGBUILD to successfully build, install, and use the package. The attached PKGBUILD.patch shows the changes I made to the PKGBUILD. I just added a patch command to apply the stdlib.patch and added MD5SUM information.
This all works, but it seems odd to me that something as basic as the location of stdlib would be in different places in the slim developers' build systems and in Arch. I took a look at the slim bug list and there were no mentions of build problems. In fact, I built slim from source a few of months ago and it worked fine.
PKGBUILD (1.6 KiB)
PKGBUILD.patch (0.8 KiB)
[snip]
> Apparently, cfg.cpp isn't including cstdlib for the strtol function. I
> see that there is patch #2248 to correct this problem and I was
> wondering if this patch will make it into mainline code. If not, why
> not? Perhaps the problem lies in version 4.3.0 of gcc? It would be
> nice to have this fixed here in mainline code. If not I will have to
> patch it downstream in the Arch package.
Thanks, I committed to the svn trunk. I plan to do a general review
of pending patches and requests and do a small maintainance release
in a couple of days.
Regards,
Simone
It seems this will be patched upstream soon, so this should solve the problem for Arch.