Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216205 - app-office/openoffice-2.4.0 fails with gcc-4.3.0
Summary: app-office/openoffice-2.4.0 fails with gcc-4.3.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-04-04 15:57 UTC by Alexey Charkov
Modified: 2008-04-15 11:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix compilation with gcc-4.3.0 (openoffice-2.4.0-gcc-4.3.0-fix.patch,532 bytes, patch)
2008-04-06 12:35 UTC, Bert Karwatzki
Details | Diff
fix compilation with gcc-4.3.0 (openoffice-2.4.0-r1.ebuild,11.95 KB, text/plain)
2008-04-06 12:38 UTC, Bert Karwatzki
Details
Fixed ebuild. (openoffice-2.4.0-r1.ebuild,11.91 KB, text/plain)
2008-04-06 15:56 UTC, Bert Karwatzki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Charkov 2008-04-04 15:57:22 UTC
Building openoffice-2.4.0 fails with the following error:

/var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/registry/tools/checksingleton.cxx: In member function 'sal_Bool Options::initOptions(int, char**, sal_Bool)':                                                                                    
/var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/registry/tools/checksingleton.cxx:301: error: 'strdup' was not declared in this scope                    
dmake:  Error code 1, while making '../unxlngx6.pro/obj/checksingleton.obj'             
---* tg_merge.mk *---                                                                   

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/registry/tools  

With GCC 4.2.3 compilation went fine (except for a memory issue described in 215291) 

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-devel/gcc-4.3.0
2. emerge -e world # needed to apply out-of-tree patches to cdrdao, libwpd, recode, id3lib and boost provided in respective gcc-4.3 porting bugreports
3. emerge =app-office/openoffice-2.4.0




Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.3.0, glibc-2.7-r2, 2.6.24-gentoo-r4-alchark-u3s x86_64)                                                              
=================================================================                       
System uname: 2.6.24-gentoo-r4-alchark-u3s x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz                                                                                    
Timestamp of tree: Thu, 03 Apr 2008 23:03:01 +0000                                      
app-shells/bash:     3.2_p33                                                            
dev-java/java-config: 1.3.7, 2.1.5                                                      
dev-lang/python:     2.5.1-r5                                                           
sys-apps/baselayout: 1.12.12                                                            
sys-apps/sandbox:    1.2.18.1-r2                                                        
sys-devel/autoconf:  2.13, 2.61-r1                                                      
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1                        
sys-devel/binutils:  2.18-r1                                                            
sys-devel/gcc-config: 1.4.0-r4                                                          
sys-devel/libtool:   1.5.26                                                             
virtual/os-headers:  2.6.24                                                             
ACCEPT_KEYWORDS="amd64 ~amd64"                                                          
CBUILD="x86_64-pc-linux-gnu"                                                            
CFLAGS="-O2 -march=core2 -pipe"                                                         
CHOST="x86_64-pc-linux-gnu"                                                             
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config"       
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"                         
CXXFLAGS="-O2 -march=core2 -pipe"                                                       
DISTDIR="/usr/portage/distfiles"                                                        
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"                                                                          
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"   
LANG="ru_RU.UTF-8"                                                                      
LC_ALL="ru_RU.UTF-8"                                                                    
LINGUAS="ru en"                                                                         
MAKEOPTS="-j4"                                                                          
PKGDIR="/usr/portage/packages"                                                          
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                          
PORTAGE_TMPDIR="/var/tmp"                                                               
PORTDIR="/usr/portage"                                                                  
PORTDIR_OVERLAY="/usr/portage/local/layman/kde /usr/portage/local/layman/gcc-porting /usr/portage/local"                                                                        
SYNC="rsync://mirror.yandex.ru/gentoo-portage"                                          
USE="X a52 aac acl acpi alsa amd64 amr amrnb amrwb archive avahi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr chm cli cracklib crypt cups curl dbus dhcp djvu dri dts dvd dvdr dvdread emboss encode evo exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gdbm gif gimp gnutls gpm gs gstreamer gtk hal htmlhandbook iconv id3tag ieee1394 imagemagick ipv6 ipw3945 isdnlog javascript jingle jpeg kde kerberos lame latex lcms ldap libnotify lzo mad matroska midi mikmod mmx mng mp3 mp4 mpeg mudflap multilib musepack ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp oscar pam pcre pdf perl png ppds ppp pppd python qt-copy qt3 qt3support qt4 quicktime rar readline reflection samba scanner sdl session smp spell spl sse sse2 ssl ssse3 startup-notification svg symlink taglib tcpd tetex theora tiff truetype unicode usb v4l v4l2 vnc vorbis wifi wmf x264 xcomposite xine xml xorg xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="nvidia i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-04-04 23:13:39 UTC

*** This bug has been marked as a duplicate of bug 215291 ***
Comment 2 Alexey Charkov 2008-04-06 10:38:01 UTC
It is not a duplicate of bug 215291, as it concerns a completely different issue. Bug 215291 occurs with gcc-4.2.3, while this one occurs with gcc-4.3.0. Here, I could not even get to the point where bug 215291 occurs, as the error message concerning 'strdup' being undefined appears way earlier.
Comment 3 Bert Karwatzki 2008-04-06 12:35:09 UTC
Created attachment 148857 [details, diff]
fix compilation with gcc-4.3.0
Comment 4 Bert Karwatzki 2008-04-06 12:38:47 UTC
Created attachment 148860 [details]
fix compilation with gcc-4.3.0

A patch fixing this problem is already present in the ooo-build-2.4.0.5.tar.gz, the only Problem is, it's not applied. Above patch and ebuild should solve this.
Comment 5 Bert Karwatzki 2008-04-06 15:56:01 UTC
Created attachment 148875 [details]
Fixed ebuild.

The first ebuild didn't install anything.
Comment 6 Alexey Charkov 2008-04-06 19:05:21 UTC
I confirm that the package merges (and runs) successfully on my system with the patch and ebuild provided. Thank you, Bert!
Comment 7 Andreas Proschofsky (RETIRED) gentoo-dev 2008-04-15 11:08:05 UTC
I've just updated the openoffice-2.4 ebuild to include the gcc4.3-patches, so this should be fixed