Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151224 - freealut fails to link against openal and pthreads on BSD
Summary: freealut fails to link against openal and pthreads on BSD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Chris Gianelloni (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-13 13:36 UTC by Roy Marples (RETIRED)
Modified: 2006-10-26 08:33 UTC (History)
1 user (show)

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


Attachments
Force linking against openal and pthreads (x,1.07 KB, patch)
2006-10-13 13:38 UTC, Roy Marples (RETIRED)
Details | Diff
openal-pthread.patch (attachment.cgi?id=99591,1.06 KB, patch)
2006-10-14 03:06 UTC, Timothy Redaelli (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Marples (RETIRED) gentoo-dev 2006-10-13 13:36:51 UTC
And as such fails to emerge. Patch to follow
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-10-13 13:38:24 UTC
Created attachment 99591 [details, diff]
Force linking against openal and pthreads
Comment 2 Timothy Redaelli (RETIRED) gentoo-dev 2006-10-14 03:06:57 UTC
Created attachment 99642 [details, diff]
openal-pthread.patch

It`s better to use -pthread instead of -lpthread
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-17 08:07:24 UTC
Did anyone test this on Linux after these changes?  It dies for me.

inertia ~ # emerge --oneshot freealut
Calculating dependencies... done!

>>> Emerging (1 of 1) media-libs/freealut-1.1.0 to /
 * freealut-1.1.0.tar.gz MD5 ;-) ...                                      [ ok ]
 * freealut-1.1.0.tar.gz RMD160 ;-) ...                                   [ ok ]
 * freealut-1.1.0.tar.gz SHA1 ;-) ...                                     [ ok ]
 * freealut-1.1.0.tar.gz SHA256 ;-) ...                                   [ ok ]
 * freealut-1.1.0.tar.gz size ;-) ...                                     [ ok ]
>>> Unpacking source...
>>> Unpacking freealut-1.1.0.tar.gz to /var/tmp/portage/media-libs/freealut-1.1.0/work
 * Running eautoreconf in '/var/tmp/portage/media-libs/freealut-1.1.0/work/freealut-1.1.0' ...
 * Running aclocal -I /var/tmp/portage/media-libs/freealut-1.1.0/work/freealut-1.1.0/admin/autotools/m4 ...                                               [ ok ]
 * Running libtoolize --copy --force --automake ...                       [ ok ]
 * Running aclocal -I /var/tmp/portage/media-libs/freealut-1.1.0/work/freealut-1.1.0/admin/autotools/m4 ...                                               [ ok ]
 * Running autoconf ...                                                   [ ok ]
 * Running autoheader ...                                                 [ ok ]
 * Running automake --add-missing --copy ...                              [ !! ]

 * Failed Running automake !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/media-libs/freealut-1.1.0/temp/automake-28040.out


!!! ERROR: media-libs/freealut-1.1.0 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  freealut-1.1.0.ebuild, line 25:   Called eautoreconf
  autotools.eclass, line 83:   Called eautomake
  autotools.eclass, line 184:   Called autotools_run_tool 'automake' '--add-missing' '--copy'
  autotools.eclass, line 235:   Called die

!!! Failed Running automake !
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-17 08:11:56 UTC
Can you paste the content of that file?
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-17 09:21:14 UTC
Yeah, I guess that would have made some sense, huh?

***** automake *****

src/Makefile.am:23: linker flags such as `-pthread' belong in `libalut_la_LDFLAGS
Comment 6 Roy Marples (RETIRED) gentoo-dev 2006-10-26 05:00:53 UTC
Using -pthread and putting it in libalut_la_LDFLAGS works on linux, but causes the original error on bsd.

My first patch works fine, and compiles on both.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-26 08:33:15 UTC
So it does... changed in CVS... thanks for the patch, Roy!