Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324301 - sci-chemistry/ghemical-2.98: fails with forced --as-needed
Summary: sci-chemistry/ghemical-2.98: fails with forced --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 14:19 UTC by Jeremy Murphy
Modified: 2010-06-18 18:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Murphy 2010-06-16 14:19:39 UTC
Fails to link 'ghemical' program.

Reproducible: Always

Steps to Reproduce:
1. Use '--as-needed' in gcc spec file.
2. emerge
Actual Results:  
i686-pc-linux-gnu-g++ -O2 -march=pentium-m -pipe -fomit-frame-pointer -Wl,-O1 -o ghemical fileio.o filetrans.o custom_app.o custom_camera.o custom_lights.o project.o spline.o pangofont_wcl.o oglview_wcl.o ac_stor_wcl.o p1dview_wcl.o p2dview_wcl.o eldview_wcl.o rcpview_wcl.o gpcview_wcl.o ogl_plane.o ogl_surface.o ogl_ribbon.o gtk_simple_dialogs.o gtk_glade_dialog.o gtk_file_export_dialog.o gtk_file_import_dialog.o gtk_geomopt_dialog.o gtk_moldyn_dialog.o gtk_progress_dialog.o gtk_setup_dialog.o gtk_stereo_dialog.o gtk_trajview_dialog.o gtk_wnd.o gtk_oglview_wnd.o gtk_p1dview_wnd.o gtk_p2dview_wnd.o gtk_eldview_wnd.o gtk_rcpview_wnd.o gtk_gpcview_wnd.o gtk_app.o gtk_project.o gtk_main.o -pthread -Wl,--export-dynamic  -L/usr/X11R6/lib /usr/lib/libgthread-2.0.so -lrt /usr/lib/libgtkglext-x11-1.0.so /usr/lib/libgdkglext-x11-1.0.so /usr/lib/libXmu.so /usr/lib/libXt.so /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libpangox-1.0.so /usr/lib/libX11.so /usr/lib/libglade-2.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libxml2.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so /usr/lib/libfontconfig.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libopenbabel.so -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.4 -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../.. /usr/lib/libghemical.so /usr/lib/libSCpsi.so /usr/lib/libSCmbpt.so /usr/lib/libSCscf.so /usr/lib/libSCdft.so /usr/lib/libSCwfn.so /usr/lib/libSCintv3.so /usr/lib/libSCbasis.so /usr/lib/libSCoint3.so /usr/lib/libSCsolvent.so /usr/lib/libSCmolecule.so /usr/lib/libSCsymmetry.so /usr/lib/libSCisosurf.so /usr/lib/libSCoptimize.so /usr/lib/libSCscmat.so /usr/lib/libSCgroup.so /usr/lib/libSCrender.so /usr/lib/libSCmisc.so /usr/lib/libSCoptions.so /usr/lib/libSCstate.so /usr/lib/libSCkeyval.so /usr/lib/libSCclass.so /usr/lib/libSCcontainer.so /usr/lib/libSCref.so -lfl -ldl -lpthread -llapack -lblas /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgfortranbegin.a /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgfortran.so -lm -lgcc_s /usr/lib/libmopac7.so -lGL -lGLU /usr/lib/liboglappth.so
/usr/lib/libSCwfn.so: undefined reference to `sc::DenFunctional::~DenFunctional()' 
/usr/lib/libSCwfn.so: undefined reference to `virtual thunk to sc::DenFunctional::~DenFunctional()'                                                                   
/usr/lib/libSCwfn.so: undefined reference to `sc::DenFunctional::set_spin_polarized(int)'                                                                             
/usr/lib/libSCwfn.so: undefined reference to `sc::DenFunctional::~DenFunctional()' 
/usr/lib/libSCwfn.so: undefined reference to `sc::RadialAngularIntegrator::RadialAngularIntegrator()'                                                                 
/usr/lib/libSCwfn.so: undefined reference to `sc::DenFunctional::save_data_state(sc::StateOut&)'                                                                      
/usr/lib/libSCwfn.so: undefined reference to `virtual thunk to sc::DenFunctional::save_data_state(sc::StateOut&)'                                                     
/usr/lib/libSCwfn.so: undefined reference to `sc::DenFunctional::DenFunctional()'  
/usr/lib/libSCwfn.so: undefined reference to `typeinfo for sc::DenFunctional'      
/usr/lib/libSCwfn.so: undefined reference to `sc::DenFunctional::set_compute_potential(int)'                                                                          
/usr/lib/libSCwfn.so: undefined reference to `sc::DenFunctional::a0() const'       
/usr/lib/libSCwfn.so: undefined reference to `virtual thunk to sc::DenFunctional::~DenFunctional()'                                                                   
/usr/lib/libSCwfn.so: undefined reference to `sc::DenFunctional::~DenFunctional()' 
/usr/lib/libSCwfn.so: undefined reference to `sc::DenFunctional::need_density_hessian()'                                                                              
/usr/lib/libSCwfn.so: undefined reference to `sc::DenFunctional::need_density_gradient()'                                                                             
collect2: ld returned 1 exit status                                                
make[3]: *** [ghemical] Error 1                                                    
make[3]: Leaving directory `/home/portage/sci-chemistry/ghemical-2.98/work/ghemical-2.98/src'                                                                         
make[2]: *** [all-recursive] Error 1                                               
make[2]: Leaving directory `/home/portage/sci-chemistry/ghemical-2.98/work/ghemical-2.98/src'                                                                         
make[1]: *** [all] Error 2                                                         
make[1]: Leaving directory `/home/portage/sci-chemistry/ghemical-2.98/work/ghemical-2.98/src'                                                                         
make: *** [all-recursive] Error 1

