Full_Name: Vinod Kutty
Version: 10.11.4-20030104
OS: Solaris 9
Submission from: (NULL) (66.93.80.24)
When building netpbm (using openpkg-20030108-20030108 ), I encountered these
errors at the stage where it builds ppmtompeg:
------------------------------
/plocal/apps/opkg/bin/cc -o ppmtompeg -L/plocal/apps/opkg/lib \
ppmtompeg.o mfwddct.o postdct.o huff.o bitio.o mheaders.o mpeg.o
subsample.o param.o rgbtoycc.o readframe.o combine.o jrevdct.o frame.o fsize.o
frametype.o specifics.o rate.o opts.o iframe.o pframe.o bframe.o psearch.o
bsearch.o block.o parallel.o jpeg.o
`/plocal/apps/opkg/RPM/TMP/netpbm-10.11.4/buildtools/libopt
/plocal/apps/opkg/RPM/TMP/netpbm-10.11.4/lib/libnetpbm.a libjpeg.a` \
-lm \
Undefined first referenced
symbol in file
socket parallel.o
gethostbyname parallel.o
accept parallel.o
bind parallel.o
listen parallel.o
connect parallel.o
ld: fatal: Symbol referencing errors. No output written to ppmtompeg
collect2: ld returned 1 exit status
make[3]: *** [ppmtompeg] Error 1
make[2]: *** [ppmtompeg/all] Error 2
make[1]: *** [ppm/all] Error 2
make: *** [converter/all] Error 2
error: Bad exit status from /plocal/apps/opkg/RPM/TMP/rpm-tmp.5503 (%build)
------------------------------
I worked around it by adding two 'echo' lines to the %build section in
netpbm.spec:
------------------------------
%build
( cat Makefile.config.in
echo
.
.
.
echo "NETWORKLD = -lsocket -lnsl"
.
.
.
) >Makefile.config
%{l_make} %{l_mflags} -f GNUmakefile
------------------------------
1. The first echo is for a newline, otherwise Makefile.config looks like this at
the start of the block of cat-inserted text:
.
.
.
PKGDIR = /tmp/netpbmDEFAULT_TARGET = nonmerge
.
.
.
(This actually had no *verified* impact on the above error -- just thought it
should be eliminated as a potential prob.)
2. The NETWORKLD settings appear to be OS dependent, according to the
Makefile.config comments. Another option is to turn this ppmtompeg-specific
functionality off with the value NONE, which I have not tried. Perhaps some more
general conditional setting based on OS would be best.
Thanks,
--
Vinod
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [EMAIL PROTECTED]