Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Trouble compiling libeio

  1. #1

    Unhappy Trouble compiling libeio

    Hi!

    I've trouble compiling libeio on my openSUSE 11.4 x86_64:

    Code:
    $ su 
    # cd /usr/src/
    # cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co libeio
    # cd libeio/
    # ./autogen.sh
    # ./configure 
    ...
    config.status: error: cannot find input file: `Makefile.in'
    # autoreconf 
    # ./configure  
    # make 
    make  all-am
    make[1]: Entering directory `/usr/src/libeio'
    /bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -O3 -g -O2 -c -o eio.lo eio.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -O3 -g -O2 -c eio.c  -fPIC -DPIC -o .libs/eio.o
    eio.c: In function ‘eio__sync_file_range’:
    eio.c:888:44: error: ‘SYNC_FILE_RANGE_WAIT_BEFORE’ undeclared (first use in this function)
    eio.c:888:44: note: each undeclared identifier is reported only once for each function it appears in
    eio.c:889:44: error: ‘SYNC_FILE_RANGE_WRITE’ undeclared (first use in this function)
    eio.c:890:44: error: ‘SYNC_FILE_RANGE_WAIT_AFTER’ undeclared (first use in this function)
    make[1]: *** [eio.lo] Error 1
    make[1]: Leaving directory `/usr/src/libeio'
    make: *** [all] Error 2
    Versions:
    Code:
    glibc version: 2.11.3-12.15.1
    glibc-devel version: 2.11.3-12.15.1
    kernel-headers version: 2.6.28-2.2.moblin2
    autoconf version: 2.68
    automake version: 1.11.1
    autoreconf version: 2.68
    autoheader version: 2.68
    libtoolize version: 2.2.6b
    aclocal version: 1.11.1
    All packages are up to date now. I've also installed libaio, libaio-devel.

    On the library support IRC channel they just said, that the constants should be in bits/fcntl.h.
    I tried add it via -I/usr/include/bits in Makefile. But this failed also.

    Please help me figure out, what's wrong in my configuration.

    Regards.

  2. #2
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Trouble compiling libeio

    On 05/29/2011 09:36 PM, ruslan osmanov wrote:
    > I've trouble compiling 'libeio'
    >
    > $ su


    you may have other problems, but do not run ./configure or make as root

    and, i also wouldn't connect to any distant server as root, ever!

    --
    dd CAVEAT: http://is.gd/bpoMD
    [NNTP via openSUSE 11.4 [2.6.37.6-0.5] + KDE 4.6.0 + Thunderbird 3.1.10]
    Dual booting with Sluggish Loser7 on Acer Aspire One D255

  3. #3
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Trouble compiling libeio

    DenverD wrote:

    > On 05/29/2011 09:36 PM, ruslan osmanov wrote:
    >> I've trouble compiling 'libeio'
    >>
    >> $ su

    >
    > you may have other problems, but do not run ./configure or make as root
    >
    > and, i also wouldn't connect to any distant server as root, ever!
    >

    +1

    never autogne.sh, configure, make or similar as root, never!!
    only if everything succeeds you run a "make install" as root
    and it makes not much sense to download the source code to /usr/src

    Beside that the for the error
    config.status: error: cannot find input file: `Makefile.in'
    I would ask the developer on his irc (this is software from cvs not
    something stable)
    http://chat.schmorp.de/?channels=schmorpforge

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,352
    Blog Entries
    15

    Default Re: Trouble compiling libeio

    Hi
    Have a look at the spec file here under 'SOURCES'...
    https://build.opensuse.org/package/s...ewis%3ATesting

    Once it has built, should be here;
    software.opensuse.org: Search Results
    Last edited by malcolmlewis; 29-May-2011 at 14:25.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5

    Default Re: Trouble compiling libeio

    your error looks very much like the libeio was wrote/built for a slightly older version of gcc

    over the years of using fedora i had very often come across issues with gcc4.1 when it was VERY new
    the same for 4.3,4.4,4.5 and 4.6


    some slightly older code might NOT build with the very new version of gcc ( without some hacking )

    the suse repos have 4.1 and 4.3 along with 4.5 and 4.6 ( 3.4 also)

    install and set 4.3 and set the default gcc as 4.3 and NOT 4.5 . I do this with a shell script to make links to the 4 different ones i have installed .

    then try a rebuild.



  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,352
    Blog Entries
    15

    Default Re: Trouble compiling libeio

    Quote Originally Posted by JohnVV View Post
    your error looks very much like the libeio was wrote/built for a slightly older version of gcc

    over the years of using fedora i had very often come across issues with gcc4.1 when it was VERY new
    the same for 4.3,4.4,4.5 and 4.6


    some slightly older code might NOT build with the very new version of gcc ( without some hacking )

    the suse repos have 4.1 and 4.3 along with 4.5 and 4.6 ( 3.4 also)

    install and set 4.3 and set the default gcc as 4.3 and NOT 4.5 . I do this with a shell script to make links to the 4 different ones i have installed .

    then try a rebuild.
    Hi
    No, it builds fine with gcc 4.5 and 4.6 it's the lack of CFLAGS which was the issue... see the rpm spec file and build logs
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7

    Default Re: Trouble compiling libeio

    Quote Originally Posted by DenverD View Post
    On 05/29/2011 09:36 PM, ruslan osmanov wrote:[color=blue]
    you may have other problems, but do not run ./configure or make as root

    and, i also wouldn't connect to any distant server as root, ever!
    DenverD, yes, I know. Normally, I do things as normal user.

    I'm running it on a development machine. I just wanted to show that it isn't a permissions problem at least.

    Thanks.

  8. #8

    Default Re: Trouble compiling libeio

    Quote Originally Posted by martin_helm View Post
    DenverD wrote:
    never autogne.sh, configure, make or similar as root, never!!
    only if everything succeeds you run a "make install" as root
    and it makes not much sense to download the source code to /usr/src

    Beside that the for the error
    config.status: error: cannot find input file: `Makefile.in'
    I would ask the developer on his irc (this is software from cvs not
    something stable)
    http://chat.schmorp.de/?channels=schmorpforge
    Originally I made it in $HOME/projects/... as a normal user. As I replied DenverD, I just wanted be sure it isn't some kind of permissions(umask) problem.

    Unfortunately, they are not so responsive there on the IRC channel, as you guys

    Thank you.

  9. #9

    Talking Re: Trouble compiling libeio

    Huh, the same issue on Ubuntu 11.04 i696. But I've got it working...

    Quote Originally Posted by malcolmlewis View Post
    Hi
    No, it builds fine with gcc 4.5 and 4.6 it's the lack of CFLAGS which was the issue... see the rpm spec file and build logs
    malcolmlewis, thank you! Indeed, it lacks -D_GNU_SOURCE "CFLAG". I've managed to successfully compile and install libeio DEB and RPM packages.

    Many thanks! Marking this thread as resolved

  10. #10
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Trouble compiling libeio

    On 05/30/2011 07:36 AM, ruslan osmanov wrote:
    >
    > I'm running it on a development machine. I just wanted to show that it
    > isn't a permissions problem at least.


    but, i do not think running any of those prior to make install as root
    will help you learn if the problem you are having is a permissions problem..

    i mean, if it *is* a permissions problem when running as user the error
    _will_ say something like "Unable to access libWhatever" or even "Can't
    find libWhatever" and you know it is a problem and _without_ running as
    root you can use locate or find to see where the lib lives, if it
    does...and other tools to make sure it is in the right place and with
    the right permissions..

    anyway, my experience is (reading here) that more problems are
    introduced by running pre-"make install" as root than can be solved (or
    even discovered) by the same..

    ymmv

    --
    dd CAVEAT: http://is.gd/bpoMD
    [NNTP via openSUSE 11.4 [2.6.37.6-0.5] + KDE 4.6.0 + Thunderbird 3.1.10]
    Dual booting with Sluggish Loser7 on Acer Aspire One D255

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •