Opened 19 months ago

Closed 19 months ago

Last modified 17 months ago

#67301 closed defect (fixed)

opensp fails to configure in 10.6.8 Rosetta: configure: error: cannot compute sizeof (size_t)

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: snowleopard, powerpc, rosetta Cc:
Port: opensp

Description

checking for sig_atomic_t... no
checking size of size_t... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_opensp/opensp/work/OpenSP-1.5.2':
configure: error: cannot compute sizeof (size_t)
See `config.log' for more details
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_opensp/opensp/work/OpenSP-1.5.2" && ./configure --prefix=/opt/local --enable-http --disable-dependency-tracking --enable-default-catalog=/opt/local/share/sgml/catalog --mandir=/opt/local/share/man --disable-doc-build 
Exit code: 77

Attachments (2)

opensp_build_log.txt (60.2 KB) - added by barracuda156 19 months ago.
opensp_config_log.txt (170.5 KB) - added by barracuda156 19 months ago.

Download all attachments as: .zip

Change History (8)

Changed 19 months ago by barracuda156

Attachment: opensp_build_log.txt added

Changed 19 months ago by barracuda156

Attachment: opensp_config_log.txt added

comment:1 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

config.log says the reason is:

error: unrecognized command line option "-std=c++03"

comment:2 in reply to:  1 Changed 19 months ago by barracuda156

Replying to ryandesign:

config.log says the reason is:

error: unrecognized command line option "-std=c++03"

Thank you. What will be a correct solution, blacklist compiler? We do not have 2003 cxx_standard, do we?

comment:3 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

There's not much difference between the 2003 and 1998 versions of C++. Does it build if you change c++03 to c++98? If so, write a patch to do that.

Last edited 19 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 in reply to:  3 Changed 19 months ago by barracuda156

Replying to ryandesign:

There's not much difference between the 2003 and 1998 versions of C++. Does it build if you change c++03 to c++98? If so, write a patch to do that.

It is actually the portfile which adds the flag:

configure.cxxflags-append   -std=c++03

Will try replacing it.

UPD. Yes, c++98 works perfectly fine.

Last edited 19 months ago by barracuda156 (previous) (diff)

comment:5 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Duplicate of #64609.

comment:6 Changed 17 months ago by barracuda156

Owner: set to barracuda156
Resolution: duplicatefixed

In 012de8c51e2f232bd8fb1d69e016b6e10c98953f/macports-ports (master):

opensp: fix build with gcc-4.2

Fixes: #67301

Co-authored-by: Ryan Schmidt <ryandesign@…>

Note: See TracTickets for help on using tickets.