Expected Results:  
Successful link and emerge.

Portage 2.1.8.3 (default/linux/x86/10.0/desktop/kde, gcc-4.4.3, glibc-2.10.1-r1, 2.6.34-gentoo i686)                                                                  
=================================================================                  
                        System Settings                                            
=================================================================                  
System uname: Linux-2.6.34-gentoo-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-1.12.13                                                                    
Timestamp of tree: Mon, 14 Jun 2010 12:15:01 +0000                                 
distcc 3.1 i686-pc-linux-gnu [enabled]                                             
app-shells/bash:     4.0_p37                                                       
dev-java/java-config: 2.1.10                                                       
dev-lang/python:     2.6.4-r1, 3.1.2-r3                                            
dev-util/cmake:      2.6.4-r3                                                      
sys-apps/baselayout: 1.12.13                                                       
sys-apps/sandbox:    1.6-r2                                                        
sys-devel/autoconf:  2.13, 2.65                                                    
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                            
sys-devel/binutils:  2.20.1-r1                                                     
sys-devel/gcc:       4.4.3-r2                                                      
sys-devel/gcc-config: 1.4.1                                                        
sys-devel/libtool:   2.2.6b                                                        
virtual/os-headers:  2.6.30-r1                                                     
ACCEPT_KEYWORDS="x86"                                                              
ACCEPT_LICENSE="* -@EULA skype-eula"                                               
CBUILD="i686-pc-linux-gnu"                                                         
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"                           
CHOST="i686-pc-linux-gnu"                                                          
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"         
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                                           
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"                         
DISTDIR="/home/portage/distfiles"                                                  
FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"        
GENTOO_MIRRORS="http://ftp.iinet.net.au/pub/Gentoo "                               
LANG="en_AU.UTF-8"                                                                 
LDFLAGS="-Wl,-O1"                                                                  
LINGUAS="en_AU en_AU.UTF-8 en_GB en_GB.UTF-8"                                      
MAKEOPTS="-j6"                                                                     
PKGDIR="/usr/portage/packages"                                                     
PORTAGE_CONFIGROOT="/"                                                             
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="/home"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa apache2 avahi bash-completion berkdb blas branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups curl cxx dbus djvu dri dts dv dvb dvd dvdr emboss encode exif expat fam ffmpeg fftw flac fontconfig fortran gd gdbm geoip gif gmp gnutls gphoto2 gpm graphviz gsl gtk hal iconv icu ieee1394 imagemagick imlib ipod ipv6 java java5 java6 javascript jpeg kde kqemu lame lapack laptop latex lcms ldap libsamplerate lirc lzo mad matroska mikmod mmap mmx mng modules mp3 mp4 mpeg mplayer mtp mudflap musepack mysql mysqli ncurses nls nptl nptlonly nsplugin odbc offensive ogg openal opengl openmp pam pango pch pcre pdf perl php png ppds pppd python qt3support qt4 readline recode reflection samba sdl session sharedmem sndfile sockets spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs syslog sysvipc taglib tcpd theora threads tiff timidity truetype unicode usb vorbis wavpack wifi wmf wxwindows x264 x86 xcb xcomposite xml xorg xpm xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_AU en_AU.UTF-8 en_GB en_GB.UTF-8" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sci-chemistry/ghemical-2.98 was built with the following:
USE="openbabel threads -seamonkey"
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-06-16 14:36:20 UTC
Which version of sci-chemistry/mpqc do you use? Have you tried mpqc-2.3.1-r2 ?
Comment 2 Jeremy Murphy 2010-06-18 02:44:58 UTC
(In reply to comment #1)

Yeah I've tried them both, compiled with and without --as-needed.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-06-18 18:22:25 UTC
Fixed in tree
+  18 Jun 2010; Kacper Kowalik <xarthisius@gentoo.org>
+  files/mpqc-2.3.1-as-needed.patch:
+  More as-needed fixes (bug 324301). Thanks Jeremy Murphy
+  <jeremy.william.murphy@gmail.com> for reporting

@Jeremy: please wait a bit (~1h) resync and try again. Reopen this bug if issue persists. Thanks!