mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0
@ 2015-05-26 10:25 Kai Hasenklever
  2015-05-26 10:35 ` Clemens Koller
  0 siblings, 1 reply; 6+ messages in thread
From: Kai Hasenklever @ 2015-05-26 10:25 UTC (permalink / raw)
  To: ptxdist

Hello,

I am using the following ptxdist-configuration for a TQ-Group ARM9-Board (tqma28-aa):

- Ptxdist 2013.12.0
- OSELAS Toolchain 2013.12.2
- BSP revision 0109
(as recommended on http://support.tq-group.com/doku.php?id=en:arm:tqma28:linux)

When trying to compile mysql (5.1.14-beta) the following error occurs:

$ ptxdist go

-----------------
target: mysql.get
-----------------

finished target mysql.get

---------------------
target: mysql.extract
---------------------

extract: pkg_src=TQ-ARM-BSP-REV.0109/src/mysql-5.1.14-beta.tar.gz
extract: pkg_extract_dir=TQ-ARM-BSP-REV.0109/platform-tqma28/build-target/mysql-5.1.14-beta

pkg_patch_dir:     'ptxdist-2013.12.0/patches/mysql-5.1.14-beta'
pkg_patch_series:  'ptxdist-2013.12.0/patches/mysql-5.1.14-beta/series'

patchin: quilt: apply 'ptxdist-2013.12.0/patches/mysql-5.1.14-beta/series'
Applying patch mysql-5.0.26_configure.in
patching file configure.in

Applying patch mysql-5.0.26_comp_err_gen_lex_hash.diff
patching file extra/Makefile.am
patching file configure.in
patching file sql/Makefile.am

Applying patch mysql-5.0.26_factorial.diff
patching file dbug/Makefile.am

Applying patch mysql-5.1.14-beta-query_cache.diff
patching file sql/sql_class.cc

Applying patch mysql-5.1.14-beta-install-to-usr-lib.diff
patching file libmysql/Makefile.shared

Now at patch mysql-5.1.14-beta-install-to-usr-lib.diff
patchin: quilt: done

finished target mysql.extract

--------------------------
target: host-mysql.compile
--------------------------

# we need a comp_err tool
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include && PATH=$PATH make
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
make  all-am
make[2]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/mysys && PATH=$PATH make libmysys.a
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/mysys'
make[1]: `libmysys.a' is up to date.
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/mysys'
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/dbug && PATH=$PATH make libdbug.a
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/dbug'
make[1]: `libdbug.a' is up to date.
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/dbug'
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/strings && PATH=$PATH make libmystrings.a
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/strings'
make[1]: `libmystrings.a' is up to date.
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/strings'
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/extra && PATH=$PATH make comp_err
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/extra'
make[1]: `comp_err' is up to date.
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/extra'
# we need sql/gen_lex_hash
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisam && PATH=$PATH make libmyisam.a
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisam'
make[1]: `libmyisam.a' is up to date.
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisam'
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisammrg && PATH=$PATH make libmyisammrg.a
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisammrg'
make[1]: `libmyisammrg.a' is up to date.
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisammrg'
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/heap && PATH=$PATH make libheap.a
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/heap'
make[1]: `libheap.a' is up to date.
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/heap'
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/vio && PATH=$PATH make libvio.a
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/vio'
make[1]: `libvio.a' is up to date.
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/vio'
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/regex && PATH=$PATH make libregex.a
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/regex'
make[1]: `libregex.a' is up to date.
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/regex'
cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/sql && PATH=$PATH make gen_lex_hash
make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/sql'
/bin/bash ../libtool --preserve-dup-deps --tag=CXX   --mode=link g++  -O3    -fno-implicit-templates -fno-exceptions -fno-rtti -static -rdynamic  -o gen_lex_hash gen_lex_hash.o ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a ../zlib/libz.la  -lpthread -lcrypt -lnsl -lm  -lpthread 
libtool: link: cannot find the library `../zlib/libz.la' or unhandled argument `../zlib/libz.la'
make[1]: *** [gen_lex_hash] Error 1
make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/sql'
make: *** [/home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/state/host-mysql.compile] Error 2

Hope someone can point me into the right direction, how to fix this.

Greetings,
Kai Hasenklever



