Why difference compiling squid for Sparc and x86.

Why difference compiling squid for Sparc and x86.

Post by Hans J Jakobse » Tue, 27 May 1997 04:00:00

I am trying to compile squid 1.10 for Solaris x86 but get the following

gcc -o squid -g acl.o  cache_cf.o  client_db.o  client_side.o  comm.o  debug.o  
disk.o  dns.o  errorpage.o  event.o  fdstat.o  filemap.o  fqdncache.o  ftp.o  
gopher.o  hash.o  http.o  http-anon.o  icmp.o  icp.o  ident.o  ipcache.o  main.o  
mime.o  neighbors.o  net_db.o  objcache.o  pass.o  proto.o  redirect.o  refresh.o  
send-announce.o  ssl.o  stack.o  stat.o  stmem.o  store.o  store_clean.o  
storetoString.o  tools.o  unlinkd.o  url.o  useragent.o  wais.o   -L../lib -lcrypt
 -lmiscutil -lm -lresolv -lmalloc -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
__inet_addr                         main.o
__inet_ntoa                         acl.o

(The problem is the underscores in font of the names)

When I compile on a sparc 2 it compiles fine.
Compiler has been gcc 2.7.2 and is now
OS Solaris 2.5.1_x86 and solaris 2.5
Sendmail uses the same functions and compiles on both machines and
I cant se any difference in compiler switches.
What could cause this difference?

Tele Danmark Erhverv, Data Divisionen      TLF: +45 8947 3339
Hans J Jakobsen                            FAX: +45 8947 3308
Skanderborgvej 234 st tv                   X400:C=dk;admd=DK400;PRMD=DATACOM;
DK 8620 Viby J                                  S=Jakobsen;G=Hans


1. why difference between x86 and sparc solaris?

I have a proggie that seems to have a stack error on x86, but NOT on sparc.

(if anyone cares about learning japanese, it's

This happens when I try to read in a large file.

some system-type values seem to get corrupted. I can't even fprintf, for
goodness sake!

Any suggestions?

[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
The word of the day is sescaquintillion

2. What happens?

3. Difference between Sparc 2, Sparc 10 and Ultra Sparc 10

4. Term110 not working ...

5. Any differences between Solaris x86 and SPARC?

6. Trouble using notebook pcmcia nic for apache web server

7. Sol8 x86 & Sparc differences

8. Digi Datafire ISDN & Linux???

9. Code difference between Sparc and x86 ??

10. Difference betwen Solaris X86 & Sparc device drivers

11. What are the differences between x86 and Sparc

12. WARNING: x86/sparc header difference: stat_impl.h

13. Difference in X86 & Sparc add_drv