Hallo, Amos, Du meintest am 25.08.10: >> I'm trying to compile Squid 3.1.6 with the SBo script >> >> http://slackbuilds.org/repository/13.1/network/squid/ >> <http://slackbuilds.org/slackbuilds/13.1/network/squid/squid.Slac >> kBuild> >> >> - it fails with >> >> /usr/lib/gcc/i486-slackware-linux/4.4.4/../../../ >> libpthread.a(pthread_create.o): In function `pthread_create': >> (.text+0x10a9): undefined reference to `_dl_stack_flags' >> /usr/lib/gcc/i486-slackware-linux/4.4.4/../../../libpthread.a(pthrea >> d_create.o): > <snip> >> # ------------------------------------------------------------------ >> --- >> >> "/usr/lib/libpthread.a" exists, it's part of glibc-2.11.1 >> >> Compiling other packages works well. >> >> Is that error related to squid or to glibc? >> > Bit hard to say from just the libc messages. Possibly bits we expect > are missing from the library, or a system header include has gone > wrong. Do you have the lines above the error which indicate exactly > what was building when it occured? Famous last words: depbase=`echo string_arrays.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ i486-slackware-linux-gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/usr/share/squid\" -DDEFAULT_SQUID_CONFIG_DIR=\"/etc/squid\" -I.. -I../include -I../src -I../include -I../src -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -O2 -march=i486 -mtune=i686 -MT string_arrays.o -MD -MP -MF $depbase.Tpo -c -o string_arrays.o string_arrays.c &&\ mv -f $depbase.Tpo $depbase.Po /bin/sh ../libtool --tag=CXX --mode=link i486-slackware-linux-g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -O2 -march=i486 -mtune=i686 -export-dynamic -dlopen force -g -o squid AclRegs.o AuthReg.o access_log.o AsyncEngine.o cache_cf.o ProtoPort.o CacheDigest.o cache_manager.o carp.o cbdata.o ChunkedCodingParser.o client_db.o client_side.o client_side_reply.o client_side_request.o BodyPipe.o clientStream.o CompletionDispatcher.o comm_select.o comm_select_win32.o comm_poll.o comm_epoll.o comm_kqueue.o ConfigOption.o ConfigParser.o debug.o delay_pools.o DelayId.o DelayBucket.o DelayConfig.o DelayPool.o DelaySpec.o DelayTagged.o DelayUser.o DelayVector.o NullDelayId.o disk.o DiskIO/DiskIOModule.o DiskIO/ReadRequest.o DiskIO/WriteRequest.o dlink.o dns_internal.o DnsLookupDetails.o errorpage.o ETag.o event.o EventLoop.o external_acl.o ExternalACLEntry.o fd.o fde.o filemap.o forward.o fqdncache.o ftp.o gopher.o helper.o htcp.o http.o HttpStatusLine.o HttpHdrCc.o HttpHdrRange.o HttpHdrSc.o HttpHdrScTarget.o HttpHdrContRange.o HttpHeader.o HttpHeaderTools.o HttpBody.o HttpMsg.o HttpReply.o HttpRequest.o HttpRequestMethod.o icp_v2.o icp_v3.o int.o internal.o ipc.o ipcache.o list.o logfile.o main.o mem.o mem_node.o MemBuf.o MemObject.o mime.o mime_header.o multicast.o neighbors.o Packer.o Parsing.o pconn.o peer_digest.o peer_select.o peer_sourcehash.o peer_userhash.o redirect.o referer.o refresh.o RemovalPolicy.o send-announce.o snmp_core.o snmp_agent.o SquidMath.o SquidNew.o ssl_support.o stat.o StatHist.o String.o stmem.o store.o StoreFileSystem.o store_io.o StoreIOState.o store_client.o store_digest.o store_dir.o store_key_md5.o store_log.o store_rebuild.o store_swapin.o store_swapmeta.o store_swapout.o StoreMeta.o StoreMetaMD5.o StoreMetaSTD.o StoreMetaSTDLFS.o StoreMetaUnpacker.o StoreMetaURL.o StoreMetaVary.o StoreSwapLogData.o Server.o SwapDir.o time.o tools.o tunnel.o unlinkd.o url.o URLScheme.o urn.o useragent.o wccp.o wccp2.o whois.o wordlist.o LoadableModule.o LoadableModules. o DiskIO/DiskIOModules_gen.o repl_modules.o globals.o string_arrays.o base/libbase.la libsquid.la auth/libacls.la ident/libident.la acl/libacls.la acl/libstate.la auth/libauth.la acl/libapi.la ip/libip.la fs/libfs.la icmp/libicmp.la icmp/libicmp-core.la ../compat/libcompat.la -L../lib DiskIO/AIO/AIODiskIOModule.o DiskIO/Blocking/BlockingDiskIOModule.o DiskIO/DiskDaemon/DiskDaemonDiskIOModule.o DiskIO/DiskThreads/DiskThreadsDiskIOModule.o repl/liblru.a repl/libheap.a libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a -lrt -lpthread -lcrypt ../snmplib/libsnmp.a -lssl -lcrypto -lmiscutil -lm -lnsl -lcap -ldl -ldl -lltdl libtool: link: rm -f .libs/squid.nm .libs/squid.nmS .libs/squid.nmT libtool: link: (cd .libs && i486-slackware-linux-gcc -O2 -march=i486 -mtune=i686 -c -fno-builtin "squidS.c") libtool: link: rm -f ".libs/squidS.c" ".libs/squid.nm" ".libs/squid.nmS" ".libs/squid.nmT" libtool: link: i486-slackware-linux-g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -O2 -march=i486 -mtune=i686 .libs/squidS.o -g -o squid AclRegs.o AuthReg.o access_log.o AsyncEngine.o cache_cf.o ProtoPort.o CacheDigest.o cache_manager.o carp.o cbdata.o ChunkedCodingParser.o client_db.o client_side.o client_side_reply.o client_side_request.o BodyPipe.o clientStream.o CompletionDispatcher.o comm_select.o comm_select_win32.o comm_poll.o comm_epoll.o comm_kqueue.o ConfigOption.o ConfigParser.o debug.o delay_pools.o DelayId.o DelayBucket.o DelayConfig.o DelayPool.o DelaySpec.o DelayTagged.o DelayUser.o DelayVector.o NullDelayId.o disk.o DiskIO/DiskIOModule.o DiskIO/ReadRequest.o DiskIO/WriteRequest.o dlink.o dns_internal.o DnsLookupDetails.o errorpage.o ETag.o event.o EventLoop.o external_acl.o ExternalACLEntry.o fd.o fde.o filemap.o forward.o fqdncache.o ftp.o gopher.o helper.o htcp.o http.o HttpStatusLine.o HttpHdrCc.o HttpHdrRange.o HttpHdrSc.o HttpHdrScTarget.o HttpHdrContRange.o HttpHeader.o HttpHeaderTools.o HttpBody.o HttpMsg.o HttpReply.o HttpRequest.o HttpRequestMethod.o icp_v2.o icp_v3.o int.o internal.o ipc.o ipcache.o list.o logfile.o main.o mem.o mem_node.o MemBuf.o MemObject.o mime.o mime_header.o multicast.o neighbors.o Packer.o Parsing.o pconn.o peer_digest.o peer_select.o peer_sourcehash.o peer_userhash.o redirect.o referer.o refresh.o RemovalPolicy.o send-announce.o snmp_core.o snmp_agent.o SquidMath.o SquidNew.o ssl_support.o stat.o StatHist.o String.o stmem.o store.o StoreFileSystem.o store_io.o StoreIOState.o store_client.o store_digest.o store_dir.o store_key_md5.o store_log.o store_rebuild.o store_swapin.o store_swapmeta.o store_swapout.o StoreMeta.o StoreMetaMD5.o StoreMetaSTD.o StoreMetaSTDLFS.o StoreMetaUnpacker.o StoreMetaURL.o StoreMetaVary.o StoreSwapLogData.o Server.o SwapDir.o time.o tools.o tunnel.o unlinkd.o url.o URLScheme.o urn.o useragent.o wccp.o wccp2.o whois.o wordlist.o LoadableModule.o LoadableModules.o DiskIO/DiskIOModules_gen.o repl_modules.o glob als.o string_arrays.o DiskIO/AIO/AIODiskIOModule.o DiskIO/Blocking/BlockingDiskIOModule.o DiskIO/DiskDaemon/DiskDaemonDiskIOModule.o DiskIO/DiskThreads/DiskThreadsDiskIOModule.o -Wl,--export-dynamic base/.libs/libbase.a ./.libs/libsquid.a auth/.libs/libacls.a ident/.libs/libident.a acl/.libs/libacls.a acl/.libs/libstate.a auth/.libs/libauth.a acl/.libs/libapi.a ip/.libs/libip.a fs/.libs/libfs.a icmp/.libs/libicmp.a icmp/.libs/libicmp-core.a ../compat/.libs/libcompat.a /usr/lib/libstdc++.so -L/tmp/SBo/squid-3.1.7-20100825/lib repl/liblru.a repl/libheap.a libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a -lrt -lpthread -lcrypt ../snmplib/libsnmp.a -lssl -lcrypto -lmiscutil -lm -lnsl -lcap /usr/lib/libltdl.so -ldl /usr/lib/gcc/i486-slackware-linux/4.4.4/../../../libpthread.a(pthread_create.o): In function `pthread_create': (.text+0x10a9): undefined reference to `_dl_stack_flags' /usr/lib/gcc/i486-slackware-linux/4.4.4/../../../libpthread.a(pthread_create.o): In function `pthread_create': (.text+0x1bd6): undefined reference to `_dl_stack_flags' /usr/lib/gcc/i486-slackware-linux/4.4.4/../../../libpthread.a(ptw-write.o): In function `__write_nocancel': (.text+0x26): undefined reference to `__syscall_error' [...] > PS: 3.1.6 has a few problems which you should avoid now if possible. > Can you try with the 3.1.7 sources underneath the scripts? Same desaster. May be the gcc (on this machine: gcc 4.4.4, glibc 2.11.1) makes the problems. On this machine even compiling squid 3.1.3 crashes (with the same error message), on another machine with gcc 3.4.6 and glibc 2.9 compiling 3.1.3 works well. Compiling 3.1.7-20100825 on that other machine is just running, the first run stopped with another error message. Viele Gruesse! Helmut