[OmniOS-discuss] omnios-build perl

Richard PALO richard at netbsd.org
Tue Oct 20 14:13:58 UTC 2015


Le 20/10/15 14:52, Lauri Tirkkonen a écrit :
> On Tue, Oct 20 2015 12:42:50 +0200, Richard PALO wrote:
>> thought I'd try to rebuild perl (for grins) on bloody
>>
>>> richard at omnis:/home/richard/src/omnios-build/build/perl$ tail -30 build.log 
>>> Build Perl for SOCKS? [n]  
>>> Try to use long doubles if available? [n]  
>>> Checking for optional libraries...
>>> What libraries to use? [-lsocket -lnsl -lgdbm -ldl -lm -lpthread -lc]  
> 
> Doesn't happen on my bloody box. Perhaps you have gdbm.h available
> somewhere and perl picks it up? My perl build.log says:
> 
>     ~/omnios-build/build/perl % egrep '(gdbm\.h|What libraries)' build.log
>     What libraries to use? [-lsocket -lnsl -ldl -lm -lpthread -lc]  
>     <gdbm.h> NOT found.
>     What libraries to use? [-lsocket -lnsl -ldl -lm -lpthread -lc]  
>     <gdbm.h> NOT found.
> 

I was able to get it building okay updating gcc-sunld.patch with the following:
> @@ -60,7 +60,7 @@ esac
>  # libmalloc.a may allocate memory that is only 4 byte aligned, but
>  # GNU CC on the Sparc assumes that doubles are 8 byte aligned.
>  # Thanks to  Hallvard B. Furuseth <h.b.furuseth at usit.uio.no>
> -set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ ucb @ @' -e 's@ sec @ @' -e 's@ crypt @ @'`
> +set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ ucb @ @' -e 's@ sec @ @' -e 's@ crypt @ @' -e 's@ gdbm @ @'`
>  libswanted="$*"
>  
>  # Look for architecture name.  We want to suggest a useful default.
---------------------------------------------------------------------------------------------------------------------------^^^^^^^^^^^
btw, needed to add it to patches/series with the argument -bz.orig to be useful
this is probably not necessary if always building in a virgin dev zone.
-- 
Richard PALO



More information about the OmniOS-discuss mailing list