-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0
  2015-05-26 10:25 [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0 Kai Hasenklever
@ 2015-05-26 10:35 ` Clemens Koller
  2015-05-26 11:04   ` Kai Hasenklever
  0 siblings, 1 reply; 6+ messages in thread
From: Clemens Koller @ 2015-05-26 10:35 UTC (permalink / raw)
  To: ptxdist

Hello!

> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/sql'
> /bin/bash ../libtool --preserve-dup-deps --tag=CXX   --mode=link g++  -O3    -fno-implicit-templates -fno-exceptions -fno-rtti -static -rdynamic  -o gen_lex_hash gen_lex_hash.o ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a ../zlib/libz.la  -lpthread -lcrypt -lnsl -lm  -lpthread 
> libtool: link: cannot find the library `../zlib/libz.la' or unhandled argument `../zlib/libz.la'
> make[1]: *** [gen_lex_hash] Error 1

It seems like the dependency to libz is missing or broken.

FYI:
http://www.cvedetails.com/vulnerability-list/vendor_id-185/product_id-316/Mysql-Mysql.html
(a.k.a. Don't ride dead horses. ;-)

Regards,

Clemens

-- 

On 05/26/2015 12:25 PM, Kai Hasenklever wrote:
> Hello,
> 
> I am using the following ptxdist-configuration for a TQ-Group ARM9-Board (tqma28-aa):
> 
> - Ptxdist 2013.12.0
> - OSELAS Toolchain 2013.12.2
> - BSP revision 0109
> (as recommended on http://support.tq-group.com/doku.php?id=en:arm:tqma28:linux)
> 
> When trying to compile mysql (5.1.14-beta) the following error occurs:
> 
> $ ptxdist go
> 
> -----------------
> target: mysql.get
> -----------------
> 
> finished target mysql.get
> 
> ---------------------
> target: mysql.extract
> ---------------------
> 
> extract: pkg_src=TQ-ARM-BSP-REV.0109/src/mysql-5.1.14-beta.tar.gz
> extract: pkg_extract_dir=TQ-ARM-BSP-REV.0109/platform-tqma28/build-target/mysql-5.1.14-beta
> 
> pkg_patch_dir:     'ptxdist-2013.12.0/patches/mysql-5.1.14-beta'
> pkg_patch_series:  'ptxdist-2013.12.0/patches/mysql-5.1.14-beta/series'
> 
> patchin: quilt: apply 'ptxdist-2013.12.0/patches/mysql-5.1.14-beta/series'
> Applying patch mysql-5.0.26_configure.in
> patching file configure.in
> 
> Applying patch mysql-5.0.26_comp_err_gen_lex_hash.diff
> patching file extra/Makefile.am
> patching file configure.in
> patching file sql/Makefile.am
> 
> Applying patch mysql-5.0.26_factorial.diff
> patching file dbug/Makefile.am
> 
> Applying patch mysql-5.1.14-beta-query_cache.diff
> patching file sql/sql_class.cc
> 
> Applying patch mysql-5.1.14-beta-install-to-usr-lib.diff
> patching file libmysql/Makefile.shared
> 
> Now at patch mysql-5.1.14-beta-install-to-usr-lib.diff
> patchin: quilt: done
> 
> finished target mysql.extract
> 
> --------------------------
> target: host-mysql.compile
> --------------------------
> 
> # we need a comp_err tool
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include && PATH=$PATH make
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
> make  all-am
> make[2]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
> make[2]: Nothing to be done for `all-am'.
> make[2]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/mysys && PATH=$PATH make libmysys.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/mysys'
> make[1]: `libmysys.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/mysys'
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/dbug && PATH=$PATH make libdbug.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/dbug'
> make[1]: `libdbug.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/dbug'
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/strings && PATH=$PATH make libmystrings.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/strings'
> make[1]: `libmystrings.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/strings'
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/extra && PATH=$PATH make comp_err
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/extra'
> make[1]: `comp_err' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/extra'
> # we need sql/gen_lex_hash
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisam && PATH=$PATH make libmyisam.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisam'
> make[1]: `libmyisam.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisam'
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisammrg && PATH=$PATH make libmyisammrg.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisammrg'
> make[1]: `libmyisammrg.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisammrg'
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/heap && PATH=$PATH make libheap.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/heap'
> make[1]: `libheap.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/heap'
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/vio && PATH=$PATH make libvio.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/vio'
> make[1]: `libvio.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/vio'
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/regex && PATH=$PATH make libregex.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/regex'
> make[1]: `libregex.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/regex'
> cd /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/sql && PATH=$PATH make gen_lex_hash
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/sql'
> /bin/bash ../libtool --preserve-dup-deps --tag=CXX   --mode=link g++  -O3    -fno-implicit-templates -fno-exceptions -fno-rtti -static -rdynamic  -o gen_lex_hash gen_lex_hash.o ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a ../zlib/libz.la  -lpthread -lcrypt -lnsl -lm  -lpthread 
> libtool: link: cannot find the library `../zlib/libz.la' or unhandled argument `../zlib/libz.la'
> make[1]: *** [gen_lex_hash] Error 1
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/sql'
> make: *** [/home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/state/host-mysql.compile] Error 2
> 
> Hope someone can point me into the right direction, how to fix this.
> 
> Greetings,
> Kai Hasenklever
> 
> 
> 

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0
  2015-05-26 10:35 ` Clemens Koller
@ 2015-05-26 11:04   ` Kai Hasenklever
  2015-05-26 11:25     ` Gieseler, Christian
  0 siblings, 1 reply; 6+ messages in thread
From: Kai Hasenklever @ 2015-05-26 11:04 UTC (permalink / raw)
  To: ptxdist

Hello Clemens,

thanks for your fast answer.

My hope was to get an answer _how_ to resolve this dependency-error on this mailing-list.

Concerning the "dead horse":  I must admit that I am pretty new to ptxdist and at the moment I am pretty much stuck to this setup (ptxdist 2013.12.0).
I already had a look into the rules-folder of the main-branch of ptxdist, but there is also just version 5.1.4-beta.
If the whole thing is going productive some day, I will care about vulnerabilities. At this stage is more or less "proof-of-concept". ;-)

Regards,
Kai

-----Ursprüngliche Nachricht-----
Von: ptxdist [mailto:ptxdist-bounces@pengutronix.de] Im Auftrag von Clemens Koller
Gesendet: Dienstag, 26. Mai 2015 12:35
An: ptxdist@pengutronix.de
Betreff: Re: [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0

Hello!

> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/sql'
> /bin/bash ../libtool --preserve-dup-deps --tag=CXX   --mode=link g++  -O3    -fno-implicit-templates -fno-exceptions -fno-rtti -static -rdynamic  -o gen_lex_hash gen_lex_hash.o ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a ../zlib/libz.la  -lpthread -lcrypt -lnsl -lm  -lpthread 
> libtool: link: cannot find the library `../zlib/libz.la' or unhandled argument `../zlib/libz.la'
> make[1]: *** [gen_lex_hash] Error 1

It seems like the dependency to libz is missing or broken.

FYI:
http://www.cvedetails.com/vulnerability-list/vendor_id-185/product_id-316/Mysql-Mysql.html
(a.k.a. Don't ride dead horses. ;-)

Regards,

Clemens

-- 

On 05/26/2015 12:25 PM, Kai Hasenklever wrote:
> Hello,
> 
> I am using the following ptxdist-configuration for a TQ-Group ARM9-Board (tqma28-aa):
> 
> - Ptxdist 2013.12.0
> - OSELAS Toolchain 2013.12.2
> - BSP revision 0109
> (as recommended on 
> http://support.tq-group.com/doku.php?id=en:arm:tqma28:linux)
> 
> When trying to compile mysql (5.1.14-beta) the following error occurs:
> 
> $ ptxdist go
> 
> -----------------
> target: mysql.get
> -----------------
> 
> finished target mysql.get
> 
> ---------------------
> target: mysql.extract
> ---------------------
> 
> extract: pkg_src=TQ-ARM-BSP-REV.0109/src/mysql-5.1.14-beta.tar.gz
> extract: 
> pkg_extract_dir=TQ-ARM-BSP-REV.0109/platform-tqma28/build-target/mysql
> -5.1.14-beta
> 
> pkg_patch_dir:     'ptxdist-2013.12.0/patches/mysql-5.1.14-beta'
> pkg_patch_series:  'ptxdist-2013.12.0/patches/mysql-5.1.14-beta/series'
> 
> patchin: quilt: apply 'ptxdist-2013.12.0/patches/mysql-5.1.14-beta/series'
> Applying patch mysql-5.0.26_configure.in patching file configure.in
> 
> Applying patch mysql-5.0.26_comp_err_gen_lex_hash.diff
> patching file extra/Makefile.am
> patching file configure.in
> patching file sql/Makefile.am
> 
> Applying patch mysql-5.0.26_factorial.diff patching file 
> dbug/Makefile.am
> 
> Applying patch mysql-5.1.14-beta-query_cache.diff
> patching file sql/sql_class.cc
> 
> Applying patch mysql-5.1.14-beta-install-to-usr-lib.diff
> patching file libmysql/Makefile.shared
> 
> Now at patch mysql-5.1.14-beta-install-to-usr-lib.diff
> patchin: quilt: done
> 
> finished target mysql.extract
> 
> --------------------------
> target: host-mysql.compile
> --------------------------
> 
> # we need a comp_err tool
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/include && PATH=$PATH make
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
> make  all-am
> make[2]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
> make[2]: Nothing to be done for `all-am'.
> make[2]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/include'
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/mysys && PATH=$PATH make libmysys.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/mysys'
> make[1]: `libmysys.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/mysys'
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/dbug && PATH=$PATH make libdbug.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/dbug'
> make[1]: `libdbug.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/dbug'
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/strings && PATH=$PATH make libmystrings.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/strings'
> make[1]: `libmystrings.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/strings'
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/extra && PATH=$PATH make comp_err
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/extra'
> make[1]: `comp_err' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/extra'
> # we need sql/gen_lex_hash
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/storage/myisam && PATH=$PATH make libmyisam.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisam'
> make[1]: `libmyisam.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisam'
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/storage/myisammrg && PATH=$PATH make libmyisammrg.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisammrg'
> make[1]: `libmyisammrg.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/myisammrg'
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/storage/heap && PATH=$PATH make libheap.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/heap'
> make[1]: `libheap.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/storage/heap'
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/vio && PATH=$PATH make libvio.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/vio'
> make[1]: `libvio.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/vio'
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/regex && PATH=$PATH make libregex.a
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/regex'
> make[1]: `libregex.a' is up to date.
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/regex'
> cd 
> /home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5
> .1.14-beta/sql && PATH=$PATH make gen_lex_hash
> make[1]: Entering directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/sql'
> /bin/bash ../libtool --preserve-dup-deps --tag=CXX   --mode=link g++  -O3    -fno-implicit-templates -fno-exceptions -fno-rtti -static -rdynamic  -o gen_lex_hash gen_lex_hash.o ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a ../zlib/libz.la  -lpthread -lcrypt -lnsl -lm  -lpthread 
> libtool: link: cannot find the library `../zlib/libz.la' or unhandled argument `../zlib/libz.la'
> make[1]: *** [gen_lex_hash] Error 1
> make[1]: Leaving directory `/ssd_user/dev/linux/TQ-ARM-BSP-REV.0109/platform-tqma28/build-host/mysql-5.1.14-beta/sql'
> make: *** 
> [/home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/state/host-mysql.
> compile] Error 2
> 
> Hope someone can point me into the right direction, how to fix this.
> 
> Greetings,
> Kai Hasenklever
> 
> 
> 

--
ptxdist mailing list
ptxdist@pengutronix.de
-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0
  2015-05-26 11:04   ` Kai Hasenklever
@ 2015-05-26 11:25     ` Gieseler, Christian
  2015-05-26 11:56       ` Kai Hasenklever
  0 siblings, 1 reply; 6+ messages in thread
From: Gieseler, Christian @ 2015-05-26 11:25 UTC (permalink / raw)
  To: ptxdist

Hi Kai,

> -----Ursprüngliche Nachricht-----
> Von: ptxdist [mailto:ptxdist-bounces@pengutronix.de] Im Auftrag von Kai
> Hasenklever
> Gesendet: Dienstag, 26. Mai 2015 13:04
> An: ptxdist@pengutronix.de
> Betreff: Re: [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0
> 
> Hello Clemens,
> 
> thanks for your fast answer.
> 
> My hope was to get an answer _how_ to resolve this dependency-error on
> this mailing-list.
As Clemens said the dependency is missing. Have a look at System Libraries if zlib is activated. If yes it could also be an error that occurs because of the build order. If zlib is already activated try to build it manually with "ptxdist targetinstall zlib" and continue with "ptxdist images" after that. In case that works you need to add the dependency of zlib in the zlib.in file located in the rules folder of your ptxdist installation. I have not checked how the lib is called but a "select zlib" will help to fix the dependency and make sure required stuff is built in advance and available,

Hope that helps
Regards
Christian


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0
  2015-05-26 11:25     ` Gieseler, Christian
@ 2015-05-26 11:56       ` Kai Hasenklever
  2015-05-26 12:52         ` Gieseler, Christian
  0 siblings, 1 reply; 6+ messages in thread
From: Kai Hasenklever @ 2015-05-26 11:56 UTC (permalink / raw)
  To: ptxdist

Hello Christian,

zlib is already activated with menuconfig (also tried ZLIB_STATIC, but reverted it, as it also failed).

ptxdist targetinstall zlib outputs this:
make: `/home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-tqma28/state/zlib.targetinstall.post' is up to date.

Which of course results in the same error afterwards when compiling mysql.

Regards,
Kai

-----Ursprüngliche Nachricht-----
Von: ptxdist [mailto:ptxdist-bounces@pengutronix.de] Im Auftrag von Gieseler, Christian
Gesendet: Dienstag, 26. Mai 2015 13:26
An: ptxdist@pengutronix.de
Betreff: Re: [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0

Hi Kai,

> -----Ursprüngliche Nachricht-----
> Von: ptxdist [mailto:ptxdist-bounces@pengutronix.de] Im Auftrag von 
> Kai Hasenklever
> Gesendet: Dienstag, 26. Mai 2015 13:04
> An: ptxdist@pengutronix.de
> Betreff: Re: [ptxdist] Libtool error when building mysql on ptxdist 
> 2013.12.0
> 
> Hello Clemens,
> 
> thanks for your fast answer.
> 
> My hope was to get an answer _how_ to resolve this dependency-error on 
> this mailing-list.
As Clemens said the dependency is missing. Have a look at System Libraries if zlib is activated. If yes it could also be an error that occurs because of the build order. If zlib is already activated try to build it manually with "ptxdist targetinstall zlib" and continue with "ptxdist images" after that. In case that works you need to add the dependency of zlib in the zlib.in file located in the rules folder of your ptxdist installation. I have not checked how the lib is called but a "select zlib" will help to fix the dependency and make sure required stuff is built in advance and available,

Hope that helps
Regards
Christian


--
ptxdist mailing list
ptxdist@pengutronix.de
-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0
  2015-05-26 11:56       ` Kai Hasenklever
@ 2015-05-26 12:52         ` Gieseler, Christian
  0 siblings, 0 replies; 6+ messages in thread
From: Gieseler, Christian @ 2015-05-26 12:52 UTC (permalink / raw)
  To: ptxdist

Hi Kai
> -----Ursprüngliche Nachricht-----
> Von: ptxdist [mailto:ptxdist-bounces@pengutronix.de] Im Auftrag von Kai
> Hasenklever
> Gesendet: Dienstag, 26. Mai 2015 13:56
> An: ptxdist@pengutronix.de
> Betreff: Re: [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0
> 
> Hello Christian,
> 
> zlib is already activated with menuconfig (also tried ZLIB_STATIC, but
> reverted it, as it also failed).
> 
> ptxdist targetinstall zlib outputs this:
> make: `/home/jabba/dev/TQ-ARM-BSP-REV.0109/platform-
> tqma28/state/zlib.targetinstall.post' is up to date.
> 
> Which of course results in the same error afterwards when compiling mysql.

My zlib build does not create a libz.la. I only have the files below.

./build-target/zlib-1.2.8/libz.so.1.2.8
./build-target/zlib-1.2.8/libz.so
./build-target/zlib-1.2.8/libz.so.1
./build-target/zlib-1.2.8/libz.a

I am not using mysql but:

Help für mysql in PTX config says your error is known and the packet is set to staging:
"
 STAGING: remove in ptxdist-2015.03.0                                                                                                                                                                             
 This package has not been maintained in a long time. The revision is                                                                                                                                             
 not an official one. The build system is broken (zlib handling).                                                                                                                                                
 Upgrade to recent release is required.    
"

-->use an alternative available on i.mx28 which is known to work: sqlite
Or 
-->You either fix it yourself
-->Find someone who does a fix (e.g. Pengutronix paid support)

Best Regards
Christian
-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-26 12:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-26 10:25 [ptxdist] Libtool error when building mysql on ptxdist 2013.12.0 Kai Hasenklever
2015-05-26 10:35 ` Clemens Koller
2015-05-26 11:04   ` Kai Hasenklever
2015-05-26 11:25     ` Gieseler, Christian
2015-05-26 11:56       ` Kai Hasenklever
2015-05-26 12:52         ` Gieseler, Christian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox