FTBFS sarg 2.3.1-2 in Oneiric

Bug #776012 reported by Mahyuddin Susanto
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sarg (Debian)
Fix Released
Unknown
sarg (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

gcc -lm util.o log.o report.o topuser.o email.o sort.o html.o totger.o index.o getconf.o usage.o decomp.o ip2name.o useragent.o exclude.o convlog.o totday.o repday.o datafile.o indexonly.o sp
/usr/bin/ld: grepday.o: undefined reference to symbol 'exp@@GLIBC_2.0'
/usr/bin/ld: note: 'exp@@GLIBC_2.0' is defined in DSO /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.6.1/../../../libm.so so try adding it to the linker command line
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.6.1/../../../libm.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [sarg] Error 1
make[1]: Leaving directory `/tmp/buildd/sarg-2.3.1'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
W: no hooks of type C found -- ignoring
I: unmounting /var/cache/pbuilder/ccache filesystem
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/pbuilder/build//11153 and its subdirectories

Tags: ftbfs oneiric

Related branches

Revision history for this message
Felix Geyer (debfx) wrote :

sarg 2.3.1-2 fails to build on oneiric.
-lm needs to be moved to the end of the gcc call.

gcc -lm util.o log.o report.o topuser.o email.o sort.o html.o totger.o index.o getconf.o usage.o decomp.o ip2name.o useragent.o exclude.o convlog.o totday.o repday.o datafile.o indexonly.o splitlog.o lastlog.o topsites.o siteuser.o css.o smartfilter.o denied.o authfail.o charset.o squidguard_log.o squidguard_report.o auth.o download.o grepday.o dansguardian_log.o dansguardian_report.o realtime.o btree_cache.o usertab.o userinfo.o longline.o -o sarg -lldap -lgd
/usr/bin/ld: grepday.o: undefined reference to symbol 'log@@GLIBC_2.2.5'
/usr/bin/ld: note: 'log@@GLIBC_2.2.5' is defined in DSO /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../libm.so so try adding it to the linker command line
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../libm.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [sarg] Error 1

Changed in sarg (Ubuntu):
status: New → Incomplete
summary: - Sync sarg 2.3.1-2 (universe) from Debian unstable (main)
+ FTBFS sarg 2.3.1-2
summary: - FTBFS sarg 2.3.1-2
+ FTBFS sarg 2.3.1-2 in Oneiric
tags: added: ftbfs oneiric
description: updated
Revision history for this message
Mahyuddin Susanto (udienz) wrote :

Thanks

Attached debdiff to solved this problem

Changed in sarg (Ubuntu):
status: Incomplete → New
Revision history for this message
Felix Geyer (debfx) wrote :

Uploaded with a slightly modified changelog entry.
Please forward your changes to Debian.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sarg - 2.3.1-2ubuntu1

---------------
sarg (2.3.1-2ubuntu1) oneiric; urgency=low

  * debian/rules: Using LIBS instead of LDFLAGS to pass -lm to the linker to
    avoid FTBFS with ld --no-add-needed. (LP: #776012)

sarg (2.3.1-2) unstable; urgency=low

  * debian/{patches/03_build-with-gcc44,rules}
    - Removed configure.in patch, replaced with LDFLAG in debian/rules,
      thanks to Andrea Gasparini

sarg (2.3.1-1) unstable; urgency=low

  * New upstream release

  * debian/sarg-reports
    - Fix date interval for daily/weekly/monthly (Closes: #592705)

  * debian/preinst
    - Remove old language files (Closes: #606778)
    - Fix moving output files on upgrade

  * debian/patches/03_build-with-gcc44
    - Added libm check to configure.in to comply with gcc-4.4 linker chages

  * debian/control
    - Bumped Standard-Version to 3.9.1 (no change needed)
 -- Mahyuddin Susanto <email address hidden> Wed, 04 May 2011 23:27:03 +0700

Changed in sarg (Ubuntu):
status: New → Fix Released
Changed in sarg (Debian):
status: Unknown → New
Revision history for this message
linuxar (linuxar) wrote :

I will mark this as a duplicate of #825542 (and, more exactly, of #876264), since it is the same basic cause: the "--no-copy-dt-needed-entries" is now automatically passed to the linker and, as such, implicit linking fails.

While not exactlya duplicate, it is strongly related. I have no fix for the time being.

If you feel that "Duplicate" is too much, please unmark it.

Revision history for this message
Felix Geyer (debfx) wrote :

> since it is the same basic cause: the "--no-copy-dt-needed-entries" is now automatically passed to the linker and, as such, implicit linking fails.

Yes, but we don't want to track all these bugs in a central huge bug report.

> While not exactlya duplicate, it is strongly related. I have no fix for the time being.

The "sarg" package has already been fixed. There is nothing left to do.

Changed in sarg (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.