TIP: Click on subject to list as thread! ANSI
echo: mbse
to: Robert Wolfe
from: Jame Clay
date: 2009-07-11 09:22:12
subject: Re: Compiling Error

On Mon, 06 Jul 2009 01:36:24 -0400, Robert Wolfe wrote:

> Trying to build MBSE again unde Xubuntu 9.04 this time for demo purposes. 
> However, when I run make, I get the following error:
> 
> make[1]: Entering directory `/opt/mbse/mbsebbs-ddfe9bbdc257/mbfido' gcc
> -O2 -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings
> -Wstrict-prototypes -D_REENTRANT -I/usr/local/include   -c flock.c 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
> make[1]: *** [flock.o] Error 1
> make[1]: Leaving directory `/opt/mbse/mbsebbs-ddfe9bbdc257/mbfido' make:
> *** [all] Error 2
> 
> Is there any way around this error or is there a package I am missing on
> my Xubuntu system?

    Isn't that the same error you posted about last month?  I posted a
reply about it a few weeks ago:

    Change that line (flock.c:43) 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've added something [2] in order to track it for the packaging I've been
working on, at least for v0.9.2... 



Jame

[1] https://wiki.ubuntu.com/CompilerFlags
[2} http://rocasa.org/mbsedeb/ticket/26


--- FIDOGATE 4.4.11
* Origin: FTN Gate at Rocasa (1:120/545.0)
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/545 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™.