slim package build fail

Bug #347652 reported by Bartosz Sobel on 2009-03-24
2
Affects Status Importance Assigned to Milestone
PLD Linux
Undecided
Unassigned

Bug Description

I believe there's a bug in slim.spec when building it on PLD Titanium.

=== BEGIN ===
[bsobel@f1y rpm]$ cvs get SPECS/slim.spec
U SPECS/slim.spec
[bsobel@f1y rpm]$ cd SPECS/
[bsobel@f1y SPECS]$ ./builder -bb slim.spec
# $Revision: 1.26 $, $Date: 2008/11/02 13:23:49 $
Available branches: AC-branch RA-branch
slim-1.3.0.tar.gz having proper md5sum already exists
Executing(%prep): env -i PATH=/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin HOME=/home/users/bsobel TMP=/home/users/bsobel/tmp TMPDIR=/home/users/bsobel/tmp /bin/sh -e /home/users/bsobel/tmp/rpm-tmp.24078
+ umask 022
+ cd /home/users/bsobel/rpm/BUILD
+ cd /home/users/bsobel/rpm/BUILD
+ rm -rf slim-1.3.0
+ /bin/gzip -dc /home/users/bsobel/rpm/SOURCES/slim-1.3.0.tar.gz
+ tar -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd slim-1.3.0
+ /bin/id -u
+ [ 1000 = 0 ]
+ true .
+ /bin/chmod -Rf -Rf a+rX,u+w,g-w,o-w .
+ echo Patch #0 (slim-configuration.patch):
Patch #0 (slim-configuration.patch):
+ patch -p1 -s
+ < /home/users/bsobel/rpm/SOURCES/slim-configuration.patch
+ echo Patch #1 (slim-Makefile.patch):
Patch #1 (slim-Makefile.patch):
+ patch -p1 -s
+ < /home/users/bsobel/rpm/SOURCES/slim-Makefile.patch
+ exit 0
Executing(%build): env -i PATH=/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin HOME=/home/users/bsobel TMP=/home/users/bsobel/tmp TMPDIR=/home/users/bsobel/tmp /bin/sh -e /home/users/bsobel/tmp/rpm-tmp.7534
+ umask 022
+ cd /home/users/bsobel/rpm/BUILD
+ cd slim-1.3.0
+ make CC=i686-pld-linux-gcc CXX=i686-pld-linux-g++ CFLAGS=-O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 LDFLAGS=-Wl,--as-needed CFGDIR=/etc/X11/slim
i686-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -I. -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/X11/slim\" -DHAVE_SHADOW -c jpeg.c -o jpeg.o
i686-pld-linux-gcc -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -I. -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/X11/slim\" -DHAVE_SHADOW -c png.c -o png.o
i686-pld-linux-g++ -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -I. -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/X11/slim\" -DHAVE_SHADOW -c main.cpp -o main.o
i686-pld-linux-g++ -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -I. -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/X11/slim\" -DHAVE_SHADOW -c image.cpp -o image.o
i686-pld-linux-g++ -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -I. -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/X11/slim\" -DHAVE_SHADOW -c numlock.cpp -o numlock.o
i686-pld-linux-g++ -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -I. -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/X11/slim\" -DHAVE_SHADOW -c cfg.cpp -o cfg.o
cfg.cpp: In static member function 'static int Cfg::string2int(const char*, bool*)':
cfg.cpp:212: error: 'strtol' was not declared in this scope
make: *** [cfg.o] Error 1
error: Bad exit status from /home/users/bsobel/tmp/rpm-tmp.7534 (%build)

RPM build errors:
    Bad exit status from /home/users/bsobel/tmp/rpm-tmp.7534 (%build)
Error: package build failed. (no more info)
[bsobel@f1y SPECS]$

===== END =====

Patching sources with http://svn.pardus.org.tr/pardus/playground/eren/desktop/xfce4/slim/files/slim-1.3.0-strtol.patch solves it. Please, add this patch to slim.spec.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers