LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2022, 08:50 PM   #1
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Rep: Reputation: 33
paps (txt2pdf converter) not compiling on Slack150


i don't manage to compile paps (text to PDF converter, v0.7.1 on SlackBuilds SBo) on my shiny new Slack150 boxes. there are tons of error messages of various sorts, see below in window. did anybody succeed in compiling this neat little program ?


Code:
...
make  all-recursive
make[1]: Entering directory '/tmp/SBo/paps-0.7.1'
Making all in src
make[2]: Entering directory '/tmp/SBo/paps-0.7.1/src'
gcc -DHAVE_CONFIG_H -I. -I..  -DGETTEXT_PACKAGE='"paps"' -DDATADIR='"/usr/share"'  -fno-strict-aliasing -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -Werror -Wno-suggest-attribute=format -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-format-y2k -pthread -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -fPIC -MT paps-paps.o -MD -MP -MF .deps/paps-paps.Tpo -c -o paps-paps.o `test -f 'paps.c' || echo './'`paps.c
paps.c: In function ‘parse_enum’:
paps.c:283:3: error: ‘pango_parse_enum’ is deprecated [-Werror=deprecated-declarations]
  283 |   ret = pango_parse_enum (type,
      |   ^~~
In file included from /usr/include/pango-1.0/pango/pango.h:47,
                 from paps.c:23:
/usr/include/pango-1.0/pango/pango-utils.h:52:10: note: declared here
   52 | gboolean pango_parse_enum     (GType       type,
      |          ^~~~~~~~~~~~~~~~
paps.c: At top level:
paps.c:427:1: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
  427 | get_encoding()
      | ^~~~~~~~~~~~
paps.c: In function ‘get_encoding’:
paps.c:427:1: error: old-style function definition [-Werror=old-style-definition]
paps.c: In function ‘main’:
paps.c:540:7: error: unused variable ‘header_sep’ [-Werror=unused-variable]
  540 |   int header_sep = 20;
      |       ^~~~~~~~~~
paps.c:715:6: error: this condition has identical branches [-Werror=duplicated-branches]
  715 |   if (do_draw_header)
      |      ^
paps.c: In function ‘read_file’:
paps.c:821:20: error: unused variable ‘ibleft’ [-Werror=unused-variable]
  821 |       gsize iblen, ibleft, oblen;
      |                    ^~~~~~
paps.c: In function ‘split_text_into_paragraphs’:
paps.c:983:38: error: implicit declaration of function ‘wcwidth’ [-Werror=implicit-function-declaration]
  983 |                           gssize w = wcwidth (wtext[i]);
      |                                      ^~~~~~~
paps.c:983:38: error: nested extern declaration of ‘wcwidth’ [-Werror=nested-externs]
paps.c: At top level:
paps.c:1363:1: error: no previous prototype for ‘get_date’ [-Werror=missing-prototypes]
 1363 | get_date(char *date, int maxlen)
      | ^~~~~~~~
paps.c: In function ‘draw_page_header_line_to_page’:
paps.c:1422:11: error: unused variable ‘line_pos’ [-Werror=unused-variable]
 1422 |   gdouble line_pos;
      |           ^~~~~~~~
paps.c:1420:18: error: unused variable ‘date’ [-Werror=unused-variable]
 1420 |   gchar *header, date[256];
      |                  ^~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:441: paps-paps.o] Error 1
make[2]: Leaving directory '/tmp/SBo/paps-0.7.1/src'
make[1]: *** [Makefile:401: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/paps-0.7.1'
make: *** [Makefile:342: all] Error 2
moreover, i am wondering when SBo decides to switch to 15.0 ? i understand that most programs compile just fine with either, v142 or v150, but there are still differences significant enough...
 
Old 02-18-2022, 03:47 PM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Looks like -Werror in the gcc command line is the culprit.

Last edited by shruggy; 02-18-2022 at 03:51 PM.
 
Old 02-20-2022, 01:22 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
There is an updated SlackBuild for 15.0 at ponce’s repository
 
Old 02-21-2022, 11:34 AM   #4
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Original Poster
Rep: Reputation: 33
thank you, allend - this one worked ! it was a matter of using the new paps.SlackBuild file ready for Slack150 in that it disregards a few compilation error messages. now paps is functioning again, great !
i mark this as SOLVED.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound Converter not converting leupi Linux - Software 2 05-03-2009 09:58 PM
PNs spelling converter not working, what is wrong? raskol Programming 0 03-30-2008 08:44 PM
Usb to Serial converter RHEL4 not recognised simonwelch Linux - Hardware 2 01-13-2007 03:24 AM
im getting UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1' jabka Linux - Newbie 2 11-24-2006 05:44 AM
pilot-link not working with USB Serial-USB Converter with m105 calmofthestorm Linux - Laptop and Netbook 0 09-03-2005 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration