It is currently Wed Nov 21, 2018 4:58 pm

All times are UTC [ DST ]




 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: AMD64
PostPosted: Fri Mar 18, 2005 3:32 am 

Joined: Sat Mar 20, 2004 11:18 pm
Posts: 3
Is it possible to compile IRCU in 64bit mode? I was going to test it, but I get this error when I attempt to configure it:
omadon@locutus ircu2.10.11.07 $ ./configure --prefix=/ircu --exec-prefix=/ircu --with-dpath=/ircu --with-cpath=/ircu --with-lpath=/ircu
checking for installation prefix... /ircu
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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 suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for gcc option to accept ANSI C... none needed
checking for library containing crypt... -lcrypt
checking for gethostbyname... yes
checking for socket... yes
checking for library containing res_mkquery... no
configure: error: Unable to find library containing res_mkquery()
omadon@locutus ircu2.10.11.07 $


I'm running:
Linux locutus 2.6.9-gentoo-r14 #16 SMP Thu Feb 10 16:16:03 GMT 2005 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux


Offline
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 5:35 am 

Joined: Sat Apr 06, 2002 1:00 am
Posts: 24
I dont think thats amd64 related, your system has no resolver installed or its installed to some funky non normal dir


Offline
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 6:23 pm 

Joined: Sat Mar 20, 2004 11:18 pm
Posts: 3
man res_mkquery says there should be three files, which I have checked for an exist in the same locatation as the man file states.
omadon@locutus / $ ls -l /usr/include/resolv.h   
-rw-r--r--  1 root root 14184 Feb 14 23:34 /usr/include/resolv.h

omadon@locutus / $ ls -l /usr/include/netinet/in.h
-rw-r--r--  1 root root 16387 Feb 14 23:34 /usr/include/netinet/in.h

omadon@locutus / $ ls -l /usr/include/arpa/nameser.h
-rw-r--r--  1 root root 20851 Feb 14 23:34 /usr/include/arpa/nameser.h



I tried removing this from the configure script and I get another error:
checking size of short... configure: error: cannot compute sizeof (short), 77


It seems the configure script is broken, there's no reason it shouldn't be able to compute the size of short :\

#include <stdio.h>
int main() {
        printf("%i\n", sizeof(short));
        return 0;
}


From config.log:
configure:4197: checking for short
configure:4222: gcc -c -march=i386 -m32 -Xlinker=-m32  conftest.c >&5
gcc: unrecognized option `-Xlinker=-m32'
configure:4225: $? = 0
configure:4228: test -s conftest.o
configure:4231: $? = 0
configure:4242: result: yes
configure:4245: checking size of short
configure:4520: gcc -o conftest -march=i386 -m32 -Xlinker=-m32   conftest.c yes -lcrypt  >&5
gcc: yes: No such file or directory
gcc: unrecognized option `-Xlinker=-m32'
configure:4523: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 4480 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_POLL_H 1
| #define HAVE_SYS_EPOLL_H 1
| #define HAVE_INTTYPES_H 1
| #define TIME_WITH_SYS_TIME 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (short)); }
| unsigned long ulongval () { return (long) (sizeof (short)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
|   FILE *f = fopen ("conftest.val", "w");
|   if (! f)
|     exit (1);
|   if (((long) (sizeof (short))) < 0)
|     {
|       long i = longval ();
|       if (i != ((long) (sizeof (short))))
|    exit (1);
|       fprintf (f, "%ld\n", i);
|     }
|   else
|     {
|       unsigned long i = ulongval ();
|       if (i != ((long) (sizeof (short))))
|    exit (1);
|       fprintf (f, "%lu\n", i);
|     }
|   exit (ferror (f) || fclose (f) != 0);
|
|   ;
|   return 0;
| }
configure:4538: error: cannot compute sizeof (short), 77
See `config.log' for more details.


Offline
 Profile  
 
 Post subject:
PostPosted: Fri Apr 15, 2005 11:37 am 

Joined: Fri May 10, 2002 1:00 am
Posts: 435
Location: Netherlands
tried autoconf ?



_________________
Don't bother reading, I'm just the lame botlender, right ?
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron