This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Error compiling on Solaris 10 - Makefile unexpected end of line

0

My first attempt at installing Wireshark on a Solaris 10 x86 system was to download the packages from Sunfreeware.com (including all dependencies) and install them. There are some library errors with libwireshark.so.1 where a dependent library (libgnutls.so.26 ('GNU_1_4')) isn't found. I'm not finding much on that issue so I decided to try and compile Wireshark myself.

Here is the configure output..

Script started on Mon May 07 16:38:22 2012
johndeere {root}# ./configure
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for a sed that does not truncate output... /usr/local/bin/sed
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for fgrep... /usr/sfw/bin/ggrep -F
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p
checking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
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 for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by g++... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking for perl... /usr/bin/perl
checking for bison... bison -y
checking for bison... /usr/sfw/bin/bison
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for flex... /usr/sfw/bin/flex
checking for pod2man... /usr/local/bin/pod2man
checking for pod2html... /usr/local/bin/pod2html
checking for xdg-open... no
checking for htmlview... no
checking for python... /usr/local/bin/python
checking for doxygen... no
checking for doxygen... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBGNUTLS... yes
gnuTLS found, enabling ssl decryption
checking for libgcrypt-config... /usr/local/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.1.92... yes
libgcrypt found, enabling ipsec decryption
checking for libsmi >= 2... not found
checking for xsltproc... /usr/bin/xsltproc
checking for xsltproc... yes
checking for xmllint... /usr/bin/xmllint
checking for xmllint... yes
checking for fop... no
checking for fop... no
checking for elinks... no
checking for elinks... no
checking for lynx... no
checking for lynx... no
checking for hhc.exe... no
checking for hhc.exe... no
checking for pkgproto... yes
checking for pkgmk... yes
checking for pkgtrans... yes
checking for rpm... no
checking for dpkg-buildpackage... no
checking for xcodebuild... no
checking for hdiutil... no
checking for bless... no
checking whether we can add -Wall -W to CFLAGS... yes
checking whether we can add -Wextra to CFLAGS... yes
checking whether we can add -Wdeclaration-after-statement to CFLAGS... yes
checking whether we can add -Wendif-labels to CFLAGS... yes
checking whether we can add -Wpointer-arith to CFLAGS... yes
checking whether we can add -Wno-pointer-sign to CFLAGS... no
checking whether we can add -Warray-bounds to CFLAGS... no
checking whether we can add -Wcast-align to CFLAGS... yes
checking whether we can add -Wformat-security to CFLAGS... yes
checking whether we can add -fexcess-precision=fast to CFLAGS... no
checking whether we can add -Wl,--as-needed to LDFLAGS... no
checking whether we should treat compiler warnings as errors... no
checking for platform-specific compiler flags... GCC on Solaris - added -Wno-return-type -DFUNCPROTO=15
checking for platform-specific linker flags... none needed
checking whether to use NONE for headers and libraries... no
checking whether to use /usr/local for headers and libraries... yes
checking for LD_LIBRARY_PATH... no -- this may be a problem in a few seconds
checking for GNU sed as first sed in PATH... yes
checking if profile builds must be generated... no
checking for pkg-config... /usr/local/bin/pkg-config
checking for GTK+ - version >= 2.4.0... yes (version 2.12.0)
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GLIB - version >= 2.4.0... yes (version 2.18.3)
checking for GLIB - version >= 2.14.0... yes
checking whether GLib supports loadable modules... yes
checking whether dladdr can be used to find the pathname of an executable... yes
checking whether to use OS X integration functions... yes
checking for gtk_osxapplication_set_menu_bar in -ligemacintegration... no
checking for ige_mac_menu_set_menu_bar in -lGtk... no
checking for ige_mac_menu_set_menu_bar in -ligemacintegration... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl... yes
checking for connect... no
checking for connect in -lsocket... yes
checking whether to use libpcap for packet capture... yes
checking for pcap-config... /usr/local/bin/pcap-config
checking for broken pcap-config... no
checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_open_dead... yes
checking for pcap_freecode... yes
checking whether pcap_breakloop is present... yes
checking whether pcap_findalldevs is present and usable... yes
checking for pcap_datalink_val_to_name... yes
checking for pcap_datalink_name_to_val... yes
checking for pcap_datalink_val_to_description... yes
checking for pcap_list_datalinks... yes
checking for pcap_set_datalink... yes
checking for pcap_lib_version... yes
checking for pcap_get_selectable_fd... yes
checking for pcap_free_datalinks... yes
checking for pcap_create... yes
checking for bpf_image... yes
checking whether to build dumpcap... yes
checking whether to build rawshark... yes
checking whether to use libpcap remote capturing feature... no
checking whether to use zlib for gzip compression and decompression... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for inflatePrime... yes
checking for inflatePrime missing when linking with X11... no
checking whether to use libpcre for regular expressions in dfilters... no
checking whether to use liblua for the lua scripting plugin... yes
checking lua.h usability... yes
checking lua.h presence... yes
checking for lua.h... yes
checking lualib.h usability... yes
checking lualib.h presence... yes
checking for lualib.h... yes
checking lauxlib.h usability... yes
checking lauxlib.h presence... yes
checking for lauxlib.h... yes
checking for luaL_register in -llua... yes
checking whether to use libportaudio for the rtp_player... yes
checking portaudio.h usability... no
checking portaudio.h presence... no
checking for portaudio.h... no
libportaudio not found - disabling support for the rtp_player
checking whether to enable ipv6 name resolution if available... yes
checking ipv6 stack type... "unknown, none"
checking for setcap... no
checking whether to install dumpcap with cap_net_admin and cap_net_raw capabilities... no
checking whether to install dumpcap setuid... no
checking for setresuid... no
checking for setresgid... no
checking whether to use the libcap capabilities library... yes
checking for cap_set_flag in -lcap... no
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for unistd.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking whether to use SSL library... no
checking whether to use kerberos... yes
checking for krb5-config... /usr/local/bin/krb5-config
checking krb5.h usability... yes
checking krb5.h presence... yes
checking for krb5.h... yes
checking whether the Kerberos library is Heimdal or MIT... MIT
checking whether MIT includes krb5_kt_resolve... no
checking whether MIT includes krb5_kt_resolve (linking with -lresolv)... no
Usable MIT not found - disabling dissection for some kerberos data in packet decoding
checking whether to use the c-ares library if available... yes
checking for ares_init in -lcares... no
checking whether to use the GNU ADNS library if available... yes
checking for adns_init in -ladns... yes
checking whether to use the GeoIP IP address mapping library if available... yes
checking for GeoIP_new in -lGeoIP... yes
checking for tm_zone in struct tm... no
checking for tzname... yes
checking for sa_len in struct sockaddr... no
checking whether byte ordering is bigendian... no
checking whether gcc needs -traditional... no
checking for getopt... yes
checking for strncasecmp... yes
checking for mkstemp... yes
checking for mkdtemp... no
checking for library containing inet_aton... -lnsl
checking for library containing inet_pton... none required
checking for broken inet_pton... ok
checking for library containing inet_ntop... none required
checking for inet_ntop prototype... yes
checking for strptime... yes
checking for getprotobynumber... no
checking for gethostbyname2... no
checking for issetugid... yes
checking for mmap... yes
checking for mprotect... yes
checking for sysconf... yes
checking for strtoll... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doxygen.cfg
config.status: creating asn1/Makefile
config.status: creating asn1/acp133/Makefile
config.status: creating asn1/acse/Makefile
config.status: creating asn1/ansi_map/Makefile
config.status: creating asn1/ansi_tcap/Makefile
config.status: creating asn1/camel/Makefile
config.status: creating asn1/cdt/Makefile
config.status: creating asn1/charging_ase/Makefile
config.status: creating asn1/cmip/Makefile
config.status: creating asn1/cmp/Makefile
config.status: creating asn1/crmf/Makefile
config.status: creating asn1/cms/Makefile
config.status: creating asn1/dap/Makefile
config.status: creating asn1/disp/Makefile
config.status: creating asn1/dop/Makefile
config.status: creating asn1/dsp/Makefile
config.status: creating asn1/ess/Makefile
config.status: creating asn1/ftam/Makefile
config.status: creating asn1/gnm/Makefile
config.status: creating asn1/goose/Makefile
config.status: creating asn1/gprscdr/Makefile
config.status: creating asn1/gsm_map/Makefile
config.status: creating asn1/h225/Makefile
config.status: creating asn1/h235/Makefile
config.status: creating asn1/h245/Makefile
config.status: creating asn1/h248/Makefile
config.status: creating asn1/h282/Makefile
config.status: creating asn1/h283/Makefile
config.status: creating asn1/h323/Makefile
config.status: creating asn1/h450/Makefile
config.status: creating asn1/h450-ros/Makefile
config.status: creating asn1/h460/Makefile
config.status: creating asn1/h501/Makefile
config.status: creating asn1/HI2Operations/Makefile
config.status: creating asn1/hnbap/Makefile
config.status: creating asn1/idmp/Makefile
config.status: creating asn1/inap/Makefile
config.status: creating asn1/kerberos/Makefile
config.status: creating asn1/ldap/Makefile
config.status: creating asn1/logotypecertextn/Makefile
config.status: creating asn1/lte-rrc/Makefile
config.status: creating asn1/mms/Makefile
config.status: creating asn1/mpeg-audio/Makefile
config.status: creating asn1/mpeg-pes/Makefile
config.status: creating asn1/nbap/Makefile
config.status: creating asn1/ns_cert_exts/Makefile
config.status: creating asn1/ocsp/Makefile
config.status: creating asn1/p1/Makefile
config.status: creating asn1/p22/Makefile
config.status: creating asn1/p7/Makefile
config.status: creating asn1/p772/Makefile
config.status: creating asn1/pcap/Makefile
config.status: creating asn1/pkcs1/Makefile
config.status: creating asn1/pkcs12/Makefile
config.status: creating asn1/pkinit/Makefile
config.status: creating asn1/pkixac/Makefile
config.status: creating asn1/pkix1explicit/Makefile
config.status: creating asn1/pkix1implicit/Makefile
config.status: creating asn1/pkixproxy/Makefile
config.status: creating asn1/pkixqualified/Makefile
config.status: creating asn1/pkixtsp/Makefile
config.status: creating asn1/pres/Makefile
config.status: creating asn1/q932/Makefile
config.status: creating asn1/q932-ros/Makefile
config.status: creating asn1/qsig/Makefile
config.status: creating asn1/ranap/Makefile
config.status: creating asn1/rnsap/Makefile
config.status: creating asn1/ros/Makefile
config.status: creating asn1/rrc/Makefile
config.status: creating asn1/rrlp/Makefile
config.status: creating asn1/rtse/Makefile
config.status: creating asn1/rua/Makefile
config.status: creating asn1/s1ap/Makefile
config.status: creating asn1/sabp/Makefile
config.status: creating asn1/smrse/Makefile
config.status: creating asn1/snmp/Makefile
config.status: creating asn1/spnego/Makefile
config.status: creating asn1/sv/Makefile
config.status: creating asn1/t125/Makefile
config.status: creating asn1/t38/Makefile
config.status: creating asn1/tcap/Makefile
config.status: creating asn1/tetra/Makefile
config.status: creating asn1/ulp/Makefile
config.status: creating asn1/wlancertextn/Makefile
config.status: creating asn1/x2ap/Makefile
config.status: creating asn1/x509af/Makefile
config.status: creating asn1/x509ce/Makefile
config.status: creating asn1/x509if/Makefile
config.status: creating asn1/x509sat/Makefile
config.status: creating asn1/x721/Makefile
config.status: creating doc/Makefile
config.status: creating docbook/Makefile
config.status: creating epan/Makefile
config.status: creating epan/crc/Makefile
config.status: creating epan/crypt/Makefile
config.status: creating epan/doxygen.cfg
config.status: creating epan/dfilter/Makefile
config.status: creating epan/dissectors/Makefile
config.status: creating epan/dissectors/dcerpc/Makefile
config.status: creating epan/dissectors/pidl/Makefile
config.status: creating epan/ftypes/Makefile
config.status: creating epan/wslua/Makefile
config.status: creating epan/wspython/Makefile
config.status: creating codecs/Makefile
config.status: creating gtk/Makefile
config.status: creating gtk/doxygen.cfg
config.status: creating help/Makefile
config.status: creating packaging/Makefile
config.status: creating packaging/macosx/Info.plist
config.status: creating packaging/macosx/Makefile
config.status: creating packaging/nsis/Makefile
config.status: creating packaging/rpm/Makefile
config.status: creating packaging/rpm/SPECS/Makefile
config.status: creating packaging/rpm/SPECS/wireshark.spec
config.status: creating packaging/svr4/Makefile
config.status: creating packaging/svr4/checkinstall
config.status: creating packaging/svr4/pkginfo
config.status: creating plugins/Makefile
config.status: creating plugins/asn1/Makefile
config.status: creating plugins/docsis/Makefile
config.status: creating plugins/ethercat/Makefile
config.status: creating plugins/giop/Makefile
config.status: creating plugins/gryphon/Makefile
config.status: creating plugins/interlink/Makefile
config.status: creating plugins/irda/Makefile
config.status: creating plugins/m2m/Makefile
config.status: creating plugins/mate/Makefile
config.status: creating plugins/opcua/Makefile
config.status: creating plugins/profinet/Makefile
config.status: creating plugins/sercosiii/Makefile
config.status: creating plugins/stats_tree/Makefile
config.status: creating plugins/unistim/Makefile
config.status: creating plugins/wimax/Makefile
config.status: creating plugins/wimaxasncp/Makefile
config.status: creating tools/Makefile
config.status: creating tools/idl2wrs.sh
config.status: creating tools/lemon/Makefile
config.status: creating wiretap/Makefile
config.status: creating wsutil/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

The Wireshark package has been configured with the following options.
Build wireshark : yes
Build tshark : yes
Build capinfos : yes
Build editcap : yes
Build dumpcap : yes
Build mergecap : yes
Build text2pcap : yes
Build idl2wrs : yes
Build randpkt : yes
Build dftest : yes
Build rawshark : yes

Install dumpcap with capabilities : no
Install dumpcap setuid : no
Use dumpcap group : (none)
Use plugins : yes
Use lua library : yes
Use python binding : no
Build rtp_player : no
Use threads : no
Build profile binaries : no
Use pcap library : yes
Use zlib library : yes
Use pcre library : no (using GRegex instead)
Use kerberos library : no
Use c-ares library : no
Use GNU ADNS library : yes
Use SMI MIB library : no
Use GNU crypto library : yes
Use SSL crypto library : no
Use IPv6 name resolution : no
Use gnutls library : yes
Use POSIX capabilities library : no
Use GeoIP library : yes
johndeere {root}# make
make: Fatal error in reader: Makefile, line 4159: Unexpected end of line seen
johndeere {root}#

script done on Mon May 07 16:38:52 2012


Here is the line in the Makefile it fails on. I can provide more info, but this was getting to be a long message anyway..

dc_install_base=$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'

Any thoughts or ideas??

Thanks! Bryan

asked 07 May '12, 13:53

johndeere's gravatar image

johndeere
1112
accept rate: 0%

1

sounds like a problem with Solaris 'make'. Try to use the latest available GNU make.

Regards
Kurt

(07 May '12, 15:40) Kurt Knochner ♦

Thanks Kurt. Obvious answer.. I thought I'd tried that one but I guess that's what happens when you've been compiling all day and the brain is fried.

(08 May '12, 04:39) johndeere

One Answer:

1

As @Kurt says, you have to use GNU make. You might want to look at the "configure" and "compile" steps in the Solaris buildbot.

answered 07 May '12, 16:01

Gerald%20Combs's gravatar image

Gerald Combs ♦♦
3.3k92258
accept rate: 24%

Thanks Gerald! Obvious answer.. I thought I'd tried that one but I guess that's what happens when you've been compiling all day and the brain is fried.

I'll take a look at the Solaris buildbot as well.

(08 May '12, 04:39) johndeere