LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Certain programs won't compile (https://www.linuxquestions.org/questions/linux-software-2/certain-programs-wont-compile-131621/)

thegeekster 01-05-2004 01:23 AM

Certain programs won't compile
 
I just tried to compile three differnt programs in a row and all wouldn't compile with the make command. They would configure without any problem, tho'. At first I thought I broke something, but I tried compiling the last app that I had success with and it compiled okay. And I was able to compile a different program (which I didn't have before) successfully, too.

Here are the err msgs from all three:
Code:

kbear-3.0alpha1b-1.src.tar.bz2 (GUI app)
----------------------------------------
...
kbearsynchjob.cpp: In member function `void
  KBear::KBearSynchJob::makeSourceList(KURL::List&)':
kbearsynchjob.cpp:75: `ConnectionManager' undeclared (first use this function)
kbearsynchjob.cpp:75: (Each undeclared identifier is reported only once for
  each function it appears in.)
kbearsynchjob.cpp:75: syntax error before `::' token
make[4]: *** [kbearsynchjob.lo] Error 1
make[4]: Leaving directory `/usr/local/p9780c-1337a/source/kbear-3.0alpha1b/kbear/lib/jobclasses'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/p9780c-1337a/source/kbear-3.0alpha1b/kbear/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/p9780c-1337a/source/kbear-3.0alpha1b/kbear'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/p9780c-1337a/source/kbear-3.0alpha1b'
make: *** [all] Error 2

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

yafc-1.0.tar.bz2 (curses app)
-----------------------------
...
../lib/libfoo.a(makepath.o)(.text+0x1a1): In function `make_path':
/home/kdgeekster/+-p9780c-1337a-+/source/yafc-1.0/lib/makepath.c:190: undefined reference to `errno'
../lib/libfoo.a(makepath.o)(.text+0x1ca):/home/kdgeekster/+-p9780c-1337a-+/source/yafc-1.0/lib/makepath.c:173: undefined reference to `errno'
../lib/libfoo.a(makepath.o)(.text+0x289):/home/kdgeekster/+-p9780c-1337a-+/source/yafc-1.0/lib/makepath.c:261: undefined reference to `errno'
../lib/libfoo.a(makepath.o)(.text+0x2cb):/home/kdgeekster/+-p9780c-1337a-+/source/yafc-1.0/lib/makepath.c:248: undefined reference to `errno'
../lib/libfoo.a(makepath.o)(.text+0x2f7):/home/kdgeekster/+-p9780c-1337a-+/source/yafc-1.0/lib/makepath.c:242: undefined reference to `errno'
../lib/libfoo.a(makepath.o)(.text+0x3d9):/home/kdgeekster/+-p9780c-1337a-+/source/yafc-1.0/lib/makepath.c:297: more undefined references to `errno' follow
collect2: ld returned 1 exit status
make[4]: *** [yafc] Error 1
make[4]: Leaving directory `/usr/local/p9780c-1337a/source/yafc-1.0/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/p9780c-1337a/source/yafc-1.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/p9780c-1337a/source/yafc-1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/p9780c-1337a/source/yafc-1.0'
make: *** [all] Error 2

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

xftp.tar.Z (GUI app)
--------------------
...
In file included from aconnect.c:61:
str.h:62:14: macro "strchr" requires 2 arguments, but only 1 given
In file included from aconnect.c:61:
str.h:62: warning: built-in function `strchr' declared as non-function
make: *** [aconnect.o] Error 1

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

The only thing they have in common is they're all ftp clients, 2 GUIs and 1 curses.

As for the compiler, here's what I've got installed:
Code:

# swaret --list gcc
swaret 1.6.0-4

Listing all available Packages...
gcc-3.2.3-i486-2 (3372 kB) [Status: INSTALLED]
gcc-g++-3.2.3-i486-1 (4451 kB) [Status: INSTALLED]
gcc-g77-3.2.3-i486-1 (2385 kB) [Status: NOT INSTALLED]
gcc-gnat-3.2.3-i486-1 (5416 kB) [Status: NOT INSTALLED]
gcc-java-3.2.3-i486-1 (7049 kB) [Status: INSTALLED]
gcc-objc-3.2.3-i486-1 (1472 kB) [Status: NOT INSTALLED]

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

# swaret --list glib
swaret 1.6.0-4

Listing all available Packages...
glib-1.2.10-i386-2 (181 kB) [Status: INSTALLED]
glib2-2.2.3-i486-1 (868 kB) [Status: INSTALLED]
glibc-2.3.2-i486-1 (14082 kB) [Status: INSTALLED]
glibc-debug-2.3.2-i486-1 (29699 kB) [Status: NOT INSTALLED]
glibc-i18n-2.3.2-noarch-1 (6553 kB) [Status: NOT INSTALLED]
glibc-profile-2.3.2-i486-1 (21854 kB) [Status: NOT INSTALLED]
glibc-solibs-2.3.2-i486-1 (1024 kB) [Status: INSTALLED]
glibc-zoneinfo-2.3.2-noarch-1 (273 kB) [Status: INSTALLED]

I've never had any problems before until now (and I almost always compile from source rather than install pkgs). If anyone has any ideas, I'm all ears :)


PS: I'm running Slack 9.1.....

PenguinX 01-13-2004 01:47 PM

Hi...
me got the same error for kbear... but i was able to fix that:
(Note: kbear 3.0 is still alpha-code ;-) )

Open the file /usr/src/build/kbear-3.0/kbear/lib/jobclasses/kbearsynchjob.cpp (or whereever you keep your sourcecode for compiling) with your favourite text-editor and add this line

#include "connectionmanager.h"

right after this line:

#include "kbearlistjob.h"

then start make again from the root-dir of the kbear-source-package. Worked for me perfectly... But me will stay with latest stable version (2.1).
For the other packages i cannot say anything but maybe sourcecode-bugs also.

PX

thegeekster 01-15-2004 06:25 AM

Thanx for the input, PenguinX.......it's definitely a big help..... :)

I'll give it a try shortly...........but I am currently starting a couple of projects :D ........one is to turn my old '95 Compaq Presario desktop into a gateway/router/firewall for a home lan using Linux From Scratch, and making my own rescue cd from the SLAX Live CD scripts (the idea is to make a gui oriented rescue cd that is easy to use)...............These projects will definitely keep me busy for a while (and keep me out of trouble ;) )

Thanx for the reply.....:)
---thegeekster


All times are GMT -5. The time now is 04:53 AM.