Operating System - HP-UX
1834882 Members
2412 Online
110071 Solutions
New Discussion

guile-1.6.7 Source Modifications

 
Kevin Schultz
Advisor

guile-1.6.7 Source Modifications

Dear ITRC forums community:

If someone has successfully compiled guile-1.6.7 on HP-UX (any version), and if you are willing and able, would you please let me know what changes to the sources are required?

I am using gcc:

gcc -v
Using built-in specs.
Target: hppa64-hp-hpux11.00
Configured with: ../gcc-4.0.0/configure --prefix=/usr/local/pa20_64 --enable-threads --enable-threads=posix95 --with-gnu-as --with-as=/usr/local/pa20_64/bin/as --disable-nls --with-gmp=/usr/local/pa20_64 --with-mpfr=/usr/local/pa20_64 --disable-shared --enable-languages=c,c++
Thread model: posix95
gcc version 4.0.0

on HP-UX 11.00:

uname -a
HP-UX voltaire B.11.00 U 9000/785 2015073023 unlimited-user license

So far I have modified:

objdir/libguile/guile.c -- change:

91 /* extern const scm_lt_dlsymlist lt_preloaded_symbols[]; */
to:
91 extern const scm_lt_dlsymlist *lt_preloaded_symbols;

and

libtool -- change:

287 hardcode_libdir_flag_spec_ld="+b \$libdir"
to:
287 hardcode_libdir_flag_spec_ld="\${wl}+b \${wl}\$libdir"

7009 hardcode_libdir_flag_spec_ld="+b \$libdir"
to:
7009 hardcode_libdir_flag_spec_ld="\${wl}+b \${wl}\$libdir"
2 REPLIES 2
Kevin Schultz
Advisor

Re: guile-1.6.7 Source Modifications



Figured it out... will post patch shortly.

Best regards,



Kevin Schultz
Kevin Schultz
Advisor

Re: guile-1.6.7 Source Modifications

Dear ITRC forums community:

Here is my patch, really not very good, because it only patches the configure, aclocal.m4, and libguile and guile.c files when really the scripts which generate the configure and aclocal.m4 file should be patched to fix this "bug."

I am probably doing something really dumb because I am new at this, but it seem that configure was not recognizing that I was using GCC properly, and used the +b instead of "-Wl,+b" format needed by GCC. This is a hard-coding of the GCC format for:

_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)

to always use the GCC linker format.

Best regards,



Kevin