Hi All, I am using PAR-0.90 (pp) to generate binary for the given perl script. I am trying to build a 32-bit binary using pp which has to run on 64-bit freebsd platform. After building the binary, I got following error.
<snip> /libexec/ld-elf.so.1: Undefined symbol "MallocCfg_ptr" referenced from COPY relocation in sync </snip> I tried chasing the issue and found following.. 1. Pp generates the binary which has libperl.so embedded init. 2. In copies the "libperl.so" into "/tmp/par-$user/cache-xxxxxxxxx/libperl.so 3. It dynamically links to the above libperl.so The issue is that on 64-bit machine, ld-elf-so.1 required LD_32_LIBRARY_PATH to be set to ""/tmp/par-$user/cache-xxxxxxxxx/" Directory. But in the file "myldr/mktmpdir.c", LD_32_LIBRARY_PATH is missing from ld_path_key definition in the function "par_setup_libpath". I have added LD_32_LIBRARY_PATH and it is working fine. I want to know whether this issue is reported earlier on 64-bit system and fixed in any of the later releases? If so, please let me know from where should I get the fixed PAR distribution. If not, please let me know whether I can post the fix to PAR distribution in any matter. The fix is simple and one liner. If so, please provide me the process. Regards, Rishi
