Re: compiling errors

2000-07-31 Thread Chris Gray
On Mon, Jul 31, 2000 at 12:57:22PM -0400, Patrick Dahiroc wrote:
> hi all
> 
> i'm having problems compiling a c++ program with g++.  the errors 
> that i get are 
> 
> MapCB.o: In function `cMapDisp::cMapDisp(TACTMAP_OBJECT_CLASS)':
> MapCB.o(.text+0x172): undefined reference to `callback_define_event(int,...)'
> MapCB.o(.text+0x18a): undefined reference to `callback_define_event(int,...)'
> MapCB.o(.text+0x1d2): undefined reference to 
> `callback_register_handler(cb_event *, void (*)(void), void *)'
> MapCB.o(.text+0x1f2): undefined reference to 
> `callback_register_handler(cb_event *, void (*)(void), void *)'
> 

If you are linking with a library written in C, make sure it has

#ifdef __cplusplus
extern "C" {
#endif

at the top if its header file, and 

#ifdef __cplusplus
}
#endif

at the bottom.  

Cheers,
Chris

-- 
pick, pack, pock, puck: like drops of water in a fountain falling
softly in the brimming bowl.



compiling errors

2000-07-31 Thread Patrick Dahiroc
hi all

i'm having problems compiling a c++ program with g++.  the errors 
that i get are 

MapCB.o: In function `cMapDisp::cMapDisp(TACTMAP_OBJECT_CLASS)':
MapCB.o(.text+0x172): undefined reference to `callback_define_event(int,...)'
MapCB.o(.text+0x18a): undefined reference to `callback_define_event(int,...)'
MapCB.o(.text+0x1d2): undefined reference to 
`callback_register_handler(cb_event *, void (*)(void), void *)'
MapCB.o(.text+0x1f2): undefined reference to 
`callback_register_handler(cb_event *, void (*)(void), void *)'


it looks like linking errors.  when one gets errors like this does
this mean that a library (.a or .so) is missing or was a header (.h) 
not included?

thanks
pd

-- 
"As a general rule, if you have trouble 
 with the binary system, then probably it 
 is because you do not really understand 
 the decimal system ..."
R.W. Hamming



Re: Postgresql 6.5 - compiling errors

1999-08-26 Thread Mark Brown
On Wed, Aug 25, 1999 at 11:12:43PM +0200, Johann Spies wrote:

> My effort to create a .deb package from the postresql-source failed with
> the following error message:

> dh_perl -p libpgperl
> make: dh_perl: Command not found
> make: *** [binary-arch] Error 127

