<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>151896</bug_id>
          
          <creation_ts>2006-10-18 19:52 0000</creation_ts>
          <short_desc>sys-power/apcupsd-3.10.18-r1 -- apcupsd.c: undefined reference to `attach_driver&apos;</short_desc>
          <delta_ts>2006-10-22 12:49:53 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>martin@mbs3.org</reporter>
          <assigned_to>tantive@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>martin@mbs3.org</who>
            <bug_when>2006-10-18 19:52:32 0000</bug_when>
            <thetext>Hello,

I get the following build error on the package and version specified in the summary (but emerge doesn&apos;t notice/stop):

gcc -g -O  apcupsd.o apcoptd.o apcnet.o apcreports.o apcaction.o apcnis.o apcdevice.o /var/tmp/portage/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/drivers/libdrivers.a /var/tmp/portage/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src/lib/libapc.a      -o apcupsd
apcupsd.o: In function `main&apos;:
apcupsd.c:(.text+0x401): undefined reference to `attach_driver&apos;
collect2: ld returned 1 exit status
gmake[1]: *** [apcupsd] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/apcupsd-3.10.18-r1/work/apcupsd-3.10.18/src&apos;
&gt;&gt;&gt; Source compiled.


Here is my emerge --info:

Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.1
Last Sync: Wed, 18 Oct 2006 11:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=athlon-xp -O2 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=athlon-xp -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ &quot;
LINGUAS=&quot;&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 acpi apache2 apm automount avahi berkdb bitmap-fonts cli cracklib crypt cups dlloader dri elibc_glibc fortran gdbm gpm input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kerberos kernel_linux ldap ldapsam libg++ mdnsresponder-compat mysql mysqli ncurses nls nptl nptlonly openssl pam pcre perl php png ppds pppd python readline reflection samba screen sensord session spl ssl svga syslog tcl tcpd tiff truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo winbind xml xorg zlib&quot;Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>martin@mbs3.org</who>
            <bug_when>2006-10-19 04:16:19 0000</bug_when>
            <thetext>An &quot;emerge --newuse --update --deep world&quot; seems to fix this problem; I started with a stage 3 from 2006.1 originally with this system. Perhaps this isn&apos;t a bug so much as some missing dependency information?

Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tantive@gentoo.org</who>
            <bug_when>2006-10-22 12:49:53 0000</bug_when>
            <thetext>Fixed in cvs. Using emake instead of make.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>