Opened 11 years ago

Closed 11 years ago

#42829 closed defect (fixed)

libwps fails to compile

Reported by: macports@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: alonso@…, RJVB (René Bertin)
Port: libwps

Description

libwps error during compilation:

Making all in text
make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_libwps/libwps/work/libwps-0.2.7/src/conv/text'
  CXX    TextDocumentGenerator.o
  CXX    wps2text.o
In file included from TextDocumentGenerator.cpp:27:
./TextDocumentGenerator.h:101:15: error: private field 'm_currentListLevel' is not used [-Werror,-Wunused-private-field]
        unsigned int m_currentListLevel;
                     ^
1 error generated.
make[4]: *** [TextDocumentGenerator.o] Error 1

Full main.log attached.

Attachments (1)

libwps.main.log (72.3 KB) - added by macports@… 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by macports@…

Attachment: libwps.main.log added

comment:1 Changed 11 years ago by alonso@…

Hello, this problem was corrected by https://sourceforge.net/p/libwps/code/ci/b377dff5da8bc944f98c123d1dfac2658bf3a458/ in the libwps's git repository ( and will unfortunately persist in libwps-0.2.8 and libwps-0.2.9, i.e. it will be corrected either in libwps-0.2.10 or in libwps-0.3.0 ).

I do not know enough about macports to be able to propose a solution, but I see two possible trails:

  • add --disable-werror when launching configure,
  • or apply a similar patch before compiling libwps

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: alonso@… rjvbertin@… added
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Duplicate #42894 suggests adding --disable-werror but the above patch is short so we could easily use that instead.

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Well, we really never want -Werror, so I disabled it in r117955, and updated to version 0.2.9.

Note: See TracTickets for help on using tickets.