bugPSPP - Bugs: bug #37364, undefined reference to...

 
 

bug #37364: undefined reference to `gtk_widget_set_mapped' and `gtk_widget_set_realized'

Submitted by:  Mindaugas <embar>
Submitted on:  Sun 16 Sep 2012 08:58:04 AM UTC  
 
Category: Compilation/PortabilitySeverity: 5 - Average
Status: FixedAssigned to: None
Open/Closed: ClosedRelease: None
Effort: 0.00

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 27 Sep 2012 07:05:01 PM UTC, comment #13:

Closing per origintor's request.

John Darrington <jmd>
Project Administrator
Tue 25 Sep 2012 08:51:24 AM UTC, comment #12:

Success build if I use source from http://pspp.benpfaff.org/~blp/pspp-master/ (before I compiled from GIT version) and add
perl-ExtUtils-MakeMaker to BuildRequires. So you can close bug.

Mindaugas <embar>
Fri 21 Sep 2012 09:02:33 AM UTC, comment #11:

autoconf-2.63-5.1.el6

Mindaugas <embar>
Fri 21 Sep 2012 09:00:46 AM UTC, comment #10:

I suspect you are using an older version of autoconf
Version 2.6x is the recommended version. Which are you using?

John Darrington <jmd>
Project Administrator
Fri 21 Sep 2012 08:33:42 AM UTC, comment #9:

Becides, if you want, you can create Account in build.opensuse.org, go to
https://build.opensuse.org/package/show?package=PSPP&project=home%3Aembar-%3Abranches%3Ahome%3Aembar-#
or
https://build.opensuse.org/package/show?package=PSPP&project=home%3Aembar-
and press "Branch package" to clone it youself (It success to build for openSUSE, Fedora, Mandriva).

Mindaugas <embar>
Fri 21 Sep 2012 08:25:33 AM UTC, comment #8:

With cat command I can see content of file,
so I attach fragment of buildlog with content of config.h.

(file #26606)

Mindaugas <embar>
Fri 21 Sep 2012 07:44:49 AM UTC, comment #7:

PACKAGE_URL is defined in config.h and that is included right at the top of help-menu.c So this error should not happen.

Can you check that config.h has been correctly created?

John Darrington <jmd>
Project Administrator
Thu 20 Sep 2012 09:28:10 PM UTC, comment #6:

Thanks, now I see error (also only for CentOS):

[ 471s] src/ui/gui/help-menu.c: In function 'about_new':
[ 471s] src/ui/gui/help-menu.c:51: error: 'PACKAGE_URL' undeclared (first use in this function)
[ 471s] src/ui/gui/help-menu.c:51: error: (Each undeclared identifier is reported only once
[ 471s] src/ui/gui/help-menu.c:51: error: for each function it appears in.)
[ 471s] src/ui/gui/help-menu.c: In function 'online_help':
[ 471s] src/ui/gui/help-menu.c:109: error: 'PACKAGE_URL' undeclared (first use in this function)
[ 471s] src/ui/gui/help-menu.c:109: error: expected ')' before string constant
[ 471s] make[2]: *** [src/ui/gui/src_ui_gui_psppire-help-menu.o] Error 1
[ 471s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/pspp-1348139695'
[ 471s] make[1]: *** [all-recursive] Error 1
[ 471s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/pspp-1348139695'
[ 471s] make: *** [all] Error 2
[ 471s] error: Bad exit status from /var/tmp/rpm-tmp.jKTZhW (%build)
[

(file #26605)

Mindaugas <embar>
Thu 20 Sep 2012 11:18:44 AM UTC, comment #5:

I pushed a fix for this.

Can you try it and give us feedback?

John Darrington <jmd>
Project Administrator
Wed 19 Sep 2012 05:01:51 PM UTC, comment #4:

Oh, comment #2 is wrong, because I searched gtk.h in openSUSE system, but build is for CentOS. I can not extract file from
openSSUE Build Service, because build failed.

GTk version is 2.18,
as you see in buildlog.txt line 132-133
[ 60s] [84/247] preinstalled gtk2-2.18.9-6.el6.centos
[ 60s] [85/247] preinstalled gtk2-devel-2.18.9-6.el6.centos
[ 60s] [86/247] installing gtksourceview2-2.8.2-4.el6

Mindaugas <embar>
Wed 19 Sep 2012 05:54:17 AM UTC, comment #3:

In your buildlog.txt which you posted I see this:

[ 207s] rm -f src/ui/gui/include/gtk/gtk.h-t src/ui/gui/include/gtk/gtk.h && \
[ 207s] { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
[ 207s] sed -e 's|@''INCLUDE_NEXT''@|include_next|g' \
[ 207s] -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
[ 207s] -e 's|@''PRAGMA_COLUMNS''@||g' \
[ 207s] -e 's|@''NEXT_GTK_GTK_H''@|<gtk/gtk.h>|g' \
[ 207s] < ./src/ui/gui/include/gtk/gtk.in.h; \
[ 207s] } > src/ui/gui/include/gtk/gtk.h-t && \
[ 207s] mv src/ui/gui/include/gtk/gtk.h-t src/ui/gui/include/gtk/gtk.h

so the gtk.h file is certainly getting generated Is something killing it?

Also can you say which version of gtk+ you have installed.

John Darrington <jmd>
Project Administrator
Tue 18 Sep 2012 04:30:23 PM UTC, comment #2:

I compiled in OSB (openSUSE Build Service):
https://build.opensuse.org/package/show?package=PSPP&project=home%3Aembar-

I installed pspp-debugsource package, but there is no such gtk.h.

But I found /usr/include/gtk-2.0/gtk/gtk.h in gtk2-devel package

(file #26581)

Mindaugas <embar>
Tue 18 Sep 2012 09:39:40 AM UTC, comment #1:

Can you send us the contents of the file src/ui/gui/include/gtk/gtk.h in your build dir?

These functions should have been defined there. For some reason it seems that you build doesn't see them.

John Darrington <jmd>
Project Administrator
Sun 16 Sep 2012 08:58:04 AM UTC, original submission:

Compiling pspp-0.7.9-gacc57a for CentOS-6 in openSUSE Build Service
has error:

[ 553s] src/ui/gui/src_ui_gui_psppire-pspp-sheet-view.o: In function `pspp_sheet_view_map':
[ 553s] /home/abuild/rpmbuild/BUILD/pspp-0.7.9-gacc57a/src/ui/gui/pspp-sheet-view.c:1399: undefined reference to `gtk_widget_set_mapped'
[ 553s] src/ui/gui/src_ui_gui_psppire-pspp-sheet-view.o: In function `pspp_sheet_view_realize':
[ 553s] /home/abuild/rpmbuild/BUILD/pspp-0.7.9-gacc57a/src/ui/gui/pspp-sheet-view.c:1428: undefined reference to `gtk_widget_set_realized'
[ 553s] collect2: ld returned 1 exit status
[ 553s] make[2]: *** [src/ui/gui/psppire] Error 1

Mindaugas <embar>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #26606:  config.txt added by embar (7KiB - text/plain - config.h)
file #26605:  rawlog2.txt added by embar (657KiB - text/plain - buildlog2)
file #26581:  gtk.h added by embar (7KiB - text/x-chdr - /usr/include/gtk-2.0/gtk/gtk.h)
file #26560:  rawlog.txt added by embar (824KiB - text/plain - buildlog)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jmd (Posted a comment)
  • -unavailable- added by embar (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 27 Sep 2012 07:05:01 PM UTCjmdOpen/ClosedOpen=>Closed
    Fri 21 Sep 2012 08:25:33 AM UTCembarAttached File-=>Added config.txt, #26606
    Thu 20 Sep 2012 09:28:10 PM UTCembarAttached File-=>Added rawlog2.txt, #26605
    Thu 20 Sep 2012 11:18:44 AM UTCjmdStatusNone=>Fixed
    Tue 18 Sep 2012 04:30:23 PM UTCembarAttached File-=>Added gtk.h, #26581
    Sun 16 Sep 2012 08:58:04 AM UTCembarAttached File-=>Added rawlog.txt, #26560

    Back to the top


    Powered by Savane 3.1-cleanup1