Opened 20 years ago

Closed 20 years ago

#3138 closed defect (invalid)

ethereal build fails due to lack of /usr/local/bin/perl, though /usr/bin/perl exists

Reported by: jyrki.wahlstedt@… Owned by: tobypeterson
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: opendarwin.org@…
Port:

Description

Trying to build ethereal, the build stops with the following: ---> Building ethereal with target all Error: Target com.apple.build returned: shell command "cd "/usr/local/var/db/dports/build/ file._usr_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_net_ethereal/ work/ethereal-0.10.11" && make all" returned error 2 Command output: text2pcap.c:734: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness text2pcap.c:750: warning: pointer targets in passing argument 1 of ‘strptime’ differ in signedness if gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I./wiretap -I/usr/local/include -I/usr/local/include -I/usr/ include -no-cpp-precomp -D_U_="attribute((unused))" -Wall -W -g -O2 -DXTHREADS -I/usr/ local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/ include/pango-1.0 -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/X11R6/include -I/usr/ local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include -I/ usr/include -MT text2pcap-scanner.o -MD -MP -MF ".deps/text2pcap-scanner.Tpo" -c -o text2pcap- scanner.o text2pcap-scanner.c; \ then mv -f ".deps/text2pcap-scanner.Tpo" ".deps/text2pcap-scanner.Po"; else rm -f ".deps/text2pcap- scanner.Tpo"; exit 1; fi /bin/sh ./libtool --mode=link --tag=CC gcc -no-cpp-precomp -D_U_="attribute((unused))" -Wall -W -g -O2 -DXTHREADS -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/ include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/freetype2 -I/ usr/X11R6/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/ include -I/usr/local/include -I/usr/include -Wl,-search_paths_first -L/usr/local/lib -L/usr/local/lib -o text2pcap text2pcap.o text2pcap-scanner.o -L/usr/local/lib -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lm -L/usr/local/lib -lz gcc -no-cpp-precomp "-D_U_=attribute((unused))" -Wall -W -g -O2 -DXTHREADS -I/usr/local/ include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/ pango-1.0 -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/X11R6/include -I/usr/local/ include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include -I/usr/ include -Wl,-search_paths_first -o text2pcap text2pcap.o text2pcap-scanner.o -L/usr/local/lib /usr/ local/lib/libgmodule-2.0.dylib /usr/local/lib/libglib-2.0.dylib /usr/local/lib/libintl.dylib -lc /usr/local/ lib/libiconv.dylib -lm -lz /usr/bin/ld: warning prebinding disabled because dependent library: /usr/local/lib/ libgmodule-2.0.0.dylib is not prebound rm -f idl2eth idl2eth.tmp sed -e 's,@SHELL@,/bin/sh,g' idl2eth.sh > idl2eth.tmp && chmod +x idl2eth.tmp && mv idl2eth.tmp idl2eth /usr/bin/perl ./perlnoutf.pl ./make-authors-short.pl < ./AUTHORS > AUTHORS-SHORT /usr/bin/perl ./perlnoutf.pl ./make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT- FORMAT (cd doc ; \ make ../ethereal.1 ) cat ./ethereal.pod ../AUTHORS-SHORT-FORMAT > ethereal-tmp.pod /usr/local/bin/pod2man \ --center="The Ethereal Network Analyzer" \ --release=0.10.11 \ ethereal-tmp.pod | sed 's/ETHEREAL-TMP/ETHEREAL/' > ../ethereal.1 /bin/sh: /usr/local/bin/pod2man: /usr/local/bin/perl: bad interpreter: No such file or directory (cd doc ; \ make ../capinfos.1 ) /usr/local/bin/pod2man \ --center="The Ethereal Network Analyzer" \ --release=0.10.11 \ ./capinfos.pod > ../capinfos.1 /bin/sh: /usr/local/bin/pod2man: /usr/local/bin/perl: bad interpreter: No such file or directory make[3]: * capinfos.1 Error 126 make[2]: * [capinfos.1] Error 2 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

The cause is that /usr/local/bin/perl is hard-coded (?) in pod2man. Now, I could not find pod2man in the package, but it should probably in some dependency (as it is used). Anyway doing a symbolic link 'sudo ln -s /usr/bin/perl /usr/local/bin/perl' is enough. If pod2man is somehow part of the installation process, /usr/local/bin/perl could perhaps be modified to /usr/bin/ perl.

Change History (3)

comment:1 Changed 20 years ago by opendarwin.org@…

It is generally considered to be a Bad Thing(tm) to use a $prefix of /usr/local. That said, how was "/usr/local/bin/pod2man" installed?

comment:2 Changed 20 years ago by jyrki.wahlstedt@…

(In reply to comment #1)

It is generally considered to be a Bad Thing(tm) to use a $prefix of /usr/local. That said, how was "/usr/local/bin/pod2man" installed?

Ok, mea culpa, I was too rash, I am currently whipping myself!!! I should have checked pod2man, because when I did, there were two of them, one right, one wrong, and the build process picked up the wrong one. Hence, you may consider this bug to be my bug and closed.

I promise to be more careful with next problems, but I expect my system to behave better and better over time.

comment:3 Changed 20 years ago by opendarwin.org@…

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.