This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

error ?

Old posts that have not been replied to for several years.
Locked
e
emacs

Post by emacs »

hi whats is wrong here ??

gcc -pipe -shared -nostartfiles -o ../../../channels.so ../channels.o -L/usr/lib -ltcl -lm -ldl -ldns -lnsl
strip ../../../channels.so
make[2]: Leaving directory `/home/emacs/eggdrop1.6.9/src/mod/channels.mod'
cp: cannot stat `./compress.mod/Makefile': No such file or directory
make[2]: Entering directory `/home/emacs/eggdrop1.6.9/src/mod/compress.mod'
make[2]: *** No rule to make target `modules'. Stop.
make[2]: Leaving directory `/home/emacs/eggdrop1.6.9/src/mod/compress.mod'
make[1]: *** [compress.mod_so] Error 2
make[1]: Leaving directory `/home/emacs/eggdrop1.6.9/src/mod'
make: *** [modules] Error 2
b
bleah

Post by bleah »

On 2002-03-13 16:16, emacs wrote:
hi whats is wrong here ??

gcc -pipe -shared -nostartfiles -o ../../../channels.so ../channels.o -L/usr/lib -ltcl -lm -ldl -ldns -lnsl
strip ../../../channels.so
make[2]: Leaving directory `/home/emacs/eggdrop1.6.9/src/mod/channels.mod'
cp: cannot stat `./compress.mod/Makefile': No such file or directory
make[2]: Entering directory `/home/emacs/eggdrop1.6.9/src/mod/compress.mod'
make[2]: *** No rule to make target `modules'. Stop.
make[2]: Leaving directory `/home/emacs/eggdrop1.6.9/src/mod/compress.mod'
make[1]: *** [compress.mod_so] Error 2
make[1]: Leaving directory `/home/emacs/eggdrop1.6.9/src/mod'
make: *** [modules] Error 2
Looks like a file is missing. Verify if you have enough HDD space or you exceed your quota (allow a max of 20Mb to install the bot). Delete the directory and re-extract (tar zxvf eggdrop1.6.9.tar.gz)

P.S.: Make sure you download your eggy from eggheads :smile:
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

the Makefile for compress.mod is made with 'make config'. Firstly ensure you've actually run this command (like it tells you to do). Then check if it errors when you do that.
e
emacs

Post by emacs »

yes it seems to miss this files it tries to make

Configuring module compress ...

running in eggdrop mode.
configure: warning: CFLAGS=-fexpensive-optimizations -march=i586 -O3 -fomit-frame-pointer: invalid host type
configure: warning: CPPFLAGS=-fexpensive-optimizations -march=i586 -O3 -fomit-frame-pointer: invalid host type
configure: error: can only configure for one host and one target at a time

Configuring module dns ...

running in eggdrop mode.
configure: warning: CFLAGS=-fexpensive-optimizations -march=i586 -O3 -fomit-frame-pointer: invalid host type
configure: warning: CPPFLAGS=-fexpensive-optimizations -march=i586 -O3 -fomit-frame-pointer: invalid host type
configure: error: can only configure for one host and one target at a time

