Bug 229597 - converters/p5-Encode-Detect build error missing stdc++
Summary: converters/p5-Encode-Detect build error missing stdc++
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Some People
Assignee: freebsd-perl mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-08 01:23 UTC by dewayne
Modified: 2019-08-11 18:30 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (perl)


Attachments
Replace stdc++ with c++ (412 bytes, application/x-perl)
2018-07-08 01:23 UTC, dewayne
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2018-07-08 01:23:41 UTC
Created attachment 194943 [details]
Replace stdc++ with c++

During build of /usr/ports/converters/p5-Encode-Detect
/usr/local/bin/ld: cannot find -lstdc++
Error code 2

Enclosed patch enables build with clang 6.0.0 on "FreeBSD 11.2-STABLE  r336017M     i386 hqdev-amd64-smp-vga 1102501 1102501"

A gcc7 build will require something like 
+     extra_linker_flags => ['-L/usr/local/lib/gcc7/ -lstdc++'],

unfortunately issues with -fstack-protector-strong with arose.
Comment 1 Walter Schwarzenfeld freebsd_triage 2019-08-11 18:30:31 UTC
Version 1.01_1 with clang90 shows no errors. Could you confirm?