Mantis - mysql5
Viewing Issue Advanced Details
4836 regular use major always 2011-09-28 18:26 2012-02-26 20:05
duncs  
maciej  
normal  
closed  
fixed  
none    
none  
0004836: mysql_config reporting wrong 64 bit directory
/opt/csw/bin/mysql_config shows

--libs_r [-m64 -xarch=sse2 -norunpath -L/opt/csw/mysql5/lib/64 -L/opt/csw/lib/64 -L/opt/csw/lib/mysql -lmysqlclient_r -L/opt/csw/lib -lz -lpthread -lposix4 -lc -lgen -lsocket -lnsl -lm -lpthread]

however

# ls /opt/csw/mysql5/lib/
amd64

so either mysql_config reports the wrong '64' dir or thepackaging uses the wrong 'amd64' dir

As a workaround I have symlinked amd64 to 64 within /opt/csw/mysql5/lib/
# pkginfo -l CSWmysql5
   PKGINST: CSWmysql5
      NAME: mysql5 - Multithreaded SQL database
  CATEGORY: application
      ARCH: i386
   VERSION: 5.0.87,REV=2011.03.07
   BASEDIR: /
    VENDOR: http://www.mysql.com/ [^] packaged for CSW by Maciej Blizinski
    PSTAMP: maciej@current9x-20110307101041
  INSTDATE: Sep 16 2011 13:30
   HOTLINE: http://www.opencsw.org/bugtrack/ [^]
     EMAIL: maciej@opencsw.org
    STATUS: completely installed
     FILES: 347 installed pathnames
                   8 shared pathnames
                  31 linked files
                  58 directories
                  68 executables
              127926 blocks used (approx)
Issue History
2011-09-28 18:26 duncs New Issue
2012-02-26 20:04 maciej Status new => assigned
2012-02-26 20:04 maciej Assigned To => maciej
2012-02-26 20:05 maciej Note Added: 0009664
2012-02-26 20:05 maciej Status assigned => closed
2012-02-26 20:05 maciej Resolution open => fixed

Notes
(0009664)
maciej   
2012-02-26 20:05   
This is now fixed.

vsol05 ~ # /opt/csw/bin/amd64/mysql_config
Usage: /opt/csw/bin/amd64/mysql_config [OPTIONS]
Options:
        --cflags [-I/opt/csw/include/mysql -m64 -xarch=sse2 -mt -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__ -DBIG_TABLES -DHAVE_RWLOCK_T]
        --include [-I/opt/csw/include/mysql]
        --libs [-m64 -xarch=sse2 -L/opt/csw/lib/64 -L/opt/csw/lib/64/mysql -lmysqlclient -L/opt/csw/lib -lz -lposix4 -lc -lgen -lsocket -lnsl -lm]
        --libs_r [-m64 -xarch=sse2 -L/opt/csw/lib/64 -L/opt/csw/lib/64/mysql -lmysqlclient_r -L/opt/csw/lib -lz -lpthread -lposix4 -lc -lgen -lsocket -lnsl -lm -lpthread]
        --socket [/tmp/mysql.sock]
        --port [0]
        --version [5.0.95]
        --libmysqld-libs [-m64 -xarch=sse2 -L/opt/csw/lib/64 -L/opt/csw/lib/64/mysql -lmysqld -L/opt/csw/lib -lz -lpthread -lposix4 -lc -lgen -lsocket -lnsl -lm -lpthread -lwrap -lrt]

All mysql libraries live in /opt/csw/lib(/64).