make[1]: Leaving directory `/home/emacs/eggdrop1.6.9/src/mod'
building ./src/mod/Makefile... done.

You can now compile the bot, using "make".

invalid hostname ?? help me :smile:
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

hmm, well I don't like -O3, but that shouldn't be affecting anything here. tell me the system and architecture you're compiling on, and paste the output of ./configure
e
emacs

Post by emacs »

ok here it is

This is Eggdrop's GNU configure script.
It's going to run a bunch of strange tests to hopefully
make your compile work without much twiddling.

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for POSIXized ISC... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether the compiler understands -pipe... yes
checking whether make sets ${MAKE}... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for strip... strip
checking for gawk... gawk
checking for basename... basename
checking for uname... uname
checking system type... Linux
checking system release... 2.4.18
checking for socket in -lsocket... no
checking for connect in -lnsl... yes
checking for gethostbyname in -ldns... yes
checking for dlopen in -ldl... yes
checking for tan in -lm... yes
checking for pthread_mutex_init in -lpthread... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/rusage.h usability... no
checking sys/rusage.h presence... no
checking for sys/rusage.h... no
checking for unistd.h... (cached) yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking std_args.h usability... no
checking std_args.h presence... no
checking for std_args.h... no
checking for strings.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for pid_t... yes
checking for size_t... yes
checking for gcc -pipe option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for long... yes
checking size of long... 4
checking for int... yes
checking size of int... 4
checking for clock... yes
checking for getrusage... yes
checking for setpgid... yes
checking for uname... yes
checking for sigaction... yes
checking for sigemptyset... yes
checking for rename... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for getdtablesize... yes
checking for memset... yes
checking for random... yes
checking for srandom... yes
checking for dlopen... yes
checking for dprintf... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for isascii... yes
checking for inet_aton... yes
checking for memcpy... yes
checking for strftime... yes
checking for fsync... yes
checking for vsprintf... yes
checking for broken libsafe sscanf... no
checking for Tcl library... found /usr/lib/libtcl.so
checking for Tcl header... found /usr/include/tcl.h
checking whether the Tcl system has changed... yes
checking for Tcl version... 8.3
checking for Tcl patch level... 8.3.4
checking for Tcl_Free in -ltcl... yes
checking for TclpFinalizeThreadData in -ltcl... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating scripts/Makefile
config.status: creating src/Makefile
config.status: creating src/md5/Makefile
config.status: creating src/compat/Makefile
config.status: creating src/mod/Makefile
config.status: creating config.h
config.status: executing default-1 commands
creating lush.h
config.status: executing default-2 commands

Configure is done.

Type 'make config' to configure the modules
to interactively choose which modules to compile.

After that, type 'make' to create the bot.

emacs@localhost:eggdrop1.6.9$ make config
detecting modules.................... done.
calculating dependencies................... done.
building ./src/mod/Makefile... done.
make[1]: Entering directory `/home/emacs/eggdrop1.6.9/src/mod'

Configuring module compress ...

running in eggdrop mode.
configure: warning: CFLAGS=-fexpensive-optimizations -march=i586 -O3 -fomit-frame-pointer: invalid host type
configure: warning: CPPFLAGS=-fexpensive-optimizations -march=i586 -O3 -fomit-frame-pointer: invalid host type
configure: error: can only configure for one host and one target at a time

Configuring module dns ...

running in eggdrop mode.
configure: warning: CFLAGS=-fexpensive-optimizations -march=i586 -O3 -fomit-frame-pointer: invalid host type
configure: warning: CPPFLAGS=-fexpensive-optimizations -march=i586 -O3 -fomit-frame-pointer: invalid host type
configure: error: can only configure for one host and one target at a time

make[1]: Leaving directory `/home/emacs/eggdrop1.6.9/src/mod'
building ./src/mod/Makefile... done.

You can now compile the bot, using "make".

heh i never had these problems maybe its the distro its rootlinux 1.3 pre2 kernel 2.4.18 amd cpu

<font size=-1>[ This Message was edited by: emacs on 2002-03-14 05:03 ]</font>
e
emacs

Post by emacs »

could it be my hostname im not sure how to set it up should /etc/HOSTNAME and /etc/hosts be the same ? (configure: error: can only configure for one host and one target at a time) :smile:
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

no, the host type its referring to is your system and architecture. possibly the -march=i586 is causing this. try removing this (dunno which file is inserting it though - check /etc for something that contains default make flags)
e
emacs

Post by emacs »

ok any idea how i find it in a easy way? :smile:
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

grep -R "march=i586" /* 2>/dev/null

be warned that that will search *every* file on the system to see if it contains the string march=i586, and could take a very long time to finish. might be better to just search /etc/* first.
e
emacs

Post by emacs »

ok i get this

/etc/profile:CFLAGS="-fexpensive-optimizations -march=i586 -O3 -fomit-frame-pointer"
e
emacs

Post by emacs »

cool now it works

i removed these lines in /etc/profile

#heavy optimization
CFLAGS="-fexpensive-optimizations -march=i586 -O3 -fomit-frame-pointer"
CPPFLAGS=$CFLAGS

can it couse trouble when i run other programs or is it just some optimations that isnt working anyway :smile:
Locked