bugPSPP - Bugs: bug #36396, Error while compiling with GCC 4.7

 
 

bug #36396: Error while compiling with GCC 4.7

Submitted by:  Mindaugas <embar>
Submitted on:  Fri 04 May 2012 10:53:09 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)

Sun 06 May 2012 06:53:54 AM UTC, comment #9:

Build success after installing autoconf, automake, m4.
Thanks.

P.S. This bug was only for factory version after migrating to gcc4.7,
not for stable openSUSE version.

Mindaugas <embar>
Sat 05 May 2012 07:07:36 PM UTC, comment #8:

> Maybe the problem is missing unistd.h


No, it's just a failure to link against libgthread. It has nothing to do with changes in GCC.

Ben Pfaff <blp>
Project Administrator
Sat 05 May 2012 07:06:49 PM UTC, comment #7:

>Yes, but I use a patch


You patch configure.ac but didn't patch configure itself, and the log shows that the build's attempt to run autoconf failed:

>CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/abuild/rpmbuild/BUILD/pspp-0.7.9-g78616e/build-aux/missing --run autoconf
>/home/abuild/rpmbuild/BUILD/pspp-0.7.9-g78616e/build-aux/missing: line 52: autoconf: command not found
>WARNING: `autoconf' is missing on your system. You should only need it if
> you modified `configure.ac'. You might want to install the
> `Autoconf' and `GNU m4' packages. Grab them from any GNU
> archive site.

Ben Pfaff <blp>
Project Administrator
Sat 05 May 2012 06:53:31 PM UTC, comment #6:

> The commit number shows that you didn't update to the fixed version. (If you need a tarball, then you can use the one that will be generated tomorrow morning.)


Yes, but I use a patch, see
https://build.opensuse.org/package/files?package=PSPP&project=home%3Aembar-

Mindaugas <embar>
Sat 05 May 2012 06:50:41 PM UTC, comment #5:

Maybe the problem is missing unistd.h

Change in GCC 4.7 compiler:
"Avoid polluting the global namespace and do not include <unistd.h>." in "Runtime Library (libstdc++)" section
See http://gcc.gnu.org/gcc-4.7/changes.html

Mindaugas <embar>
Sat 05 May 2012 06:37:43 PM UTC, comment #4:

>Problem still exist:


The commit number shows that you didn't update to the fixed version. (If you need a tarball, then you can use the one that will be generated tomorrow morning.)

Ben Pfaff <blp>
Project Administrator
Sat 05 May 2012 06:28:11 PM UTC, comment #3:

Problem still exist:

src/ui/gui/src_ui_gui_psppire-main.o: In function `main':
main.c:(.text.startup+0x2b): undefined reference to `g_thread_init'

Iattach rawlog.txt

(file #25794)

Mindaugas <embar>
Sat 05 May 2012 05:03:55 PM UTC, comment #2:

This should be fixed on master. Mindaugus, please reopen this bug if you still see trouble.

Ben Pfaff <blp>
Project Administrator
Sat 05 May 2012 04:34:24 AM UTC, comment #1:

I mailed a fix to pspp-dev for review.

Ben Pfaff <blp>
Project Administrator
Fri 04 May 2012 10:53:09 AM UTC, original submission:

Error while compiling with GCC 4.7 in openSUSE Build service for Factory:

undefined reference to `g_thread_init'

PSPP version: 0.7.9-ge0d88b

more details in attached file or in
https://build.opensuse.org/package/rawlog?arch=x86_64&package=PSPP&project=home%3Aembar-&repository=openSUSE_Factory

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 #25794:  rawlog.txt added by embar (940KiB - text/plain)
file #25784:  e.txt added by embar (907KiB - text/plain - build log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by blp (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
    Sat 05 May 2012 06:28:11 PM UTCembarAttached File-=>Added rawlog.txt, #25794
    Sat 05 May 2012 05:03:55 PM UTCblpStatusReady for Test/Review=>Fixed
      Open/ClosedOpen=>Closed
    Sat 05 May 2012 04:34:24 AM UTCblpCategoryNone=>Compilation/Portability
      StatusNone=>Ready for Test/Review
    Fri 04 May 2012 10:53:09 AM UTCembarAttached File-=>Added e.txt, #25784

    Back to the top


    Powered by Savane 3.1-cleanup1