Bug 132484

Summary: databases/mysql50-client: Unable to build on AMD64, FreeBSD 7.1
Product: Ports & Packages Reporter: Julian Yap <julianokyap>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Julian Yap 2009-03-09 20:30:02 UTC
Running 'portupgrade mysql-client' bombs out here:

/usr/bin/ld: /usr/lib/libpthread.a(thr_getschedparam.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/lib/libpthread.a: could not read symbols: Bad value
*** Error code 1

Stop in /usr/ports/databases/mysql50-client/work/mysql-5.0.77/libmysql_r.
*** Error code 1

Stop in /usr/ports/databases/mysql50-client/work/mysql-5.0.77.
*** Error code 1

Stop in /usr/ports/databases/mysql50-client/work/mysql-5.0.77.
*** Error code 1

Stop in /usr/ports/databases/mysql50-client.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.66075.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=mysql-client-5.0.67 UPGRADE_PORT_VER=5.0.67 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! databases/mysql50-client (mysql-client-5.0.67)        (new compiler error)

How-To-Repeat: Run 'portupgrade mysql-client'.
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2009-03-09 20:41:31 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

Ports bug
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-03-09 20:42:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 baptiste.daroussin 2009-04-08 12:57:07 UTC
Did you upgrade to 7.1 from 6.3 using the following procedure: 
http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html ?
if yes there is a bug (in fact your bug) on amd64, the following workaround
should work :

mkdir /tmp/pthread.bkp
mv /usr/lib/libpthread* /tmp/pthread.bkp/
cd /usr/lib
for ext in .a .so _p.a; do
ln -vs libthr$ext libpthread$ext
done

tell us if it works in order to be able to close the bug.
regards,
Bapt
Comment 4 Julian Yap 2009-04-09 05:20:33 UTC
Indeed, that is what I did.

Thanks, I will try that out tomorrow.

- Julian


On 4/8/09, Baptiste Daroussin <baptiste.daroussin@gmail.com> wrote:
> Did you upgrade to 7.1 from 6.3 using the following procedure:
> http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html
> ?
> if yes there is a bug (in fact your bug) on amd64, the following workaround
> should work :
>
> mkdir /tmp/pthread.bkp
> mv /usr/lib/libpthread* /tmp/pthread.bkp/
> cd /usr/lib
> for ext in .a .so _p.a; do
> ln -vs libthr$ext libpthread$ext
> done
>
> tell us if it works in order to be able to close the bug.
> regards,
> Bapt
>
Comment 5 Julian Yap 2009-04-15 02:06:06 UTC
Baptiste,

I tested this out and it looks like it works for me.  You can close the bug.

Thanks!

Julian

On Wed, Apr 8, 2009 at 6:20 PM, Julian Yap <julianokyap@gmail.com> wrote:
> Indeed, that is what I did.
>
> Thanks, I will try that out tomorrow.
>
> - Julian
>
>
> On 4/8/09, Baptiste Daroussin <baptiste.daroussin@gmail.com> wrote:
>> Did you upgrade to 7.1 from 6.3 using the following procedure:
>> http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html
>> ?
>> if yes there is a bug (in fact your bug) on amd64, the following workaround
>> should work :
>>
>> mkdir /tmp/pthread.bkp
>> mv /usr/lib/libpthread* /tmp/pthread.bkp/
>> cd /usr/lib
>> for ext in .a .so _p.a; do
>> ln -vs libthr$ext libpthread$ext
>> done
>>
>> tell us if it works in order to be able to close the bug.
>> regards,
>> Bapt
>>
>
Comment 6 Alex Dupre freebsd_committer freebsd_triage 2009-04-15 14:50:39 UTC
State Changed
From-To: open->closed

Requested by submitter.