LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2004, 01:23 AM   #1
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
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.....

Last edited by thegeekster; 01-05-2004 at 01:27 AM.
 
Old 01-13-2004, 01:47 PM   #2
PenguinX
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware 9.1
Posts: 1

Rep: Reputation: 0
Smile

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
 
Old 01-15-2004, 06:25 AM   #3
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Original Poster
Rep: Reputation: 34
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 ........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
 
  


Reply



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
cannot compile c programs umeshpandey007 Linux - Newbie 7 08-29-2005 09:19 PM
how to compile c++ programs in 10.1 official msalimane Mandriva 2 12-07-2004 12:30 PM
how to compile c++ programs with gcc nimra Programming 7 05-17-2004 07:08 AM
how to compile C++ programs in linux m_suman Programming 9 03-28-2004 12:14 PM
how to compile opengl programs rsingh Linux - Newbie 2 01-02-2004 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:17 AM.

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