LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-06-2008, 01:33 PM   #1
nickbird
LQ Newbie
 
Registered: Jul 2004
Posts: 27

Rep: Reputation: 15
FLTK 2.0 SVN r6191 Compile Error


I just checked out the latest SVN source and get this error when I run make

Code:
=== making src ===
Compiling Window_fullscreen.cxx...
Window_fullscreen.cxx: In member function ‘void fltk::Window::maximize()’:
Window_fullscreen.cxx:202: error: ‘memset’ was not declared in this scope
make[1]: *** [Window_fullscreen.o] Error 1
make: *** [all] Error 2
here is my ./configure just in case:
Code:
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 for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nroff... /usr/bin/nroff
checking for htmldoc... no
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 whether byte ordering is bigendian... no
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking whether the compiler recognizes bool as a built-in type... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/stdtypes.h usability... no
checking sys/stdtypes.h presence... no
checking for sys/stdtypes.h... no
checking for scandir... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strlcat... no
checking for strlcpy... no
checking for library containing pow... -lm
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking libpng/png.h usability... yes
checking libpng/png.h presence... yes
checking for libpng/png.h... yes
checking for png_read_rows in -lpng... yes
checking for png_get_valid... yes
checking for png_set_tRNS_to_alpha... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for library containing dlopen... no
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for glXMakeCurrent in -lGL... no
checking for glXMakeCurrent in -lMesaGL... no
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for freetype-config... /usr/bin/freetype-config
checking X11/Xft/Xft.h usability... yes
checking X11/Xft/Xft.h presence... yes
checking for X11/Xft/Xft.h... yes
checking for XftDrawCreate in -lXft... no
checking for X11/extensions/Xdbe.h... yes
checking for X11/extensions/Xinerama.h... no
checking for X overlay visuals... no
checking for Xutf8LookupString in -lX11... no
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv in -liconv... no
checking for iconv... no
checking if libsupc++ is required... yes
configure: creating ./config.status
config.status: creating makeinclude
config.status: WARNING:  makeinclude.in seems to ignore the --datarootdir setting
config.status: creating fltk.list
config.status: WARNING:  fltk.list.in seems to ignore the --datarootdir setting
config.status: creating fltk2-config
config.status: creating config.h
config.status: config.h is unchanged

Libs: -lXi -lpthread -lm -lXext -lsupc++
System image libs: -lpng -lfltk2_images -ljpeg -lz
Local image libs:
OpenGL libs:

Build targets: static
I'm running Ubuntu 8.04 (32bit)
any ideas?
 
Old 09-06-2008, 02:42 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
i have no clue what the program is that your running, however if you want to edit the source code it could be fixed easily. at the top of the file 'Window_fullscreen.cxx' there will likely be a few lines for "#include ..." add a new line in this section and type "#include <cstring>" and try to 'make' again.
 
Old 09-07-2008, 04:25 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 8.04 : using the command
' svn co http://svn.easysw.com/public/fltk/fl...es/branch-1.3/ fltk-1.3 '
to get "fltk-1.3 (6191) and using the 'configure' script
from "fltk-1.3.x-r6190.tar.bz2" to do
'./configure --enable-shared' ... 'make'
with no errors.

So is your errors a mystery ?
Unless you have upgraded something to
"new unstable files" ?
(I usually do not upgrade, except for a
few packages concerning security.)

Try the good advise from nadroj adding #
etc. in line 40, src/Window_fullscreen.cxx

Regards

Last edited by knudfl; 09-07-2008 at 11:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 05:58 PM
LXer: HowTo Compile rTorrent From SVN In Ubuntu 8.04 Hardy Heron LXer Syndicated Linux News 0 05-21-2008 02:20 PM
SVN compile issues - centos 5 64bit neocontrol Linux - Server 1 11-06-2007 11:07 AM
LXer: How To Compile rTorrent From SVN In Ubuntu Feisty Fawn / Gutsy LXer Syndicated Linux News 0 09-19-2007 09:20 PM
can't compile fltk-1.0.11 on slackware 11 pwc101 Linux - Software 1 12-14-2006 06:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration