Menu

#10 Compilation on FreeBSD

open
nobody
9
2001-08-08
2001-08-08
Alex
No

I experience a problem on FreeBSD (4.4-prerelease but I
had the problem also in 4.3-(stable|release) since the
0.6.7.3 release to today's (08/08/2001) CVS:

gcc -DSHWRAP32 -DSTATFS_USE_MOUNT -DINLINE=inline
-DSTONXDIR="/usr/local/share/stonx" -O3 -funroll-loops
-ffixed-ebx -ffixed-ebp -fomit-frame-pointer -m486
-malign-jumps=2 -malign-functions=4 -Wall -Wno-unused
-I.. -c mint_stonxfs_fs.c -o ../mint_stonxfs_fs.o
mint_stonxfs_fs.c: In function `mint_fs_pathconf':
mint_stonxfs_fs.c:928: structure has no member named
`f_namelen'
mint_stonxfs_fs.c:929: structure has no member named
`f_namelen'
mint_stonxfs_fs.c:885: warning: `retval' might be used
uninitialized in this function
gmake[1]: *** [../mint_stonxfs_fs.o] Error 1
gmake[1]: Leaving directory `/usr/home/al/stonx/mint'

If I hack the Makefile.in to skip compilation in mint/
subdir, I get an error in compiling audio.c

gcc -fomit-frame-pointer -ffixed-ebx -ffixed-ebp -I.
-I/usr/X11R6/include -DSHWRAP32 -DSTATFS_USE_MOUNT
-DINLINE=inline -DSTONXDIR=\"/usr/local/share/stonx\"
-Wall -Wno-unused -O3 -c audio.c -o audio.o
audio.c:53: warning: #warning unknow sound system
audio.c: In function `audio_server':
audio.c:878: warning: type defaults to `int' in
declaration of `called'
audio.c: In function `LINUX_audio_open':
audio.c:951: `SNDCTL_DSP_SAMPLESIZE' undeclared (first
use in this function)
audio.c:951: (Each undeclared identifier is reported
only once
audio.c:951: for each function it appears in.)
audio.c:961: `SNDCTL_DSP_STEREO' undeclared (first use
in this function)
audio.c:969: `SNDCTL_DSP_GETBLKSIZE' undeclared (first
use in this function)
audio.c:990: `SNDCTL_DSP_SPEED' undeclared (first use
in this function)
gmake: *** [audio.o] Error 1

If I hack Makefile.in again, compilation works but
linking fails of course (undefined reference to...).

Thanks for helping me

Discussion

  • Alex

    Alex - 2001-08-08
    • priority: 5 --> 9
    • summary: Compilation of FreeBSD --> Compilation on FreeBSD
     
  • Alex Bennee

    Alex Bennee - 2001-10-03

    Logged In: YES
    user_id=10592

    I have a feeling the seconf set is a bunch of ifdef
    problems (which work on one BSD but not the other). I shall
    have a look and see.

     
  • Alex Bennee

    Alex Bennee - 2001-11-09

    Logged In: YES
    user_id=10592

    The second set of faults (audio) is definatly fixed in CVS
    for both *BSD's

     

Log in to post a comment.

MongoDB Logo MongoDB