PDA

View Full Version : Another FreeBSD problem...



N00B to Linux
07-27-2003, 03:37 PM
Hello all,

Use the search feature but didn't found anoything relevant about that.

Btw, if answer is already somewhere, I beg for apologizes.

here is what happen when trying to gmake (everything is ok to this point) :


/usr/X11R6/bin/moc -nw itemdb.h -o m_itemdb.cpp
/usr/X11R6/bin/moc -nw libEQ.h -o m_libEQ.cpp
gmake all-am
gmake[3]: Entering directory `/seq/showeq/src'
source='main.cpp' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /usr/local/bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -DMAPDIR=\"/usr/local/share/showeq\" -DLOGDIR=\"/usr/local/share/showeq\" -I/usr/include/pcap -D_THREAD_SAFE -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISPLAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c -o main.o `test -f main.cpp || echo './'`main.cpp
In file included from itemdb.h:20,
from main.cpp:32:
gdbmconv.h:24:18: gdbm.h: No such file or directory
In file included from itemdb.h:20,
from main.cpp:32:
gdbmconv.h:105: error: 'GDBM_FILE' is used as a type, but is not defined as a
type.
gdbmconv.h:108: error: 'datum' is used as a type, but is not defined as a type.
gmake[3]: *** [main.o] Error 1
gmake[3]: Leaving directory `/seq/showeq/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/seq/showeq/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/seq/showeq'
gmake: *** [all] Error 2


Dunno exactly what is happening since I didn't made the tiniest modif and everything is compiling ok on me Linux box.

Can some1 help ?

Thanx for your help.

Cryonic
07-27-2003, 09:55 PM
Just a guess, but:

gdbmconv.h:24:18: gdbm.h: No such file or directory

seems you are missing something.

N00B to Linux
07-28-2003, 12:40 AM
I for sure understand gdbm.h is missing BUT I don't actually know why...

I installed everything (let's say "properly") but I keep on having this error message.

GDBM is installed and there are "gdbm.h" files on my HD but I don't think these are the good ones.


I tried to compile with one of these files and here is what happened :


gmake[3]: Entering directory `/seq/showeq/src'
source='main.cpp' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /usr/local/bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/local/include/db3 -DMAPDIR=\"/usr/local/share/showeq\" -DLOGDIR=\"/usr/local/share/showeq\" -I/usr/include/pcap -D_THREAD_SAFE -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISPLAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c -o main.o `test -f main.cpp || echo './'`main.cpp
source='spawn.cpp' object='spawn.o' libtool=no \
depfile='.deps/spawn.Po' tmpdepfile='.deps/spawn.TPo' \
depmode=gcc3 /usr/local/bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/local/include/db3 -DMAPDIR=\"/usr/local/share/showeq\" -DLOGDIR=\"/usr/local/share/showeq\" -I/usr/include/pcap -D_THREAD_SAFE -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISPLAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c -o spawn.o `test -f spawn.cpp || echo './'`spawn.cpp
spawn.cpp: In function `QString print_weapon(short unsigned int)':
spawn.cpp:84: warning: comparison is always true due to limited range of data
type
spawn.cpp:90: warning: comparison is always true due to limited range of data
type
spawn.cpp:96: warning: comparison is always true due to limited range of data
type
spawn.cpp:102: warning: comparison is always true due to limited range of data
type
source='spawnshell.cpp' object='spawnshell.o' libtool=no \
depfile='.deps/spawnshell.Po' tmpdepfile='.deps/spawnshell.TPo' \
depmode=gcc3 /usr/local/bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/local/include/db3 -DMAPDIR=\"/usr/local/share/showeq\" -DLOGDIR=\"/usr/local/share/showeq\" -I/usr/include/pcap -D_THREAD_SAFE -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISPLAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c -o spawnshell.o `test -f spawnshell.cpp || echo './'`spawnshell.cpp
source='spawnlist.cpp' object='spawnlist.o' libtool=no \
depfile='.deps/spawnlist.Po' tmpdepfile='.deps/spawnlist.TPo' \
depmode=gcc3 /usr/local/bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/local/include/db3 -DMAPDIR=\"/usr/local/share/showeq\" -DLOGDIR=\"/usr/local/share/showeq\" -I/usr/include/pcap -D_THREAD_SAFE -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISPLAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c -o spawnlist.o `test -f spawnlist.cpp || echo './'`spawnlist.cpp
source='spellshell.cpp' object='spellshell.o' libtool=no \
depfile='.deps/spellshell.Po' tmpdepfile='.deps/spellshell.TPo' \
depmode=gcc3 /usr/local/bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/local/include/db3 -DMAPDIR=\"/usr/local/share/showeq\" -DLOGDIR=\"/usr/local/share/showeq\" -I/usr/include/pcap -D_THREAD_SAFE -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISPLAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c -o spellshell.o `test -f spellshell.cpp || echo './'`spellshell.cpp
spellshell.cpp: In member function `QString SpellItem::castTimeStr() const':
spellshell.cpp:99: error: invalid conversion from `const long int*' to `const
time_t*'
gmake[3]: *** [spellshell.o] Error 1
gmake[3]: Leaving directory `/seq/showeq/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/seq/showeq/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/seq/showeq'
gmake: *** [all] Error 2

So the file not likely to be the good one..


any suggestion ?


NOTE : gdbm version for FreeBSD is 1.8.3, dunno if it is relevant btw...

junk
07-28-2003, 04:40 AM
If you read the error:



spellshell.cpp: In member function `QString SpellItem::castTimeStr() const':
spellshell.cpp:99: error: invalid conversion from `const long int*' to `const
time_t*'
gmake[3]: *** [spellshell.o] Error 1


You'll notice that it now has nothing to do with GDBM. If you go to this thread (http://seq.sourceforge.net/forums/showthread.php?s=&threadid=3600&highlight=const+long+int) (found by searching for "const long int" - was the second one in the list, right after this post), you'll find some (probably disheartening to you) information. WHY you're using FreeBSD as a self-professed newbie is beyond me, there are plenty of simpler distros to use.

N00B to Linux
07-28-2003, 08:58 PM
thanx for you reply, I have to admit I didn't use SEARCH for this one.

Why do I use FreeBSD ? Because I use Ipfilter (which is a damn nice firewall) and I already get ShowEQ installed and running successfully on several Linux Distros. I don't especially need it to work, I was just curious to understand what may be so different between BSD and Linux.

Programming isn't my job at all, I am a net engineer but very curious :D

I for sure won't stop here, there is surely something to do.

Any advice beyond this link ?


Thanx btw.