Opened 3 years ago

Closed 2 years ago

#59072 closed defect (fixed)

[mysql56] compile failure on 10.6.8 x86_64

Reported by: BjarneDMat Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.0
Keywords: Cc:
Port: mysql56


:debug:sysinfo Mac OS X 10.6 (darwin/10.8.0) arch i386
:debug:sysinfo MacPorts 2.6.0
:debug:sysinfo Xcode 3.2.6
:debug:sysinfo SDK 10.6
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.6

[ 92%] Linking CXX static library libsql.a
cd /macports/var/macports/build/.../mysql56/work/build/sql &&
/macports/bin/cmake -P CMakeFiles/sql.dir/cmake_clean_target.cmake
cd /macports/var/macports/build/.../mysql56/work/build/sql &&
/macports/bin/cmake -E cmake_link_script CMakeFiles/sql.dir/link.txt
/macports/bin/ar qc libsql.a  ... lots of CMakeFiles/sql.dir/{name}.cc.o ...
/macports/bin/ranlib: file: libsql.a( has no symbols
/macports/bin/ranlib libsql.a
/macports/bin/ranlib: file: libsql.a( has no symbols
make[2]: Leaving directory
[ 92%] Built target sql
make[1]: Leaving directory
make: *** [all] Error 2
make: Leaving directory
Command failed:  cd
"/macports/var/macports/build/.../mysql56/work/build" &&
/Developer/usr/bin/make -j2 -w all VERBOSE=ON
Exit code: 2
Error: Failed to build mysql56: command execution failed

main.log here :

Change History (3)

comment:1 Changed 3 years ago by BjarneDMat

It's at libtool / cctool problem as described in #59074

Workaround :

declare usrBin='/usr/bin'
declare devBin="/Developer${usrBin}"

while read -u 9 cctool 
    theTool=$( basename ${cctool} )
    echo ${theTool}
    for binDir in "${usrBin}" "${devBin}"
        mv -n "${binDir}/${theTool}" "${binDir}/${theTool}.orig"
        rm "${binDir}/${theTool}"
        ln -h "${cctool}" "${binDir}/${theTool}"
done 9< <( port contents cctools | fgrep /bin/ )

It's the programs in /usr/bin/ that are causing the problems.

Last edited 3 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:2 Changed 2 years ago by kencu (Ken)

That libtool thing is just silly. They hardcoded /usr/bin/libtool It's a 10 second fix. <>

comment:3 Changed 2 years ago by kencu (Ken)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.