Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Ubuntu 18.04? #212

Closed
df7cb opened this issue Nov 22, 2022 · 11 comments
Closed

Support for Ubuntu 18.04? #212

df7cb opened this issue Nov 22, 2022 · 11 comments

Comments

@df7cb
Copy link
Contributor

df7cb commented Nov 22, 2022

Until recently, pspg could be compiled on Ubuntu 18.04 (bionic), but that no longer works:

:21:37 gcc  csv.o print.o commands.o unicode.o themes.o pspg.o config.o sort.o pgclient.o args.o infra.o table.o string.o export.o linebuffer.o bscommands.o readline.o inputs.o theme_loader.o st_menu.o st_menu_styles.o menu.o -o pspg -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -lm  -lreadline -lpanelw -lncursesw -ltinfo   -lpq
14:21:37 pspg.o: In function `main':
14:21:37 ./src/pspg.c:6731: undefined reference to `reset_color_pairs'
14:21:37 collect2: error: ld returned 1 exit status

I can disable building pspg for bionic on apt.postgresql.org, and since it's EOL in a few months anyway, it's not really a problem, so this is more a heads-up in case this wasn't intended.

@okbob
Copy link
Owner

okbob commented Nov 22, 2022

I removed this call, so it should be compilable again. I tried to fix some issue #211 but it doesn't help (probably, missing user feedback), and other users didn't reported problems.

@df7cb
Copy link
Contributor Author

df7cb commented Nov 22, 2022

Thanks!

@df7cb df7cb closed this as completed Nov 22, 2022
@df7cb
Copy link
Contributor Author

df7cb commented Dec 4, 2022

A similar problem seems back in 5.6.0, again on Ubuntu bionic:

17:11:51 gcc  csv.o print.o commands.o unicode.o themes.o pspg.o config.o sort.o pgclient.o args.o infra.o table.o string.o export.o linebuffer.o bscommands.o readline.o inputs.o theme_loader.o st_menu.o st_menu_styles.o menu.o -o pspg -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -lm  -lreadline -lpanelw -lncursesw -ltinfo   -lpq
17:11:51 themes.o: In function `ncurses_theme_attr':
17:11:51 ./src/themes.c:353: undefined reference to `init_extended_pair'
17:11:51 st_menu_styles.o: In function `set_rgb_color_pair':
17:11:51 ./src/st_menu_styles.c:118: undefined reference to `init_extended_pair'
17:11:51 st_menu_styles.o: In function `set_color_pair':
17:11:51 ./src/st_menu_styles.c:153: undefined reference to `init_extended_pair'
17:11:51 collect2: error: ld returned 1 exit status

https://pgdgbuild.dus.dg-i.net/job/pspg-binaries/architecture=i386,distribution=bionic/82/console

(We are 5 months from the EOL date of bionic, so it might not be worth the trouble to avoid these functions.)

@okbob
Copy link
Owner

okbob commented Dec 4, 2022 via email

@okbob
Copy link
Owner

okbob commented Dec 4, 2022

please, can you check 5.6.2?

@df7cb
Copy link
Contributor Author

df7cb commented Dec 4, 2022

5.6.2 still has the same problem: undefined reference to init_extended_pair'`

https://pgdgbuild.dus.dg-i.net/job/pspg-binaries/83/architecture=amd64,distribution=bionic/console

@okbob
Copy link
Owner

okbob commented Dec 4, 2022 via email

@df7cb
Copy link
Contributor Author

df7cb commented Dec 4, 2022

21:33:31 gcc  -c  src/args.c -o args.o -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DCOMPILE_MENU   -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -DPACKAGE_NAME=\"pspg\" -DPACKAGE_TARNAME=\"pspg\" -DPACKAGE_VERSION=\"0\" -DPACKAGE_STRING=\"pspg\ 0\" -DPACKAGE_BUGREPORT=\"pavel.stehule@gmail.com\" -DPACKAGE_URL=\"\" -DGWINSZ_IN_SYS_IOCTL=1 -DHAVE_NCURSESW=1 -DHAVE_CURSES=1 -DHAVE_CURSES_ENHANCED=1 -DHAVE_CURSES_COLOR=1 -DHAVE_CURSES_OBSOLETE=1 -DHAVE_NCURSESW_CURSES_H=1 -DHAVE_CURSES_ENHANCED=1 -DHAVE_CURSES_COLOR=1 -DHAVE_CURSES_OBSOLETE=1 -DHAVE_NCURSES_H=1 -DHAVE_PANEL=1 -DHAVE_NCURSESW_PANEL_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIBREADLINE=1 -DHAVE_READLINE_READLINE_H=1 -DHAVE_READLINE_HISTORY=1 -DHAVE_READLINE_HISTORY_H=1 -DHAVE_POSTGRESQL=1 -DHAVE_LIBM=1 -DHAVE_SYS_INOTIFY_H=1 -DHAVE_INOTIFY=1 -DHAVE_SYS_UTSNAME_H=1 -Wall -MD
21:33:31 src/args.c: In function ‘readargs’:
21:33:31 src/args.c:813:5: error: expected ‘;’ before ‘return’
21:33:31      return false;
21:33:31      ^~~~~~
21:33:31 Makefile:33: recipe for target 'args.o' failed

@okbob
Copy link
Owner

okbob commented Dec 4, 2022 via email

@df7cb
Copy link
Contributor Author

df7cb commented Dec 4, 2022

That looks good, thanks for the patience!

@okbob
Copy link
Owner

okbob commented Dec 4, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants