fails to build from source on Interpid

Bug #254547 reported by LaserJock
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
squeak-vm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: squeak-vm

Squeak currently seems to not built on Intrepid:
In file included from /build/mantha/squeak-vm-3.9.8/platforms/unix/vm-display-fbdev/sqUnixFBDevMouse.c:114,
                 from /build/mantha/squeak-vm-3.9.8/platforms/unix/vm-display-fbdev/sqUnixFBDev.c:133:
/build/mantha/squeak-vm-3.9.8/platforms/unix/vm-display-fbdev/sqUnixFBDevMousePS2.c: In function 'ms_ps2_send':
/build/mantha/squeak-vm-3.9.8/platforms/unix/vm-display-fbdev/sqUnixFBDevMousePS2.c:118: error: ignoring return value of 'write', declared with attribute warn_unused_result
/build/mantha/squeak-vm-3.9.8/platforms/unix/vm-display-fbdev/sqUnixFBDevMousePS2.c: In function 'ms_ps2_disable':
/build/mantha/squeak-vm-3.9.8/platforms/unix/vm-display-fbdev/sqUnixFBDevMousePS2.c:149: error: ignoring return value of 'write', declared with attribute warn_unused_result
make[2]: *** [sqUnixFBDev.lo] Error 1
make[1]: *** [vm-display-fbdev.la] Error 2
make[1]: Leaving directory `/build/mantha/squeak-vm-3.9.8/build'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

Related branches

Revision history for this message
LaserJock (laserjock) wrote :

Adding -D_FORTIFY_SOURCE=0 to the CFLAGS in debian/rules will allow squeak-vm to build. It would however be better to wrap the write() calls with return value handling.

Revision history for this message
Morgan Collett (morgan) wrote :

Fails to build with the same problem in sugar-jhbuild on Ubuntu 8.10.

Revision history for this message
Jason Galyon (jtgalyon) wrote :

What is the underlying problem with sugar building on Ubuntu 8.10?

While I can check out a static copy and build from there making Jordan's modification, this does not work with sugar-jhbuild as Morgan points out. Check http://pastebin.be/14877 for another example.

I would like to either fix the underlying problem on Ubuntu 8.10 or submit a patch to the upstream developer.

Does this occur on 8.04 or previous versions?

Revision history for this message
Morgan Collett (morgan) wrote :

It did not occur on 8.04 or previous versions.

I did a bit of a dance to use the same -D_FORTIFY_SOURCE=0 to manually configure squeak in sugar-jhbuild to get it to build - so the workaround does work there too, but I don't understand the issue enough to recommend it for upstream. I'll ask the Sugar list and upstream again about it.

Revision history for this message
Morgan Collett (morgan) wrote :
Revision history for this message
Morgan Collett (morgan) wrote :

The upstream we are using for sugar-jhbuild has applied the -D_FORTIFY_SOURCE=0 in svn.

Revision history for this message
Jason Galyon (jtgalyon) wrote :

Thank you VERY much for your work.

I just reran the sugar-jhbuild script and it fully built... all the sweet smell of Success!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package squeak-vm - 1:3.9.8-3ubuntu3

---------------
squeak-vm (1:3.9.8-3ubuntu3) jaunty; urgency=low

  * Drop xlibs-static-dev build dependency as it is obsolete.
  * Check the return code of write() in
    platforms/unix/vm-display-fbdev/sqUnixFBDevMousePS2.c (LP: #254547)

 -- James Westby <email address hidden> Tue, 13 Jan 2009 13:46:45 +0000

Changed in squeak-vm:
status: New → Fix Released
Changed in squeak:
status: Unknown → In Progress
Changed in squeak-proprietary:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.