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

Thread: compile problems in 11.0

  1. #1

    Default compile problems in 11.0

    I just installed 11.0 x86_64. I have a few favorite apps that are not yet available so I tracked down the source files to recompile. I have tried both rpmbuild --rebuild and checkinstall from a tar, but am not having any success. Both (rpmbuild and checkinstall) will run, but in the end show errors or create rpms that Yast tries to install, but says aren't there.

    Any help is appreciated. I think I have all of the devel packages installed I need (plus more just in case), but it's not working.

    thanks, need help

  2. #2
    Join Date
    Jun 2008
    Location
    Kentucky, USA
    Posts
    466

    Default Re: compile problems in 11.0

    Can you post the errors messages?
    Klaatu Barada Nikto

  3. #3

    Default Re: compile problems in 11.0

    I will when I get home tonight, thanks

  4. #4

    Default Re: compile problems in 11.0

    OK,
    I did find that part of the problem was in Yast repository manager. I had set up a local directory using the Hard Drive selection, then listed the directory. That was a mistake and was why Yast couldn't find the files it found. It found the files in the Software Manager mode, but when it tried to install them, it said it couldn't find them. More than a bit strange. Anyway I recreated the repository as a Local Directory and we are up and running. I didn't have time to get back to the checkinstall rpmrebuild thing last night, I will try to tonight. It may be working, but I will repost if there are still problems. The error messages were confusing still. I will dig some more.

  5. #5

    Default Re: compile problems in 11.0

    Here is where the rpmbuild --rebuild went boom. It was cruising along, then . . .

    sword::SWKey*, const sword::SWModule*)':
    ../src/modules/filters/gbfwordjs.cpp:82: error: 'sprintf' was not declared in this scope
    ../src/modules/filters/gbfwordjs.cpp:123: error: 'sprintf' was not declared in this scope
    ../src/modules/filters/gbfwordjs.cpp:218: error: 'sprintf' was not declared in this scope
    make[1]: *** [gbfwordjs.lo] Error 1
    make[1]: Leaving directory `/usr/src/packages/BUILD/sword-1.5.9/lib'
    make: *** [all-recursive] Error 1
    error: Bad exit status from /var/tmp/rpm-tmp.76966 (%build)


    RPM build errors:
    InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 9a795806
    Bad exit status from /var/tmp/rpm-tmp.76966 (%build)

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,529
    Blog Entries
    15

    Default Re: compile problems in 11.0

    Quote Originally Posted by innodes
    Here is where the rpmbuild --rebuild went boom. It was cruising along,
    then . . .

    sword::SWKey*, const sword::SWModule*)':
    ../src/modules/filters/gbfwordjs.cpp:82: error: 'sprintf' was not
    declared in this scope
    ../src/modules/filters/gbfwordjs.cpp:123: error: 'sprintf' was not
    declared in this scope
    ../src/modules/filters/gbfwordjs.cpp:218: error: 'sprintf' was not
    declared in this scope
    make[1]: *** [gbfwordjs.lo] Error 1
    make[1]: Leaving directory `/usr/src/packages/BUILD/sword-1.5.9/lib'
    make: *** [all-recursive] Error 1
    error: Bad exit status from /var/tmp/rpm-tmp.76966 (%build)


    RPM build errors:
    InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID
    9a795806
    Bad exit status from /var/tmp/rpm-tmp.76966 (%build)
    Hi
    Are you trying to build sword/gnomesword? If so it's available in the
    'Education' repository.

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
    up 7:54, 1 user, load average: 0.00, 0.06, 0.07
    GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12


  7. #7
    Join Date
    Jun 2008
    Location
    Somewhere in the Ozark Mountains of Missouri
    Posts
    61

    Default Re: compile problems in 11.0

    Another thing too about compiling under 64bit, the app itself may not support it, then what'll you'll have to do is install the 32bit devel libraries and try compiling it that way. That's how I got ZSnes up and running under openSUSE 11.0 x86-64.
    Somewhere, just out of sight, the Penguins are gathering!

  8. #8

    Default Re: compile problems in 11.0

    Thanks, I was looking at Packman. I am running kde. I installed some additional devel packages (not sure which one worked, but then got it to work. So I have Sword and Bibletime.

    The other app I haven't been able to configure is Kooldock. Below is the text. I have installed every 32 bit dev app that looked likely, but with no success.

    Any help is appreciated.

    ++++++++++++++++++++++++++++++++++++++++++

    linux:/local/downloads/sourcefiles/kooldock # make -f Makefile.cvs
    This Makefile is only for the CVS repository
    This will be deleted before making the distribution

    *** YOU'RE USING UNSERMAKE.
    *** GOOD LUCK!!
    *** Creating acinclude.m4
    make[2]: Entering directory `/local/downloads/sourcefiles/kooldock'
    make[2]: Leaving directory `/local/downloads/sourcefiles/kooldock'
    *** Creating list of subdirectories
    make[2]: Entering directory `/local/downloads/sourcefiles/kooldock'
    cd . && make -f admin/Makefile.common subdirs
    make[3]: Entering directory `/local/downloads/sourcefiles/kooldock'
    make[3]: Leaving directory `/local/downloads/sourcefiles/kooldock'
    make[2]: Leaving directory `/local/downloads/sourcefiles/kooldock'
    *** Creating configure.files
    *** Creating configure.in
    make[2]: Entering directory `/local/downloads/sourcefiles/kooldock'
    cd . && make -f admin/Makefile.common configure.in ;
    make[3]: Entering directory `/local/downloads/sourcefiles/kooldock'
    make[3]: Leaving directory `/local/downloads/sourcefiles/kooldock'
    make[2]: Leaving directory `/local/downloads/sourcefiles/kooldock'
    *** Creating aclocal.m4
    acinclude.m4:3699: the serial number must appear before any macro definition
    acinclude.m4:3744: the serial number must appear before any macro definition
    acinclude.m4:3789: the serial number must appear before any macro definition
    acinclude.m4:5997: the serial number must appear before any macro definition
    *** Creating configure
    *** Creating config.h template
    *** Creating Makefile templates
    *** Creating date/time stamp
    *** Finished
    Don't forget to run ./configure
    If you haven't done so in a while, run ./configure --help
    linux-6748:/local/downloads/sourcefiles/kooldock # ./configure
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for -p flag to install... yes
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for kde-config... /opt/kde3/bin/kde-config
    checking where to install... /opt/kde3 (as returned by kde-config)
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking whether gcc is blacklisted... no
    checking whether g++ supports -Wmissing-format-attribute... yes
    checking whether gcc supports -Wmissing-format-attribute... yes
    checking whether g++ supports -Wundef... yes
    checking whether g++ supports -Wno-long-long... yes
    checking whether g++ supports -Wno-non-virtual-dtor... yes
    checking whether g++ supports -fno-reorder-blocks... yes
    checking whether g++ supports -fno-exceptions... yes
    checking whether g++ supports -fno-check-new... yes
    checking whether g++ supports -fno-common... yes
    checking whether g++ supports -fexceptions... yes
    checking whether system headers can cope with -O2 -fno-inline... irrelevant
    checking how to run the C++ preprocessor... g++ -E
    checking whether g++ supports -O0... yes
    checking whether g++ supports -Wl,--no-undefined... yes
    checking whether g++ supports -Wl,--allow-shlib-undefined... yes
    using lib directory suffix 64
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
    checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
    checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g77... no
    checking for xlf... no
    checking for f77... no
    checking for frt... no
    checking for pgf77... no
    checking for cf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for xlf90... no
    checking for f90... no
    checking for pgf90... no
    checking for pghpf... no
    checking for epcf90... no
    checking for gfortran... gfortran
    checking whether we are using the GNU Fortran 77 compiler... yes
    checking whether gfortran accepts -g... yes
    checking the maximum length of command line arguments... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc static flag works... yes
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen... no
    checking for dlopen in -ldl... yes
    checking whether a program can dlopen itself... yes
    checking whether a statically linked program can dlopen itself... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
    checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
    checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking for shl_load... (cached) no
    checking for shl_load in -ldld... (cached) no
    checking for dlopen... (cached) no
    checking for dlopen in -ldl... (cached) yes
    checking whether a program can dlopen itself... (cached) yes
    checking whether a statically linked program can dlopen itself... (cached) yes
    appending configuration tag "F77" to libtool
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for gfortran option to produce PIC... -fPIC
    checking if gfortran PIC flag -fPIC works... yes
    checking if gfortran supports -c -o file.o... yes
    checking whether the gfortran linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for xgettext... /usr/bin/xgettext
    checking if C++ programs can be compiled... yes
    checking for strlcat... no
    checking if strlcat needs custom prototype... yes - in libkdefakes
    checking for strlcpy... no
    checking if strlcpy needs custom prototype... yes - in libkdefakes
    checking for main in -lutil... yes
    checking for main in -lcompat... no
    checking for crypt in -lcrypt... yes
    checking for socklen_t... yes
    checking for dnet_ntoa in -ldnet... no
    checking for dnet_ntoa in -ldnet_stub... no
    checking for inet_ntoa... yes
    checking for connect... yes
    checking for remove... yes
    checking for shmat... yes
    checking for sys/types.h... (cached) yes
    checking for stdint.h... (cached) yes
    checking sys/bitypes.h usability... yes
    checking sys/bitypes.h presence... yes
    checking for sys/bitypes.h... yes
    checking for poll in -lpoll... no
    checking Carbon/Carbon.h usability... no
    checking Carbon/Carbon.h presence... no
    checking for Carbon/Carbon.h... no
    checking CoreAudio/CoreAudio.h usability... no
    checking CoreAudio/CoreAudio.h presence... no

  9. #9

    Default Re: compile problems in 11.0

    checking for CoreAudio/CoreAudio.h... no
    checking if res_init needs -lresolv... yes
    checking for res_init... yes
    checking if res_init needs custom prototype... no
    checking for killpg in -lucb... no
    checking for int... yes
    checking size of int... 4
    checking for short... yes
    checking size of short... 2
    checking for long... yes
    checking size of long... 8
    checking for char *... yes
    checking size of char *... 8
    checking for dlopen in -ldl... (cached) yes
    checking for shl_unload in -ldld... no
    checking for size_t... yes
    checking size of size_t... 8
    checking for unsigned long... yes
    checking size of unsigned long... 8
    checking sizeof size_t == sizeof unsigned long... yes
    checking for PIE support... yes
    checking if enabling -pie/fPIE support... yes
    checking crt_externs.h usability... no
    checking crt_externs.h presence... no
    checking for crt_externs.h... no
    checking for _NSGetEnviron... no
    checking for vsnprintf... yes
    checking for snprintf... yes
    checking for X... libraries /usr/lib64, headers .
    checking for IceConnectionNumber in -lICE... yes
    checking for libXext... yes
    checking for pthread_create in -lpthread... yes
    checking for extra includes... no
    checking for extra libs... no
    checking for libz... -lz
    checking for libpng... -lpng -lz -lm
    checking for libjpeg6b... no
    checking for libjpeg... -ljpeg
    checking for perl... /usr/bin/perl
    checking for Qt... libraries /usr/lib/qt3/lib64, headers /usr/lib/qt3/include using -mt
    checking for moc... /usr/lib/qt3/bin/moc
    checking for uic... /usr/lib/qt3/bin/uic
    checking whether uic supports -L ... yes
    checking whether uic supports -nounload ... yes
    checking if Qt needs -ljpeg... no
    checking for rpath... yes
    checking for KDE... libraries /opt/kde3/lib64, headers /opt/kde3/include
    checking if UIC has KDE plugins available... yes
    checking for KDE paths... defaults
    checking for dcopidl... /opt/kde3/bin/dcopidl
    checking for dcopidl2cpp... /opt/kde3/bin/dcopidl2cpp
    checking for mcopidl... /opt/kde3/bin/mcopidl
    checking for artsc-config... /opt/kde3/bin/artsc-config
    checking for meinproc... /opt/kde3/bin/meinproc
    checking for kconfig_compiler... /opt/kde3/bin/kconfig_compiler
    checking for dcopidlng... /opt/kde3/bin/dcopidlng
    checking for xmllint... /usr/bin/xmllint
    checking whether byte ordering is bigendian... no
    checking for MAXPATHLEN... 4096
    checking if backgrounds should be compiled... yes
    checking if doc should be compiled... yes
    checking if icons should be compiled... yes
    checking if po should be compiled... yes
    checking if src should be compiled... yes
    configure: creating ./config.status
    wrong input (flag != 4) at admin/conf.change.pl line 117, <> line 1254.
    config.status: creating Makefile
    config.status: creating backgrounds/Makefile
    config.status: creating backgrounds/border-black/Makefile
    config.status: creating backgrounds/border-white/Makefile
    config.status: creating backgrounds/crystal/Makefile
    config.status: creating backgrounds/default/Makefile
    config.status: creating backgrounds/fadeout/Makefile
    config.status: creating backgrounds/fadeout2/Makefile
    config.status: creating backgrounds/fadeout3/Makefile
    config.status: creating backgrounds/osx/Makefile
    config.status: creating doc/Makefile
    config.status: creating doc/en/Makefile
    config.status: creating icons/Makefile
    config.status: creating po/Makefile
    config.status: creating src/Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands

    Good - your configure finished. Start make now

    linux:/local/downloads/sourcefiles/kooldock # make
    WARNING: use unsermake instead of make or use a wrapper script, e.g. makeobj!!!
    unsermake all
    compiling /local/downloads/sourcefiles/kooldock/src/xosd.cpp
    g++ -DHAVE_CONFIG_H -I./src -I/local/downloads/sourcefiles/kooldock/src -I. -I/opt/kde3/include -I/usr/lib/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -c /local/downloads/sourcefiles/kooldock/src/xosd.cpp -o ./src/xosd.o -Wp,-MD,./src/.deps/xosd.TUo
    /local/downloads/sourcefiles/kooldock/src/xosd.cpp: In member function ‘void xosd::move2(int, int)’:
    /local/downloads/sourcefiles/kooldock/src/xosd.cpp:181: error: ‘abs’ was not declared in this scope
    Error creating ./src/xosd.o. Exit status 1.
    make: *** [all] Error 1
    linux:/local/downloads/sourcefiles/kooldock # usermake
    bash: usermake: command not found

    linux:/local/downloads/sourcefiles/kooldock # checkinstall

    checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
    This software is released under the GNU GPL.



    **************************************
    **** RPM package creation selected ***
    **************************************

    This package will be built according to these values:

    1 - Summary: [ dynamic linux app dock ]
    2 - Name: [ kooldock ]
    3 - Version: [ 0.4.7 ]
    4 - Release: [ 1 ]
    5 - License: [ GPL ]
    6 - Group: [ Applications/System ]
    7 - Architecture: [ x86_64 ]
    8 - Source location: [ kooldock ]
    9 - Alternate source location: [ ]
    10 - Requires: [ ]
    11 - Provides: [ kooldock ]

    Enter a number to change any of them or press ENTER to continue:

    Installing with make install...

    ========================= Installation results ===========================
    cd . && /bin/sh ./config.status Makefile
    config.status: creating Makefile
    WARNING: use unsermake instead of make or use a wrapper script, e.g. makeobj!!!
    unsermake install
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "__init__.py", line 1364, in main
    File "__init__.py", line 1048, in unsermake_main
    OSError: [Errno 2] No such file or directory: '/usr/lib64/python2.5/site-packages/unsermake'
    make: *** [install] Error 1

    **** Installation failed. Aborting package creation.

    Cleaning up...OK

    Bye.

  10. #10
    Join Date
    Jun 2008
    Location
    Oklahoma, US
    Posts
    822

    Default Re: compile problems in 11.0

    On Fri, 15 Aug 2008 00:56:03 GMT
    innodes <innodes@no-mx.forums.opensuse.org> wrote:

    > /local/downloads/sourcefiles/kooldock/src/xosd.cpp:181:
    > error: "abs" was not declared in this scope


    This is an issue with the newest gcc/g++. Gcc/g++ was updated recently to
    more strongly conform to standards, and some things were "undefaulted" in
    the header files, meaning that they are no longer "helpfully" included
    from other header files.

    This means faster compiling, less issues with double (or triple or more)
    loading of included files, and fewer 'extra' symbols being included in a
    resultant program/library.

    Basically, what this means to us as users/compilers is that you need to look
    at the "not declared in this scope" error, see what it's complaining about...
    in this cast, "abs". Now, I know that this is from the stdlib library, but
    many may not know that fact... an easy way to find out..

    man 3 abs

    (brings up the section 3 man page for 'abs', section 3 is programming, there
    are other sections, if you don't specify it, you *might* get a man page for
    something that is close, but not what you're wanting (try 'printf' for an
    example of this))

    The man page states near the top that this is included via the 'stdlib.h'
    header file. That would be for a C file, compiled with gcc... our file
    here is 'xosd.cpp', a C++ source file, thus we need the C++ version...

    drop the '.h', and add 'c' to the beginning, so the include file you need is
    'cstdlib'.

    edit xosd.cpp and insert the following line near the top (best would be after
    all the other #include lines)

    #include <cstdlib>

    save the file, and rerun 'make'.

    This time it compiles completely, and your next step would be to install it...

    sudo make install

    ===================================

    Some things to remember:

    Don't compile things as root. (Actually, don't do ANYTHING as root unless
    there's no other way. 'su - root' or 'sudo' are your friends. )

    The preferred method to compile a program is thus:

    (untar, unzip, whatever to extract files)
    cd somedir

    ../configure
    make
    sudo make install

    You initially ran 'make -f Makefile.cvs', which is a
    supplementary/testing-only file. The 'configure' script (./configure) will
    create appropriate Makefiles after it scans your system to make sure that
    needed dependencies are installed. Read the errors it provides, as it tells
    you what you need to continue.

    If ANY step stops with an error, resolve that error and rerun the step until
    it completes successfully. 'make' and 'make install' are useless unless
    './configure' works.

    ===================================

    I used kooldock-0.4.7.tar.bz2 from the kooldock sourceforge site, so the
    commands would be:

    tar xjf kooldock-0.4.7.tar.bz2
    cd kooldock
    ../configure
    make
    {edit src/xosd.cpp and add '#include <cstdlib>'}
    make
    sudo make install

    Taa daa!

    You're on your own again for how to USE kooldock... {Grin}

    Hope this helps

    Loni

    --
    L R Nix
    lornix@lornix.com


Page 1 of 2 12 LastLast

Posting Permissions

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