Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined reference to rpl_malloc #180

Closed
midaszhou opened this issue Jan 2, 2017 · 3 comments
Closed

Undefined reference to rpl_malloc #180

midaszhou opened this issue Jan 2, 2017 · 3 comments

Comments

@midaszhou
Copy link

Just cross compile espeak-ng for Openwrt, Errors arise at final make stage :

image

@midaszhou
Copy link
Author

I've deleted lines of "#undef malloc" and "#undef realloc" in config.h.in before, otherwise it would cause "undefined reference to rpl_malloc" error during making. Dose that matter ?

@rhdunn rhdunn added the build label Jan 14, 2017
@rhdunn rhdunn changed the title make: src/espeak-ng: line 117: .../espeak/src/.libs/lt-espeak-ng: cannot execute binary file: Exec format error Undefined reference to rpl_malloc Jan 14, 2017
@rhdunn
Copy link
Member

rhdunn commented Jan 14, 2017

The build process uses the built espeak-ng program to build the dictionary and phoneme data. You could do the following:

  1. Build the program locally to build the dictionary and voice data (make).
  2. Build the espeak-ng and speak-ng programs with the library using cross compilation (make -B src/speak-ng src/espeak-ng).

The "undefined reference to rpl_malloc" error is an issue with the configure.ac script.

@midaszhou
Copy link
Author

midaszhou commented Jan 15, 2017

Thanks a lot! It works!
For the 2nd step, I deleted 'AC_FUNC_MALLOC' and 'AC_FUNC_REALLOC' in configure.ac,
then run autogen.sh and bulid.sh again.
I edited build.sh for cross compilation like this:
#!/bin/sh
./configure --build=i386-linux
--host=mipsel-openwrt-linux
--target=mips-linux \

finially run make as ( make -B src/speak-ng src/espeak-ng ).
Its tricky and exiting!
image

@rhdunn rhdunn closed this as completed Jan 15, 2017
@rhdunn rhdunn modified the milestone: 1.49.1 Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants