bugPSPP - Bugs: bug #64178, v 2.0.0-pre1 does not compile

 
 

bug #64178: v 2.0.0-pre1 does not compile

Submitter:  Ali Alhaidary <ali_alhaidary>
Submitted:  Wed 10 May 2023 07:26:20 PM UTC
   
 
Category:  Compilation/Portability Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 May 2023 11:58:22 AM UTC, comment #3: 

Thank you so much. Now we can proceed testing the localization...

Ali Alhaidary <ali_alhaidary>
Thu 11 May 2023 01:13:32 AM UTC, comment #2: 

Thanks for the report. I fixed this with commit ef3be213fc42 ("Add compatibility code for g_string_free_and_steal() in glib before 2.76.").

Ben Pfaff <blp>
Group administrator
Wed 10 May 2023 07:33:02 PM UTC, comment #1: 

Same error with the command being run. Logs also attached.

libtool: compile:  ccache /usr/bin/clang -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I./gl -I./gl -DINSTALLDIR=\"/opt/local/bin\" -I./src -I./lib -Isrc -I./src/language/commands -I/opt/local/var/macp
orts/build/_Users_jlavergn_macports-ports_math_pspp-devel/pspp-devel/work/pspp-2.0.0-pre1g0ac89e/src/language/expressions -I./src/language/expressions -Isrc -I/opt/local/include -isysroot/Li
brary/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/inclu
de/harfbuzz -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpn
g16 -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gtk
-3.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/
opt/local/include/harfbuzz -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/loc
al/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtksourceview-3.0 -I/opt/local/include/libxml2 -I/opt/local/include/gtk-3.0 -I/opt/lo
cal/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/gio-unix-2.0 -I/
opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/harfbuzz -I/opt/local/in
clude/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/g
lib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbu
s-1.0/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pang
o-1.0 -I/opt/local/include/fribidi -I/opt/local/include/harfbuzz -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/l
ocal/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -Wall -Wextra -Wwrite-strings -Wstrict-prototypes -Wpointer-arith -W
no-sign-compare -Wmissing-prototypes -Wno-unused-parameter -pipe -Os -std=gnu99 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 -DGCC_LINT -MT src/ui/gui/libwidget
s_essential_la-psppire-buttonbox.lo -MD -MP -MF src/ui/gui/.deps/libwidgets_essential_la-psppire-buttonbox.Tpo -c src/ui/gui/psppire-buttonbox.c  -fno-common -DPIC -o src/ui/gui/.libs/libwid
gets_essential_la-psppire-buttonbox.o
src/ui/gui/var-display.c:85:14: error: call to undeclared function 'g_string_free_and_steal'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration
]
      return g_string_free_and_steal (gstr);


(file #54717)

Jeremy Lavergne <snc>
Wed 10 May 2023 07:26:20 PM UTC, original submission:  

PSPP configured successfully.
However, at the en of the make command:
/usr/bin/ld: src/ui/gui/psppire-var-display.o: in function `missing_values_to_string':
/home/ali/Documents/pspp/pspp-2.0.0-pre1/src/ui/gui/var-display.c:85: undefined reference to `g_string_free_and_steal'
/usr/bin/ld: src/ui/gui/psppire-widget-io.o: in function `widget_printf':
/home/ali/Documents/pspp/pspp-2.0.0-pre1/src/ui/gui/widget-io.c:96: undefined reference to `g_string_free_and_steal'
/usr/bin/ld: /home/ali/Documents/pspp/pspp-2.0.0-pre1/src/ui/gui/widget-io.c:96: undefined reference to `g_string_free_and_steal'
/usr/bin/ld: src/ui/gui/.libs/libwidgets-essential.a(libwidgets_essential_la-psppire-dialog-action-1sks.o): in function `generate_syntax':
/home/ali/Documents/pspp/pspp-2.0.0-pre1/src/ui/gui/psppire-dialog-action-1sks.c:75: undefined reference to `g_string_free_and_steal'
/usr/bin/ld: src/ui/gui/.libs/libwidgets-essential.a(libwidgets_essential_la-psppire-dialog-action-aggregate.o): in function `generate_syntax':
/home/ali/Documents/pspp/pspp-2.0.0-pre1/src/ui/gui/psppire-dialog-action-aggregate.c:117: undefined reference to `g_string_free_and_steal'
/usr/bin/ld: src/ui/gui/.libs/libwidgets-essential.a(libwidgets_essential_la-psppire-dialog-action-autorecode.o):/home/ali/Documents/pspp/pspp-2.0.0-pre1/src/ui/gui/psppire-dialog-action-autorecode.c:156: more undefined references to `g_string_free_and_steal' follow
collect2: error: ld returned 1 exit status
make[2]: * [Makefile:10082: src/ui/gui/psppire] Error 1
make[2]: Leaving directory '/home/ali/Documents/pspp/pspp-2.0.0-pre1'
make[1]: * [Makefile:16964: all-recursive] Error 1
make[1]: Leaving directory '/home/ali/Documents/pspp/pspp-2.0.0-pre1'
make: * [Makefile:8026: all] Error 2

And when exuting psppire from the precompiles image pspp-2.0.0-pre1g0ac89e-x86_64-build20230506092902 I get:
./psppire: /lib/x86_64-linux-gnu/libpq.so.5: no version information available (required by /home/ali/Documents/pspp/pspp-2.0.0-pre1g0ac89e-x86_64-build20230506092902/bin/../lib/pspp/libpspp-core-2.0.0-pre1g0ac89e.so)
./psppire: symbol lookup error: ./psppire: undefined symbol: g_string_free_and_steal

Ali Alhaidary <ali_alhaidary>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #54717:  g0ac89e.txz added by snc (66KiB - application/x-xz-compressed-tar)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by blp (Posted a comment)
  • -email is unavailable- added by snc (Updated the item)
  • -email is unavailable- added by ali_alhaidary (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-05-11 blp StatusNone Fixed
        Open/ClosedOpen Closed
    2023-05-10 snc Attached File- Added g0ac89e.txz, #54717

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code