LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Building slackbuilds.org packages with gcc 4.4.2 (http://www.linuxquestions.org/questions/slackware-14/building-slackbuilds-org-packages-with-gcc-4-4-2-a-766696/)

ponce 11-04-2009 01:58 AM

Building slackbuilds.org packages with gcc 4.4.2
 
Hi fellas :)

I'm at home with flu :( , so to do something I decided to run my usual sbopkg queue (177 packages) with the gcc 4.4.2 in testing on a freshly installed slackware64-current virtual machine :D
Hope this can be useful at least for other people willing to use 4.4.2 (and for slackbuilds.org's people too).

this is the queue file I've used
Code:

ocaml
icu4c
lua
libevent
cppunit
podofo
soundtouch
scribus
sshfs-fuse
stella
stellarium
sylpheed
portaudio
trrntzip
twolame
unrar
wvstreams
wvdial
xerces-c
wmCalClock
wmMoonClock
wmSun
wmakerconf
wmdrawer
wminfo
wmmixer
wmmon
wmnet
wmpower
wmsm.app
wmtop
wmweather
tor
privoxy
scons
pyOpenSSL
pysetuptools
mod_evasive
pcsx-df
facile
locale-gettext
perl-File-Slurp
help2man
feedparser
hping3
htop
iftop
js
hylafax
aften
bchunk
allegro
libmspack
cabextract
conky
cryptopp | VERSION=5.5.2
ctorrent
darkstat
ddrescue
dia
dirac
ebook-tools
faac
faad2
libdca
xvidcore
zope.interface
zisofs-tools
mjpegtools
a52dec
libdv
libdvbpsi
libdvdcss
libdvdnav
libebml
libmp4v2
libmpeg2
libmpcdec
libnet
libnotify
fftw | PORTABLE=yes SSE2=yes
libsndfile
libsamplerate
libsoup
swfdec
libsigc++
speex
libshout
openjpeg
libdc1394
libavc1394
libofa
libmatroska
libmms
schroedinger
x264
lame
ffmpeg | DC1394=yes DIRAC=yes JP2=yes SCHROEDINGER=yes SPEEX=yes XVID=yes
libquicktime
transcode | A52DEC=yes FAAC=yes LIBDV=yes MJPEGTOOLS=yes QUICKTIME=yes X264=yes XVID=yes
dvdauthor
id3lib
id3v2
imlib2
gpodder
grsync
gsl
gtkglarea
gtkglext
lablgtk
ladspa_sdk
libast
foremost
flash-player-plugin
OpenAL
wxPython
mkvtoolnix
CImg
wxcam
p7zip | GUI=yes
gajim
aMule
cmus
ptlib
opal
ORBit2
GConf
ekiga | KDE=yes KAB=yes GS=yes GCONF=yes
gst-plugins-good
gst-plugins-bad
gst-plugins-ugly
libgnomecanvas
lighttpd
ettercap-NG
eina
eet
evas
ecore
e_dbus
efreet
embryo
edje
enlightenment
eyeD3
fontforge
glibmm
libxml++
gnokii
zenity
pcsc-lite
tls
transmission
mldonkey
SDL_gfx
SDL_perl
cairomm
pangomm
gtkmm
libglademm
gsmartcontrol
clamav | COUNTRY=it
gtkglarea
gtkglext
audacity
avidemux | QT4="no"
freepats
isomaster
TiMidity++
squid
webkit
perl-File-Slurp
xmltv_prereq
xmltv
lirc
mythtv

installed yasm from extras (for x264).
these are the problems I've seen:

wmpower
Quote:

Code:

checking stdio.h presence... yes
configure: WARNING: stdio.h: present but cannot be compiled
configure: WARNING: stdio.h:    check for missing prerequisite headers?
configure: WARNING: stdio.h: see the Autoconf documentation
configure: WARNING: stdio.h:    section "Present But Cannot Be Compiled"
configure: WARNING: stdio.h: proceeding with the preprocessor's result
configure: WARNING: stdio.h: in the future, the compiler will take precedence
configure: WARNING:    ## ------------------------------------------- ##
configure: WARNING:    ## Report this to michele.noberasco@tiscali.it ##
configure: WARNING:    ## ------------------------------------------- ##
checking for stdio.h... yes
checking for stdlib.h... (cached) no
configure: error: One or more system headers that are necessary to compile this program are missing on this system. Cannot continue.

NOT SOLVED
tor
Quote:

updated on a new version on their homepage, link for download not working
changed version: http://www.torproject.org/dist/tor-0.2.1.20.tar.gz
dirac
Quote:

looks like they suppressed the downloads from their site
changed download location: http://downloads.sourceforge.net/pro...c-1.0.2.tar.gz
libofa
Quote:

Code:

make[2]: Entering directory `/tmp/sbopkg/sbopkg-build-directory/libofa-0.9.3/examples'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O2 -fPIC -Wall -g -MT example.o -MD -MP -MF ".deps/example.Tpo" -c -o example.o example.cpp; \
        then mv -f ".deps/example.Tpo" ".deps/example.Po"; else rm -f ".deps/example.Tpo"; exit 1; fi
example.cpp: In function 'int main(int, char**)':
example.cpp:40: error: 'printf' was not declared in this scope
example.cpp:44: error: 'printf' was not declared in this scope
example.cpp:48: error: 'printf' was not declared in this scope
example.cpp:54: error: 'printf' was not declared in this scope
example.cpp:63: error: 'printf' was not declared in this scope
example.cpp:66: error: 'printf' was not declared in this scope
make[2]: *** [example.o] Error 1
make[2]: Leaving directory `/tmp/sbopkg/sbopkg-build-directory/libofa-0.9.3/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/sbopkg/sbopkg-build-directory/libofa-0.9.3'
make: *** [all] Error 2

added patch to build no examples
Code:

*** libofa-0.9.3.orig/configure 2009-11-03 16:27:43.048270114 +0100
--- libofa-0.9.3/configure      2009-11-03 16:28:08.448967041 +0100
***************
*** 20625,20631 ****
 
 
 
!                                                                                ac_config_files="$ac_config_files Makefile include/Makefile include/ofa1/Makefile lib/Makefile lib/JAMA/Makefile lib/AFLIB/Makefile examples/Makefile libofa.pc"
            ac_config_commands="$ac_config_commands default"
  cat >confcache <<\_ACEOF
  # This file is a shell script that caches the results of configure
--- 20625,20631 ----
 
 
 
!                                                                                ac_config_files="$ac_config_files Makefile include/Makefile include/ofa1/Makefile lib/Makefile lib/JAMA/Makefile lib/AFLIB/Makefile libofa.pc"
            ac_config_commands="$ac_config_commands default"
  cat >confcache <<\_ACEOF
  # This file is a shell script that caches the results of configure
***************
*** 21245,21251 ****
    "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    "lib/JAMA/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/JAMA/Makefile" ;;
    "lib/AFLIB/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/AFLIB/Makefile" ;;
-  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
    "libofa.pc" ) CONFIG_FILES="$CONFIG_FILES libofa.pc" ;;
    "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
--- 21245,21250 ----
*** libofa-0.9.3.orig/Makefile.in      2009-11-03 16:33:04.866850559 +0100
--- libofa-0.9.3/Makefile.in    2009-11-03 16:33:31.637164247 +0100
***************
*** 193,200 ****
  #
  #-------------------------------------------------------------------
  AUTOMAKE_OPTIONS = foreign
! SUBDIRS = include lib examples
! DIST_SUBDIRS = include lib examples
  pcdir = $(libdir)/pkgconfig
  pc_DATA = libofa.pc
 
--- 193,200 ----
  #
  #-------------------------------------------------------------------
  AUTOMAKE_OPTIONS = foreign
! SUBDIRS = include lib
! DIST_SUBDIRS = include lib
  pcdir = $(libdir)/pkgconfig
  pc_DATA = libofa.pc

this is the slackbuild I used
schroedinger
Quote:

1.0.7 is unavailable like dirac and I wasn't able to find an official download spot, so I took my own route and used alien's 1.0.8 from vlc build with relative patch.
this is the slackbuild I used
ptlib
Quote:

upgraded to 2.6.4 because of opal
opal
Quote:

Code:

g++ -I../../../include -I..  -I../../common -I../../../ -fPIC  -Os -O2 -fPIC -c enc-ctx.cxx -o obj/enc-ctx.o
enc-ctx.cxx: In function 'void logCallbackX264(void*, int, const char*, __va_list_tag*)':
enc-ctx.cxx:54: error: 'sprintf' was not declared in this scope
enc-ctx.cxx:55: error: 'vsprintf' was not declared in this scope
make[3]: *** [obj/enc-ctx.o] Error 1
make[3]: Leaving directory `/tmp/sbopkg/sbopkg-build-directory/opal-3.6.2/plugins/video/H.264/gpl'
make[2]: *** [h264_video_pwplugin.so] Error 2
make[2]: Leaving directory `/tmp/sbopkg/sbopkg-build-directory/opal-3.6.2/plugins/video/H.264'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/sbopkg/sbopkg-build-directory/opal-3.6.2/plugins'
make: *** [subdirs] Error 2

solved upgrading ptlib to 2.6.4 and opal to 3.6.4
ekiga
Quote:

upgraded to 3.2.5 because of opal: it doesn't need the ekiga-3.2.4-fix_compile_gtk_212.patch (already applied)
lighttpd
Quote:

Code:

Building lighttpd

lighttpd:
--2009-11-03 20:40:28--  http://www.lighttpd.net/download/lighttpd-1.4.23.tar.gz
Resolving www.lighttpd.net... 64.34.173.165
Connecting to www.lighttpd.net|64.34.173.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 803422 (785K) [application/octet-stream]
Saving to: `lighttpd-1.4.23.tar.gz'

100%[======================================>] 803,422      166K/s  in 4.9s   

2009-11-03 20:40:34 (161 KB/s) - `lighttpd-1.4.23.tar.gz' saved [803422/803422]

Checking MD5SUM:
  MD5SUM check for lighttpd-1.4.23.tar.gz ... FAILED!
    Expected: 0ab6bb7b17bf0f515ce7dce68e5e215a
    Found:    41dfad5c366d34d83c3d2b46d4c08f5c

Do you want to use the downloaded lighttpd source:
lighttpd-1.4.23.tar.gz in /var/cache/sbopkg?

You can choose among the following options:
 - (Y)es, keep the source and continue the build process;
 - (N)o, delete the source and abort the build process; or
 - (R)etry download and continue the build process.
Your choice?
Y

checked md5 on their site ;)
gnokii
Quote:

updated on a new version on their homepage, link for download not working
changed version: http://www.gnokii.org/download/gnoki...0.6.28.tar.bz2
gsmartcontrol
Quote:

Code:

g++ -DHAVE_CONFIG_H -I. -I../..    -I../.. -I../../src -I../../src/pcrecpp -include global_macros.h -pthread -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0  -O2 -fPIC  -Wall -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wfloat-equal -Wnon-virtual-dtor -Woverloaded-virtual -Wpointer-arith -Wshadow -Wsign-compare -Wsign-promo -Wundef -Wwrite-strings -pthread -D_MT -D_THREAD_SAFE -D_GNU_SOURCE  -DPACKAGE_PKGDATA_DIR="\"/usr/share/gsmartcontrol\"" -DPACKAGE_SYSCONF_DIR="\"/etc\"" -DTOP_SRC_DIR="\"../..\"" -DHAVE_CONFIG_H -MT dcmdarg.o -MD -MP -MF .deps/dcmdarg.Tpo -c -o dcmdarg.o dcmdarg.cpp
In file included from dstate.h:19,
                from dcmdarg.cpp:23:
dstream.h: In member function 'virtual int debug_internal::DebugStreamBuf::overflow(int)':
dstream.h:85: error: 'EOF' was not declared in this scope
make[3]: *** [dcmdarg.o] Error 1
make[3]: Leaving directory `/tmp/sbopkg/sbopkg-build-directory/gsmartcontrol-0.8.4/src/libdebug'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/sbopkg/sbopkg-build-directory/gsmartcontrol-0.8.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/sbopkg/sbopkg-build-directory/gsmartcontrol-0.8.4'
make: *** [all] Error 2

solved upgrading to 0.8.5
avidemux
Quote:

Code:

cd /tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_video && /usr/bin/c++  -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -O2 -fPIC -O3 -DNDEBUG -I/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4 -I/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux -I/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_libraries -I/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_libraries/ADM_utilities -I/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_libraries/ADM_lavutil -I/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_libraries/ADM_lavcodec -I/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_userInterfaces/ADM_commonUI -I/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_outputs -I/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_video/../ADM_inputs  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -o CMakeFiles/ADM_video.dir/ADM_interlaced.o -c /tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_video/ADM_interlaced.cpp
/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_video/ADM_interlaced.cpp: Assembler messages:
/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_video/ADM_interlaced.cpp:140: Error: suffix or operands invalid for `movq'
/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4/avidemux/ADM_video/ADM_interlaced.cpp:141: Error: suffix or operands invalid for `movq'
make[2]: *** [avidemux/ADM_video/CMakeFiles/ADM_video.dir/ADM_interlaced.o] Error 1
make[2]: Leaving directory `/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4'
make[1]: *** [avidemux/ADM_video/CMakeFiles/ADM_video.dir/all] Error 2
make[1]: Leaving directory `/tmp/sbopkg/sbopkg-build-directory/avidemux-2.4.4'
make: *** [all] Error 2

NOT SOLVED :(
here are the built packages. :)

EDIT: posted on slackbuilds-users mailing list

sahko 11-05-2009 12:07 PM

There are still many applications that will fail to build with GCC 4.4.x.
Most of them cause they havent yet released a new version, others cause they are unmaintained.
But the later ones should fail building with earlier GCC versions as well, at least to a great extend.


All times are GMT -5. The time now is 08:29 AM.