TIP: Click on subject to list as thread! ANSI
echo: mbse
to: Robert Wolfe
from: Jame Clay
date: 2009-06-23 21:56:38
subject: Re: Building in Ubuntu 9.04 x64

On Tue, 02 Jun 2009 10:35:28 -0400, Robert Wolfe wrote:

> Trying to get .92 to build under the AMD64 version of Ubuntu 9.04 and am
> getting the following errors when running make:
> 
> In function open,
>     inlined from f_lock at flock.c:43:
> /usr/include/bits/fcntl2.h:51: error: call to __open_missing_mode
> declared with attribute error: open with O_CREAT in second argument needs
> 3 arguments

> Has anyone else had this issue

    As I noted in my other post today, I did find the same error.


> and if so, is there a workaround for it?

    Change that line to something like as follows:
------------------------------------------------------------------------
if ((lfd = open(fn,O_RDWR | O_CREAT,S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)) < 0) {
------------------------------------------------------------------------

    That adds the third "mode" argument which Ubuntu reguires [1] for open
calls that use "O_CREAT".  Since I wasn't sure what that call might
normally need, as shown above I set it rw for both user & group.  After I
made that change, I was able to compile & build a debian package for it. 
(I could make the build log available, if anyone would like to see it...)
     Haven't tried actually installing & running the resulting package,
though;  still working on other packaging issues...  I also hadn't done
any planning for a patch system for the debian builds, but it looks like
I'll need to do that, at least for ubuntu versions;  and if it works
properly under Debian with that same addition, I'll likely just add it
(as a patch) as part of the debian package build for 0.92...


Jame
http://rocasa.org/mbsedeb

[1] https://wiki.ubuntu.com/CompilerFlags



--- MBSE BBS v0.92.0 (GNU/Linux-i386)
* Origin: Rocasa FTN (1:120/544{at}fidonet)
SEEN-BY: 10/1 3 11/331 14/250 120/228 123/500 128/2 187 140/1 226/0 236/150
SEEN-BY: 249/303 250/1 306 261/20 38 100 1404 1406 1418 266/1413 320/119
SEEN-BY: 393/68 396/45 633/104 260 267 285 712/848 800/432 801/161 189
SEEN-BY: 2222/700 2320/100 200 5030/1256
@PATH: 120/544 140/1 261/38 633/260 267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.