Fails to link

Help
FishB8
2010-03-25
2013-04-24
  • FishB8
    FishB8
    2010-03-25

    Not sure what version of csound this is intended to build against. I'm currently using 5.12.1 and getting all kinds of errors when trying to link:

    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(one_file.o): In function `csoundTmpFileName':
    (.text+0x480): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfclosein':
    (.text+0x707): undefined reference to `sf_close'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfcloseout':
    (.text+0x7fe): undefined reference to `sf_close'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfcloseout':
    (.text+0x94a): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `writesf':
    (.text+0x9b1): undefined reference to `sf_write_double'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `readsf':
    (.text+0xc03): undefined reference to `sf_read_double'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0xe22): undefined reference to `sf_open'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0xe7d): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0xe9f): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0xf1c): undefined reference to `sf_set_string'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0x116e): undefined reference to `sf_open_fd'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0x1207): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0x1318): undefined reference to `sf_set_string'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0x1338): undefined reference to `sf_set_string'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0x1358): undefined reference to `sf_set_string'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0x1378): undefined reference to `sf_set_string'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenout':
    (.text+0x1398): undefined reference to `sf_set_string'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenin':
    (.text+0x1516): undefined reference to `sf_open_fd'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenin':
    (.text+0x1759): undefined reference to `sf_open'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd.o): In function `sfopenin':
    (.text+0x187c): undefined reference to `sf_open'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd_u.o): In function `sreadin':
    (.text+0x3d4): undefined reference to `sf_read_double'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd_u.o): In function `sndgetset':
    (.text+0xdd6): undefined reference to `sf_seek'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(libsnd_u.o): In function `rewriteheader':
    (.text+0x86f): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(csmodule.o): In function `csoundOpenLibrary':
    (.text+0x1a7): undefined reference to `dlopen'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(csmodule.o): In function `csoundLoadExternal':
    (.text+0x4cc): undefined reference to `dlerror'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(csmodule.o): In function `csoundGetLibrarySymbol':
    (.text+0x121): undefined reference to `dlsym'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(csmodule.o): In function `csoundCloseLibrary':
    (.text+0x141): undefined reference to `dlclose'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(main.o): In function `csoundCompile':
    (.text+0x106): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(envvar.o): In function `csoundFileClose':
    (.text+0xa5): undefined reference to `sf_close'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(envvar.o): In function `csoundFileOpenWithType':
    (.text+0x1ce0): undefined reference to `sf_open_fd'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(envvar.o): In function `csoundFileOpenWithType':
    (.text+0x1d02): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(envvar.o): In function `csoundFileOpenWithType':
    (.text+0x1d4f): undefined reference to `sf_open_fd'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(envvar.o): In function `csoundFileOpenWithType':
    (.text+0x1fe8): undefined reference to `sf_open_fd'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(envvar.o): In function `csoundFileOpenWithType':
    (.text+0x2051): undefined reference to `sf_open'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(fgens.o): In function `gen01raw':
    (.text+0xaddf): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(memfiles.o): In function `csoundLoadSoundFile':
    (.text+0x628): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(memfiles.o): In function `csoundLoadSoundFile':
    (.text+0x723): undefined reference to `sf_readf_float'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin.o): In function `soundouts':
    (.text+0x7b): undefined reference to `sf_write_double'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin.o): In function `soundout':
    (.text+0x126): undefined reference to `sf_write_double'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin.o): In function `soundout_deinit':
    (.text+0x1ff): undefined reference to `sf_write_double'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin.o): In function `diskin_read_buffer':
    (.text+0x26e): undefined reference to `sf_seek'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin.o): In function `diskin_read_buffer':
    (.text+0x28b): undefined reference to `sf_read_float'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin.o): In function `sndo1set':
    (.text+0x4cd): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin.o): In function `sndo1set':
    (.text+0x4df): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin.o): In function `sndo1set':
    (.text+0x576): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin2.o): In function `soundin':
    (.text+0x1a0): undefined reference to `sf_seek'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin2.o): In function `soundin':
    (.text+0x1c0): undefined reference to `sf_read_double'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin2.o): In function `diskin2_read_buffer':
    (.text+0x34b): undefined reference to `sf_seek'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(diskin2.o): In function `diskin2_read_buffer':
    (.text+0x36a): undefined reference to `sf_read_double'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(sndinfUG.o): In function `filepeak':
    (.text+0x14e): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(sndinfUG.o): In function `filepeak':
    (.text+0x26c): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(sndinfUG.o): In function `filepeak':
    (.text+0x2ae): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(sndinfUG.o): In function `filepeak':
    (.text+0x2f1): undefined reference to `sf_command'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(sndinfUG.o): In function `getsndinfo':
    (.text+0x450): undefined reference to `sf_open'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(sndinfUG.o): In function `getsndinfo':
    (.text+0x4a2): undefined reference to `sf_close'
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/libcsound64.a(sndinfUG.o): In function `getsndinfo':
    (.text+0x76c): undefined reference to `sf_open'
    collect2: ld returned 1 exit status
    make: ***  Error 1

     
  • e loeliger
    e loeliger
    2010-06-02

    hi fishb8,

    libcsound64 is in fact a 32-bit library that uses double precision, floating point math internally. for your 64-bit system you need to pull in a 64-bit version of libcsound64. in fact i might test it myself soonish and then post another message here.

    cheers,
    esther