Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-07-2006, 11:14 PM
|
#1
|
LQ Newbie
Registered: Dec 2006
Distribution: Slackware 11.0
Posts: 6
Rep:
|
MY compiling problems deserve their own thread.
I'll start this by saying that I've looked all over the place using both google and the search function on here. I've tried so very hard to find a solution to my problem, but to no avail. So i turn to you, dear linuxquestions members, and humbly admit that i have no idea what to do next.
A quick and dirty history of what i've done so far:
- Tried to ./Configure unrealircd
- Ran into major problems (no compiler installed? Oh noes!)
- Installed gcc (all of it) using swaret
- Tried again, more problems
- Installed binutils using swaret (or slackpkg, maybe)
- Updated links in /usr/src/
- Tried again, more problems
So i give you this, for starters. It's fairly self-explanatory (i hope):
Code:
root@mwowm:~/Unreal3.2.5/Unreal3.2# echo 'main(){}' >> test.cpp
root@mwowm:~/Unreal3.2.5/Unreal3.2# g++ -v test.cpp
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.6
/usr/libexec/gcc/i486-slackware-linux/3.4.6/cc1plus -quiet -v -D_GNU_SOURCE test.cpp -quiet -dumpbase test.cpp -mtune=i486 -auxbase test -version -o /tmp/ccOpkdqz.s
ignoring duplicate directory "/usr/lib/qt/include"
ignoring nonexistent directory "/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/qt/include
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/i486-slackware-linux
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../include/c++/3.4.6/backward
/usr/local/include
/usr/lib/gcc/i486-slackware-linux/3.4.6/include
/usr/include
End of search list.
GNU C++ version 3.4.6 (i486-slackware-linux)
compiled by GNU C version 3.4.6.
GGC heuristics: --param ggc-min-expand=42 --param ggc-min-heapsize=23755
test.cpp: In function `int main()':
test.cpp:2: error: redefinition of `int main()'
test.cpp:1: error: `int main()' previously defined here
root@mwowm:~/Unreal3.2.5/Unreal3.2#
Although i'm sure that this plainly says what's going wrong here, i can't seem to figure it out. Would it help if i pasted the log of the errors encountered when attempting to configure unreal?
Any help would be greatly appreciated, and i will reward the poster(s) of said help with many a free internet.
Again, please help me. I'm scared.
|
|
|
12-07-2006, 11:19 PM
|
#2
|
LQ Newbie
Registered: Dec 2006
Distribution: Slackware 11.0
Posts: 6
Original Poster
Rep:
|
Ah, what the heck, here's the config.log:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --with-showlistmodes --enable-nospoof --enable-ssl --enable-ziplinks --enable-inet6 --enable-prefixaq --with-listen=5 --with-dpath=/root/Unreal3.2.5/Unreal3.2 --with-spath=/root/Unreal3.2.5/Unreal3.2/src/ircd --with-nick-history=2000 --with-sendq=3000000 --with-bufferpool=18 --with-hostname=mwowm.taphouse.org --with-permissions=0600 --with-fd-setsize=1024 --enable-dynamic-linking
## --------- ##
## Platform. ##
## --------- ##
hostname = mwowm
uname -m = i686
uname -r = 2.4.33.3
uname -s = Linux
uname -v = #1 Fri Sep 1 01:48:52 CDT 2006
/usr/bin/uname -p = pentium3
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/www/htdig/bin
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1379: checking for gcc
configure:1395: found /usr/bin/gcc
configure:1405: result: gcc
configure:1649: checking for C compiler version
configure:1652: gcc --version </dev/null >&5
gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1655: $? = 0
configure:1657: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.6
configure:1660: $? = 0
configure:1662: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1665: $? = 1
configure:1688: checking for C compiler default output file name
configure:1691: gcc conftest.c >&5
configure:1694: $? = 0
configure:1740: result: a.out
configure:1745: checking whether the C compiler works
configure:1751: ./a.out
configure:1754: $? = 0
configure:1771: result: yes
configure:1778: checking whether we are cross compiling
configure:1780: result: no
configure:1783: checking for suffix of executables
configure:1785: gcc -o conftest conftest.c >&5
configure:1788: $? = 0
configure:1813: result:
configure:1819: checking for suffix of object files
configure:1840: gcc -c conftest.c >&5
configure:1843: $? = 0
configure:1865: result: o
configure:1869: checking whether we are using the GNU C compiler
configure:1893: gcc -c conftest.c >&5
configure:1899: $? = 0
configure:1902: test -z || test ! -s conftest.err
configure:1905: $? = 0
configure:1908: test -s conftest.o
configure:1911: $? = 0
configure:1924: result: yes
configure:1930: checking whether gcc accepts -g
configure:1951: gcc -c -g conftest.c >&5
configure:1957: $? = 0
configure:1960: test -z || test ! -s conftest.err
configure:1963: $? = 0
configure:1966: test -s conftest.o
configure:1969: $? = 0
configure:1980: result: yes
configure:1997: checking for gcc option to accept ANSI C
configure:2067: gcc -c -g -O2 conftest.c >&5
configure:2073: $? = 0
configure:2076: test -z || test ! -s conftest.err
configure:2079: $? = 0
configure:2082: test -s conftest.o
configure:2085: $? = 0
configure:2103: result: none needed
configure:2121: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:2127: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2260: checking if gcc has a working -pipe
configure:2284: gcc -c -g -O2 -funsigned-char -pipe conftest.c >&5
configure:2290: $? = 0
configure:2293: test -z || test ! -s conftest.err
configure:2296: $? = 0
configure:2299: test -s conftest.o
configure:2302: $? = 0
configure:2315: result: yes
configure:2333: checking for rm
configure:2351: found /usr/bin/rm
configure:2363: result: /usr/bin/rm
configure:2372: checking for cp
configure:2390: found /usr/bin/cp
configure:2402: result: /usr/bin/cp
configure:2411: checking for touch
configure:2429: found /usr/bin/touch
configure:2441: result: /usr/bin/touch
configure:2450: checking for openssl
configure:2468: found /usr/bin/openssl
configure:2480: result: /usr/bin/openssl
configure:2489: checking for install
configure:2507: found /usr/bin/install
configure:2519: result: /usr/bin/install
configure:2528: checking for gmake
configure:2555: result: make
configure:2564: checking for gmake
configure:2597: result: no
configure:2603: checking for gunzip
configure:2621: found /usr/bin/gunzip
configure:2633: result: /usr/bin/gunzip
configure:2642: checking for pkg-config
configure:2675: result: no
configure:2680: checking for crypt in -ldescrypt
configure:2710: gcc -o conftest -pipe -g -O2 -funsigned-char -fno-strict-aliasing conftest.c -ldescrypt >&5
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: cannot find -ldescrypt
collect2: ld returned 1 exit status
configure:2716: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char crypt ();
| int
| main ()
| {
| crypt ();
| ;
| return 0;
| }
configure:2741: result: no
configure:2749: checking for crypt in -lcrypt
configure:2779: gcc -o conftest -pipe -g -O2 -funsigned-char -fno-strict-aliasing conftest.c -lcrypt >&5
configure:2785: $? = 0
configure:2788: test -z || test ! -s conftest.err
configure:2791: $? = 0
configure:2794: test -s conftest
configure:2797: $? = 0
configure:2810: result: yes
configure:2821: checking for socket in -lsocket
configure:2851: gcc -o conftest -pipe -g -O2 -funsigned-char -fno-strict-aliasing conftest.c -lsocket >&5
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
configure:2857: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_CRYPT 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char socket ();
| int
| main ()
| {
| socket ();
| ;
| return 0;
| }
configure:2882: result: no
configure:2888: checking for inet_ntoa in -lnsl
configure:2918: gcc -o conftest -pipe -g -O2 -funsigned-char -fno-strict-aliasing conftest.c -lnsl >&5
configure:2924: $? = 0
configure:2927: test -z || test ! -s conftest.err
configure:2930: $? = 0
configure:2933: test -s conftest
configure:2936: $? = 0
configure:2949: result: yes
configure:2967: checking how to run the C preprocessor
configure:3002: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3008: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_CRYPT 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3002: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3008: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_CRYPT 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3002: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:308,
from /usr/include/assert.h:36,
from conftest.c:13:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3008: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_CRYPT 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3002: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:308,
from /usr/include/assert.h:36,
from conftest.c:13:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3008: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_CRYPT 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3002: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3008: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_CRYPT 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3002: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3008: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_CRYPT 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3085: result: /lib/cpp
configure:3109: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3115: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_CRYPT 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3109: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3115: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_CRYPT 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3184: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_lib_crypt_crypt=yes
ac_cv_lib_descrypt_crypt=no
ac_cv_lib_nsl_inet_ntoa=yes
ac_cv_lib_socket_socket=no
ac_cv_objext=o
ac_cv_path_CP=/usr/bin/cp
ac_cv_path_GUNZIP=/usr/bin/gunzip
ac_cv_path_INSTALL=/usr/bin/install
ac_cv_path_OPENSSLPATH=/usr/bin/openssl
ac_cv_path_RM=/usr/bin/rm
ac_cv_path_TOUCH=/usr/bin/touch
ac_cv_pipe=yes
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_MAKER=make
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
## ----------------- ##
## Output variables. ##
## ----------------- ##
ALLOCA=''
BINDIR=''
CARESINCDIR=''
CARESLIBDIR=''
CARESLIBS=''
CC='gcc'
CFLAGS='-pipe -g -O2 -funsigned-char -fno-strict-aliasing'
CP='/usr/bin/cp'
CPP='/lib/cpp'
CPPFLAGS=''
CRYPTOLIB=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FD_SETSIZE=''
GMAKE=''
GUNZIP='/usr/bin/gunzip'
HAVE_ZLIB=''
INSTALL='/usr/bin/install'
IRCDDIR=''
IRCDLIBS='-lcrypt -lnsl '
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKER='make'
MKPASSWDLIBS='-lcrypt'
MODULEFLAGS=''
OBJEXT='o'
OPENSSLPATH='/usr/bin/openssl'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKGCONFIG=''
RM='/usr/bin/rm'
SHELL='/bin/sh'
STRTOUL=''
TOUCH='/usr/bin/touch'
TREINCDIR=''
TRELIBS=''
URL=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define HAVE_CRYPT 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
configure: exit 1
There seem to be a few errors in there... where do i start?
|
|
|
12-08-2006, 12:41 AM
|
#3
|
LQ Newbie
Registered: Sep 2005
Posts: 16
Rep:
|
install the kernel-headers that your glibc was compiled against.
|
|
|
12-08-2006, 01:05 AM
|
#4
|
LQ Newbie
Registered: Dec 2006
Distribution: Slackware 11.0
Posts: 6
Original Poster
Rep:
|
That got me a bit farther, i installed them using slackpkg.
New problem is this:
./configure: line 12689: make: command not found
So... i need to, like... install "make"?
I should point out that although i might sound like i have some idea of what I'm doing, I'm completely new to compiling things. One of my earlier problems (yesterday) what that although i had the compiler installed, i didn't have the assembler.
So where do we go from here?
Thanks for your help so far,
Bucky
|
|
|
12-08-2006, 01:47 AM
|
#5
|
LQ Newbie
Registered: Dec 2006
Distribution: Slackware 11.0
Posts: 6
Original Poster
Rep:
|
also, this still happens:
Code:
root@mwowm:~/Unreal3.2.5/Unreal3.2# g++ -O test.cpp
test.cpp: In function `int main()':
test.cpp:2: error: redefinition of `int main()'
test.cpp:1: error: `int main()' previously defined here
root@mwowm:~/Unreal3.2.5/Unreal3.2#
Which is, to say the least, annoying.
|
|
|
12-08-2006, 02:10 AM
|
#6
|
LQ Newbie
Registered: Jun 2004
Distribution: Slackware 11.0
Posts: 9
Rep:
|
From ZipSlack README.1st
Quote:
To add a complete development system you'll need to install the packages from the Slackware D (development) and L (libraries) series using the installpkg package utility. For example, if you've mounted a Slackware CD on /mnt/cdrom:
cd /mnt/cdrom/slackware
installpkg d/*.tgz l/*.tgz
Note that this will add more than 300MB of software, so you'd better have the space for it! If you're looking to add a more modest development environment for C and C++, you'll need at least these packages for good results:
d/binutils d/gcc d/gcc-g++ d/kernel-headers d/make l/glibc
|
From binutils-2.15.92.0.2-i486-3.txt:
Quote:
binutils: binutils (GNU binary development tools)
binutils:
binutils: Binutils is a collection of binary utilities. It includes "as" (the
binutils: portable GNU assembler), "ld" (the GNU linker), and other utilities
binutils: for creating and working with binary programs.
binutils:
binutils: These utilities are REQUIRED to compile C, C++, Objective-C, Fortran,
binutils: and most other programming languages.
|
I've found that by installing all of the D series and L series I rarely have to worry during 99% of my compiles.
Hope this helps.
|
|
|
12-08-2006, 02:32 AM
|
#7
|
LQ Newbie
Registered: Dec 2006
Distribution: Slackware 11.0
Posts: 6
Original Poster
Rep:
|
Thanks, though as you were typing that, it was successfully compiling.
My mistake (probably common) was that when installing Slackware, i decided not to install the /d stuff. No gcc, no nothing. The problem that i faced in trying to do so, after the fact, was that even though slackware has a million different tools for dealing with packages, there is atrocious neglect of dependencies.
What i found was that i was installing gcc, then trying ot compile. That wasn't working, so i installed binutils. Still not working, i installed my kernel headers. Guess what happened next? Not working. On to installing Make... you get the idea.
After every install, i was reminded that my @$$ was totally covered (dependency-wise). That was not, however, entirely true.
In retrospect, i suppose that i should have gone back to the Slack CD's and just installed everything from /d.
So in the end, not unlike in windows, i was stuck pulling out my hair and installing and installing and installing, until it worked.
Thanks a bunch for the help, though, both of you. I've taken the liberty of forwarding you several internets.
|
|
|
12-08-2006, 03:05 AM
|
#8
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
As a minimum for compiling software you'll need
binutils
gcc(plus whatever other compiler -in your case g++
make
kernel headers
full glibc from the /l directory
You also usually need sed and perl installed.
For autoconf sources such as you are compiling you need:
autoconf
automake
m4
libtool
If compiling anything using GTK-2 libs you'll need pkgconfig installed also.
Everything else is pretty much gravy.
|
|
|
12-08-2006, 01:15 PM
|
#9
|
LQ Newbie
Registered: Dec 2006
Distribution: Slackware 11.0
Posts: 6
Original Poster
Rep:
|
Quote:
As a minimum for compiling software you'll need
binutils
gcc(plus whatever other compiler -in your case g++
make
kernel headers
full glibc from the /l directory
You also usually need sed and perl installed.
For autoconf sources such as you are compiling you need:
autoconf
automake
m4
libtool
If compiling anything using GTK-2 libs you'll need pkgconfig installed also.
|
Exactly.
Looking back at this whole thing, i wish that when i'd installed gcc (or any of what i installed) it had pointed out that what i was installing was only part of what i needed.
Quote:
Everything else is pretty much gravy.
|
Well, yeah.
But getting to there is... well... what's the opposite of gravy?
|
|
|
12-08-2006, 01:42 PM
|
#10
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012
Rep:
|
Um, Mashed Potatoes? Turkey?
|
|
|
All times are GMT -5. The time now is 12:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|