Re: On Mac Ventura, Pike v9 missing GMP symbols

Henrik Grubbström <[email protected]> Tue, 12 Mar 2024 15:13:00 +0100 (CET)
Newsgroups gmane.comp.lang.pike.user
Organization Roxen Internet Software AB
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323328-777644803-1710252780=:6005
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8BIT

On Tue, 12 Mar 2024, Mike Kilmer wrote:

> With you and Chris' help, got Pike 9!

Congrats.

> Needed to also manually add  -lmpfr.
>
> I hadn't noticed that the missing set of symbols was different after 
> adding -lgmp flag manually.

[...]

>> Additionally, tried installing gnu-sed and running with that instead of native osX version and get a different sed error when running `make linker_options`:
>>
>> sed: -e expression #1, char 332: unknown option to `s'
>> echo /Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/Gmp/module.a  > linker_options
>>
>> As opposed to native which gets:
>>
>> sed: 1: "s@-L/usr/local/opt/ruby ...": bad flag in substitute command: '@'
>> echo /Users/mikekilmer/pike/build/darwin-22.6.0-x86_64/modules/Gmp/module.a  > linker_options

The above are probably just two different ways to report the same error.

It looks like the above it output for the Makefile command:

 	@linkopts="`pwd`/module.a `echo '$(MODULE_LDFLAGS)' | sed -e 
's@$(BASE_LDFLAGS)@@'`"; \
...

I suspect that there is an '@' in the definition of MODULE_LDFLAGS
at the beginning of .../modules/Gmp/Makefile in your build tree.

 	/grubba

-- 
Henrik Grubbström					[email protected]
Roxen Internet Software AB				[email protected]
--8323328-777644803-1710252780=:6005--