You need the potato version of debhelper to build this package (the same
probably also applies to your previous message, I haven't checked).  If
this is a slink package, you should probably file a bugreport although
I'm not sure exactly what the policy is on this.

-- 
Mark Brown  mailto:[EMAIL PROTECTED]   (Trying to avoid grumpiness)
http://www.tardis.ed.ac.uk/~broonie/
EUFShttp://www.eusa.ed.ac.uk/societies/filmsoc/


pgpWn5HNusaTC.pgp
Description: PGP signature


Re: Postgresql 6.5 - compiling errors

1999-08-25 Thread Brad
-BEGIN PGP SIGNED MESSAGE-

On Wed, 25 Aug 1999, Johann Spies wrote:

> My effort to create a .deb package from the postresql-source failed with
> the following error message:
> 
> dh_perl -p libpgperl
> make: dh_perl: Command not found
> make: *** [binary-arch] Error 127
> 
> 
> How can I correct that?

This would seem to be the same as the dh_link error in your "debian/rules
fails to form .deb packages" post. dh_perl wasn't added to debhelper until
version 1.2.79.


- -- 
  finger for PGP public key.


-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv

iQCVAwUBN8SAO77M/9WKZLW5AQHhCAP+K2dr4vGiGSStxAY1Nwcl40QMNFLNhwic
cjuCvTwPCbVc5YNASJ3dyw4N0B+PPk8E02T3r0EQsGcbEIEtifQsrv5P6uh8sRDB
yKlnexwGxupGlSbsi3dJdgJR0TYPHk3Bkfzqe3fhOdtNY8YZIqmmHhCODqj7ujDh
kz+crPsKeoE=
=v2cF
-END PGP SIGNATURE-


Postgresql 6.5 - compiling errors

1999-08-25 Thread Johann Spies
My effort to create a .deb package from the postresql-source failed with
the following error message:

dh_perl -p libpgperl
make: dh_perl: Command not found
make: *** [binary-arch] Error 127


How can I correct that?

Johann

 --
| Johann Spies Windsorlaan 19  |
| [EMAIL PROTECTED]3201 Pietermaritzburg |
| Tel/Faks Nr. +27 331-46-1310 Suid-Afrika (South Africa)  |
 --

 "But the day of the Lord will come as a thief in the 
  night. The heavens shall pass away with a great noise,
  and the elements shall melt with fervent heat, and the
  earth and the works that are therein shall be burned
  up." II Peter 3:10 


Kernel compiling errors

1999-04-16 Thread homega
I just had an error while running `make zInstall':

gcc -D__KERNEL__ -I/usr/src/linux-2.0.35/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 
-malign-jumps=2 -malign-functions=2 -DCPU=586  -c -o ide.o ide.c
{standard input}: Assembler messages:
{standard input}:170: Error: Unknown pseudo-op:  `.long0.lc8'
make[3]: *** [ide.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.0.35/drivers/block'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.0.35/drivers/block'
make[1]: *** [sub_dirs] Error 2
make[1]: Leaving directory `/usr/src/linux-2.0.35/drivers'
make: *** [linuxsubdirs] Error 2

Actually, I ran by mistake `make modules' before than `make zInstall' ... does
that make a difference?  What now... should I start from scratch or may I start
from any point?

TIA

Horacio
-- 
Claves - GnuPG/PGP - Keys : http://www.rediris.es/cert/keyserver
o/or
Envía un mensaje vacío a [EMAIL PROTECTED] con la línea de asunto:
Send a blank message to [EMAIL PROTECTED] with the subject line:
Tipo de Clave/Key Type  Asunto:/Subject:

DSA/ElGamal fetch dsa/elgamal
DSS/Diffie-Hellman  fetch dh/dss
RSA fetch rsa


Re: compiling errors:

1997-10-27 Thread Carey Evans
Paul Miller <[EMAIL PROTECTED]> writes:

> Is there a reference of libc5 => libc6 conversion or a program which makes
> conversion available?

The general rule is, include the files the standards say you should,
not the ones which worked (often only) under Linux libc5.

The most useful secondary rule is, if it's not a standard, add
-D_GNU_SOURCE to the compiler flags and try again.

The best program for conversion is `grep' on all *.h under
/usr/include.  features.h is good reading.

-- 
Carey Evans  <*>  http://home.clear.net.nz/pages/c.evans/  gc

   Neniu anticipas la hispanan Inkvizicion.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: compiling errors:

1997-10-26 Thread Paul Miller
On 26 Oct 1997, Ben Pfaff wrote:

> Paul Miller <[EMAIL PROTECTED]> writes:
>
> Add `#include ' to the top of the offending files.  This is a
> common libc5->libc6 conversion thing.
> 
> Don't know about the others, offhand.

Thanks!  That helped with that package..

Is there a reference of libc5 => libc6 conversion or a program which makes
conversion available?

-Paul


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: compiling errors:

1997-10-26 Thread Ben Pfaff
Paul Miller <[EMAIL PROTECTED]> writes:
> errors with the 'kdenetwork' package
> 
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/kde/include
> -I/usr/local/qt/include -I/usr/X11R6/include  -g -c kmreaderwin.cpp
> kmreaderwin.cpp: In method `bool KMReaderView::saveMail()':
> kmreaderwin.cpp:504: `errno' undeclared (first use this function)
> kmreaderwin.cpp:504: (Each undeclared identifier is reported only once
> kmreaderwin.cpp:504: for each function it appears in.)
> kmreaderwin.cpp: In method `bool KMReaderView::slotSaveAtmnt()':
> kmreaderwin.cpp:612: `errno' undeclared (first use this function)
> make[2]: *** [kmreaderwin.o] Error 1
> make[2]: Leaving directory `/usr/local/src/kde/kdenetwork/kmail'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/kde/kdenetwork'
> make: *** [all-recursive-am] Error 2

Add `#include ' to the top of the offending files.  This is a
common libc5->libc6 conversion thing.

Don't know about the others, offhand.
-- 
Ben Pfaff <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Senders of unsolicited commercial e-mail will receive free 32MB core files!


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


compiling errors:

1997-10-26 Thread Paul Miller
Is there any specific version of compile I need to use?  Currently I'm
using these programs: (all part of Debian hamm distribution)

Qt 1.31 (not part of Debian hamm distribution)
gcc 2.7.2.3
c++ 2.7.2.3
make 3.76.1
libc6-dev

What on earth is wrong with my piece of shit system?  Here are a few
examples of the errors I'm getting:

errors with the 'kdenetwork' package

c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/kde/include
-I/usr/local/qt/include -I/usr/X11R6/include  -g -c kmreaderwin.cpp
kmreaderwin.cpp: In method `bool KMReaderView::saveMail()':
kmreaderwin.cpp:504: `errno' undeclared (first use this function)
kmreaderwin.cpp:504: (Each undeclared identifier is reported only once
kmreaderwin.cpp:504: for each function it appears in.)
kmreaderwin.cpp: In method `bool KMReaderView::slotSaveAtmnt()':
kmreaderwin.cpp:612: `errno' undeclared (first use this function)
make[2]: *** [kmreaderwin.o] Error 1
make[2]: Leaving directory `/usr/local/src/kde/kdenetwork/kmail'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/kde/kdenetwork'
make: *** [all-recursive-am] Error 2

errors with 'kdemultimedia' packages

make[2]: Entering directory `/usr/local/src/kde/kdemultimedia/kscd'
gcc  -c   -I/usr/local/kde/include -I/usr/local/qt/include
-I/usr/X11R6/include
plat_linux.c
plat_linux.c: In function `gen_eject':
plat_linux.c:353: storage size of `ust' isn't known
make[2]: *** [plat_linux.o] Error 1
make[2]: Leaving directory `/usr/local/src/kde/kdemultimedia/kscd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/kde/kdemultimedia'
make: *** [all-recursive-am] Error 2

errors with 'kctrlaltdel' program

c++ -DHAVE_CONFIG_H -I/usr/local/kde/include -I/usr/lib/qt/include
-I/usr/X11R6/include -I. -I..  -O2 -Wall -c kctrlaltdel.cpp
kctrlaltdel.cpp:115: field `mask' has incomplete type
kctrlaltdel.cpp: In method `ShapeWin::ShapeWin()':
kctrlaltdel.cpp:120: confused by earlier errors, bailing out
make: *** [kctrlaltdel.o] Error 1

errors with 'kom' program

gcc -c -O2 -Iinclude -I/usr/local/qt/include -I/usr/local/kde/include
kom.cpp
kom.cpp: In method `void Kom::createToolbar()':
kom.cpp:109: no member function `KToolBar::setPos(KToolBar::BarPosition)'
defined
kom.cpp: In method `void Kom::hangup()':
kom.cpp:419: no member function `KMenuBar::isItemEnabled(int)' defined
kom.cpp: In method `void Kom::stop()':
kom.cpp:441: no member function `KMenuBar::isItemEnabled(int)' defined
make: *** [kom.o] Error 1

errors with 'ktop' program

gcc -c -O2 -DSTDC_HEADERS -D_ALTERNATE_  -I/usr/local/qt/include
-I/usr/local/kde/include ktop.cpp
In file included from ktop.cpp:53:
cpu.h:40: field `oldtime' has incomplete type
make: *** [ktop.o] Error 1

errors with 'kuser' program

c++ -c -O2 -Wall -I/usr/X11R6/include -I/usr/local/qt/include
-I/usr/local/kde/include -DHAVE_CONFIG_H -I.. MainDlg.cpp
In file included from UserData.h:9,
 from MainDlg.h:34,
 from MainDlg.cpp:11:
/usr/include/linux/quota.h:113: syntax error before `;'
/usr/include/linux/quota.h:114: syntax error before `;'
/usr/include/linux/quota.h:115: syntax error before `;'
/usr/include/linux/quota.h:116: syntax error before `;'
/usr/include/linux/quota.h:117: syntax error before `;'
/usr/include/linux/quota.h:118: syntax error before `;'
/usr/include/linux/quota.h:138: syntax error before `;'
/usr/include/linux/quota.h:139: syntax error before `;'
/usr/include/linux/quota.h:140: syntax error before `;'
/usr/include/linux/quota.h:141: syntax error before `;'
/usr/include/linux/quota.h:142: syntax error before `;'
/usr/include/linux/quota.h:143: syntax error before `;'
/usr/include/linux/quota.h:144: syntax error before `;'
/usr/include/linux/quota.h:145: syntax error before `;'
/usr/include/linux/quota.h:146: syntax error before `;'
make[1]: *** [MainDlg.o] Error 1
make[1]: Leaving directory `/home/staff/paul/kuser/src'
make: *** [apps] Error 1

.. just about the only thing I can compile is the Linux kernel!

-Paul


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .