Michael Schloh von Bennewitz wrote:
> Hello David,
> 
> Lets start with pdflib. Try this:
> 
> a Remove the OpenPKG tiff package from your system. You should now not
> have a
>   libtiff.la in /usr/lib/, /opt/sfw/lib/, or anywhere else.

Here's how I started:

[root@shinji /root]# rpm -e tiff
[root@shinji /root]# find / -name "libtiff*"
/var/spool/pkg/SFWtiff/reloc/sfw/lib/libtiff.so.3
/var/spool/pkg/SFWtiff/reloc/sfw/man/man3t/libtiff.3t

Apparently, pkgrm doesn't remove all traces of a previous install because I 
found all the SFW* package contents in /var/spool/pkg.  I'm assuming ld 
won't find the libs here but, I can't see why I would want to keep these 
directories around so, I'll remove them if you think it will help.

Both b and c options failed in the same way as before.  The script session 
is included below.  However, there are a couple other variables that I just 
thought of (sorry).

I have the SUNWbash package installed, and I made /usr/bin/bash the login 
shell for root.  Therefore, everything I've done, from bootstrapping up 
until now, was done using bash.  I had a problem related to pdflib and 
libtool not finding 'print -r' so I changed root's login shell to ksh that 
took care of the 'print-r' messages but not the '*** [tif_auxx.lo] Error 1' 
problem.  In looking over some old posts on openpkg.dev, I read a message 
that suggested sh was the only supported shell.  I switched the root user's 
shell to /bin/sh but the results were the same (the script output below was 
done with sh, not bash, but the error is the same).

I also reviewed the software prerequisites for OpenPKG and, while I have the 
OpenPKG sharutils (built from SRPM) installed now, shar, unshar, 
mail-files, mailshar, and remsync did not exist on the system when I 
started.  However, Sun's uuencode and uudecode did (and still do) exist in 
/bin when I started.

If either of these is a red flag, let me know and I will start over from the 
beginning.  I apologize for wasting your time if this is something that's 
an RT*M issue.

> b Build today's pdflib with something like:
>   rpm --rebuild
>   ftp://ftp.openpkg.org/current/SRC/pdflib-4.0.3-20021030.src.rpm

The resulting script is attached as ScriptB.

> c If that didn't work, then try this alternative one instead:
>   rpm --rebuild
>   ftp://ftp.europalab.com/opkgrepo/pdflib-4.0.3-alternate.src.rpm

The resulting script is attached as ScriptC.  I added 'echo 
$LD_LIBRARY_PATH' to the end just in case it proves helpful.

> If all this failed, then please mail back to the group a full log of the
> first build (b). You can capture all text by running 'script myfile'
> before running the 'rpm ...' from above. Then type exit afterwards to
> close the script file. Oh, and if (b) or (c) worked indeed, let us know
> which one. Also, does your machine have only one processor?

My test machine is a single CPU E250.

In the future, is openpkg.dev more appropriate for posts about build 
problems?

Thanks again for your help.
Script started on Wed Oct 30 07:46:28 2002
# rpm --rebuild ftp://ftp.openpkg.org/current/SRC/pdflib-4.0.3-20021030.src.rpm
Installing ftp://ftp.openpkg.org/current/SRC/pdflib-4.0.3-20021030.src.rpm
Executing(%prep): env -i /opt/openpkg/lib/openpkg/bash --norc --noprofile --posix -e 
/opt/openpkg/RPM/TMP/rpm-tmp.24336
+ cd /opt/openpkg/RPM/TMP
+ cd /opt/openpkg/RPM/TMP
+ rm -rf pdflib-4.0.3
+ /opt/openpkg/lib/openpkg/gzip -dc /opt/openpkg/RPM/SRC/pdflib/pdflib-4.0.3.tar.gz
+ /opt/openpkg/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pdflib-4.0.3
++ id
++ sed 's/[^=]*=\([0-9][0-9]*\).*$/\1/'
+ '[' 0 = 0 ']'
+ chown -Rhf root .
++ id
++ sed 's/[^=]*=\([0-9][0-9]*\).*$/\1/'
+ '[' 0 = 0 ']'
+ chgrp -Rhf root .
+ chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): env -i /opt/openpkg/lib/openpkg/bash --norc --noprofile --posix -e 
/opt/openpkg/RPM/TMP/rpm-tmp.30696
+ cd /opt/openpkg/RPM/TMP
+ cd pdflib-4.0.3
+ CC=/opt/openpkg/bin/cc
+ CFLAGS=-O
+ ./configure --prefix=/opt/openpkg --disable-shared
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking MACHDEP... sunos5
checking for gcc... /opt/openpkg/bin/cc
checking whether the C compiler (/opt/openpkg/bin/cc -O ) works... yes
checking whether the C compiler (/opt/openpkg/bin/cc -O ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether /opt/openpkg/bin/cc accepts -g... yes
checking how to run the C preprocessor... /opt/openpkg/bin/cc -E
checking for a BSD compatible install... config/install-sh -c
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for object suffix... o
checking build system type... sparc-sun-solaris2.8
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /opt/openpkg/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse /opt/openpkg/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for /opt/openpkg/bin/cc option to produce PIC... -fPIC
checking if /opt/openpkg/bin/cc PIC flag -fPIC works... yes
checking if /opt/openpkg/bin/cc static flag -static works... yes
checking if /opt/openpkg/bin/cc supports -c -o file.o... yes
checking if /opt/openpkg/bin/cc supports -c -o file.lo... 
checking if /opt/openpkg/bin/cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... solaris2.8 ld.so
checking if libtool supports shared libraries... yes
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
creating libtool
checking for Java header files... -I/usr/java/include -I/usr/java/include/solaris
checking for perl... perl
checking for Perl header file... /opt/openpkg/lib/perl5/5.6.1/sun4-solaris/CORE/perl.h
checking for Python header files... not found
checking for python... no
checking for Tcl header files... not found
checking whether byte ordering is bigendian... yes
checking for PDF import library PDI... not found
updating cache ./config.cache
creating ./config.status
creating bind/java/Makefile
creating bind/perl/Makefile
creating tiff/Makefile
creating flate/Makefile
creating png/Makefile
creating Makefile
creating pdflib-config
creating pdflib/Makefile
creating test/Makefile
creating clients/Makefile
creating util/Makefile
creating bind/c/Makefile
configure: warning: Can't create shared PDFlib libraries on this platform.
configure: warning: PDFlib will work when linked to a C or C++ program,
configure: warning: but other language bindings will be unavailable.
_____________________________________________________________
For your convenience, here's a summary of configure's results:

Support for shared libraries:          no
C++ language binding for PDFlib:       no
Java language binding for PDFlib:      no
Perl language binding for PDFlib:      no
Python language binding for PDFlib:    no
Tcl language binding for PDFlib:       no
PHP language binding for PDFlib:       no
PDF import library (PDI):              no
     Note: if you purchase the additional PDF import library (PDI)
     you can also manipulate existing PDF documents with PDFlib.
     See http://www.pdflib.com for details.

Please observe the licensing terms for commercial PDFlib usage.
PDFlib license agreement and purchase order can be found in the doc directory.

+ /opt/openpkg/bin/make --no-print-directory
cd tiff && /opt/openpkg/bin/make
../libtool --silent --mode=compile /opt/openpkg/bin/cc -c  -I../pdflib  
-DHAVE_DLFCN_H=1 -DWORDS_BIGENDIAN=1  -O   -DPDF_PLATFORM=\""SunOS 5.8"\" tif_auxx.c

make[1]: *** [tif_auxx.lo] Error 1
make: *** [libtiff] Error 2
error: Bad exit status from /opt/openpkg/RPM/TMP/rpm-tmp.30696 (%build)


RPM build errors:
    Bad exit status from /opt/openpkg/RPM/TMP/rpm-tmp.30696 (%build)
# 
script done on Wed Oct 30 07:48:01 2002
Script started on Wed Oct 30 08:38:24 2002
# rpm --rebuild ftp://ftp.europalab.com/opkgrepo/pdflib-4.0.3-alternate.src.rpm
Installing ftp://ftp.europalab.com/opkgrepo/pdflib-4.0.3-alternate.src.rpm
Executing(%prep): env -i /opt/openpkg/lib/openpkg/bash --norc --noprofile --posix -e 
/opt/openpkg/RPM/TMP/rpm-tmp.29055
+ cd /opt/openpkg/RPM/TMP
+ cd /opt/openpkg/RPM/TMP
+ rm -rf pdflib-4.0.3
+ /opt/openpkg/lib/openpkg/gzip -dc /opt/openpkg/RPM/SRC/pdflib/pdflib-4.0.3.tar.gz
+ /opt/openpkg/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pdflib-4.0.3
++ id
++ sed 's/[^=]*=\([0-9][0-9]*\).*$/\1/'
+ '[' 0 = 0 ']'
+ chown -Rhf root .
++ id
++ sed 's/[^=]*=\([0-9][0-9]*\).*$/\1/'
+ '[' 0 = 0 ']'
+ chgrp -Rhf root .
+ chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): env -i /opt/openpkg/lib/openpkg/bash --norc --noprofile --posix -e 
/opt/openpkg/RPM/TMP/rpm-tmp.2648
+ cd /opt/openpkg/RPM/TMP
+ cd pdflib-4.0.3
+ CC=/opt/openpkg/bin/cc
+ CFLAGS=-O
+ ./configure --prefix=/opt/openpkg --disable-shared
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking MACHDEP... sunos5
checking for gcc... /opt/openpkg/bin/cc
checking whether the C compiler (/opt/openpkg/bin/cc -O ) works... yes
checking whether the C compiler (/opt/openpkg/bin/cc -O ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether /opt/openpkg/bin/cc accepts -g... yes
checking how to run the C preprocessor... /opt/openpkg/bin/cc -E
checking for a BSD compatible install... config/install-sh -c
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for object suffix... o
checking build system type... sparc-sun-solaris2.8
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /opt/openpkg/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse /opt/openpkg/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for /opt/openpkg/bin/cc option to produce PIC... -fPIC
checking if /opt/openpkg/bin/cc PIC flag -fPIC works... yes
checking if /opt/openpkg/bin/cc static flag -static works... yes
checking if /opt/openpkg/bin/cc supports -c -o file.o... yes
checking if /opt/openpkg/bin/cc supports -c -o file.lo... 
checking if /opt/openpkg/bin/cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... solaris2.8 ld.so
checking if libtool supports shared libraries... yes
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
creating libtool
checking for Java header files... -I/usr/java/include -I/usr/java/include/solaris
checking for perl... perl
checking for Perl header file... /opt/openpkg/lib/perl5/5.6.1/sun4-solaris/CORE/perl.h
checking for Python header files... not found
checking for python... no
checking for Tcl header files... not found
checking whether byte ordering is bigendian... yes
checking for PDF import library PDI... not found
updating cache ./config.cache
creating ./config.status
creating bind/java/Makefile
creating bind/perl/Makefile
creating tiff/Makefile
creating flate/Makefile
creating png/Makefile
creating Makefile
creating pdflib-config
creating pdflib/Makefile
creating test/Makefile
creating clients/Makefile
creating util/Makefile
creating bind/c/Makefile
configure: warning: Can't create shared PDFlib libraries on this platform.
configure: warning: PDFlib will work when linked to a C or C++ program,
configure: warning: but other language bindings will be unavailable.
_____________________________________________________________
For your convenience, here's a summary of configure's results:

Support for shared libraries:          no
C++ language binding for PDFlib:       no
Java language binding for PDFlib:      no
Perl language binding for PDFlib:      no
Python language binding for PDFlib:    no
Tcl language binding for PDFlib:       no
PHP language binding for PDFlib:       no
PDF import library (PDI):              no
     Note: if you purchase the additional PDF import library (PDI)
     you can also manipulate existing PDF documents with PDFlib.
     See http://www.pdflib.com for details.

Please observe the licensing terms for commercial PDFlib usage.
PDFlib license agreement and purchase order can be found in the doc directory.

+ /opt/openpkg/bin/make depend
cd pdflib && /opt/openpkg/bin/make depend
make[1]: Entering directory `/opt/openpkg/RPM/TMP/pdflib-4.0.3/pdflib'
cp Makefile.in Makefile.in.bak
sed '/^# Automatically generated dependencies/q' Makefile.in.bak >Makefile.in
/opt/openpkg/bin/cc -DHAVE_DLFCN_H=1 -DWORDS_BIGENDIAN=1  -O   -DPDF_PLATFORM=\""SunOS 
5.8"\" -I../tiff -I../flate -I../png -MM ./p_afm.c ./p_annots.c ./p_basic.c 
./p_ccitt.c ./p_color.c ./p_draw.c ./p_filter.c ./p_font.c ./p_gif.c ./p_gstate.c 
./p_hyper.c ./p_image.c ./p_jpeg.c ./p_md5.c ./p_params.c ./p_pattern.c ./p_pfm.c 
./p_png.c ./p_stream.c ./p_text.c ./p_truetype.c ./p_tiff.c ./p_template.c 
./p_unicode.c ./p_util.c | sed 's/\.o:/.lo:/g' >>Makefile.in
make[1]: Leaving directory `/opt/openpkg/RPM/TMP/pdflib-4.0.3/pdflib'
cd pdi && /opt/openpkg/bin/make depend
/bin/sh: pdi: does not exist
make: [depend] Error 1 (ignored)
cd png && /opt/openpkg/bin/make depend
make[1]: Entering directory `/opt/openpkg/RPM/TMP/pdflib-4.0.3/png'
cp Makefile.in Makefile.in.bak
sed '/^# Automatically generated dependencies/q' Makefile.in.bak >Makefile.in
/opt/openpkg/bin/cc -DHAVE_DLFCN_H=1 -DWORDS_BIGENDIAN=1  -O   -DPDF_PLATFORM=\""SunOS 
5.8"\" -I../flate -MM ./png.c ./pngset.c ./pngget.c ./pngrutil.c ./pngtrans.c 
./pngread.c ./pngrio.c ./pngrtran.c ./pngmem.c ./pngerror.c | sed 's/\.o:/.lo:/g' 
>>Makefile.in
make[1]: Leaving directory `/opt/openpkg/RPM/TMP/pdflib-4.0.3/png'
cd tiff && /opt/openpkg/bin/make depend
make[1]: Entering directory `/opt/openpkg/RPM/TMP/pdflib-4.0.3/tiff'
cp Makefile.in Makefile.in.bak
sed '/^# Automatically generated dependencies/q' Makefile.in.bak >Makefile.in
/opt/openpkg/bin/cc -I../pdflib  -DHAVE_DLFCN_H=1 -DWORDS_BIGENDIAN=1  -O   
-DPDF_PLATFORM=\""SunOS 5.8"\" -MM ./tif_auxx.c ./tif_close.c ./tif_codec.c 
./tif_compress.c ./tif_dir.c ./tif_dirinfo.c ./tif_dirread.c ./tif_dumpmode.c 
./tif_error.c ./tif_fax3.c ./tif_fax3sm.c ./tif_getimage.c ./tif_next.c ./tif_open.c 
./tif_packbits.c ./tif_predict.c ./tif_read.c ./tif_strip.c ./tif_swab.c 
./tif_thunder.c ./tif_tile.c ./tif_unix.c ./tif_version.c ./tif_warning.c | sed 
's/\.o:/.lo:/g' >>Makefile.in
make[1]: Leaving directory `/opt/openpkg/RPM/TMP/pdflib-4.0.3/tiff'
cd flate && /opt/openpkg/bin/make depend
make[1]: Entering directory `/opt/openpkg/RPM/TMP/pdflib-4.0.3/flate'
cp Makefile.in Makefile.in.bak
sed '/^# Automatically generated dependencies/q' Makefile.in.bak >Makefile.in
/opt/openpkg/bin/cc -DHAVE_DLFCN_H=1 -DWORDS_BIGENDIAN=1  -O   -DPDF_PLATFORM=\""SunOS 
5.8"\" -MM ./adler32.c ./compress.c ./crc32.c ./deflate.c ./infblock.c ./infcodes.c 
./inffast.c ./inflate.c ./inftrees.c ./infutil.c ./trees.c ./uncompr.c ./zutil.c | sed 
's/\.o:/.lo:/g' >>Makefile.in
make[1]: Leaving directory `/opt/openpkg/RPM/TMP/pdflib-4.0.3/flate'
cd pdi && /opt/openpkg/bin/make depend
/bin/sh: pdi: does not exist
make: [depend] Error 1 (ignored)
cd util && /opt/openpkg/bin/make depend
make[1]: Entering directory `/opt/openpkg/RPM/TMP/pdflib-4.0.3/util'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/opt/openpkg/RPM/TMP/pdflib-4.0.3/util'
+ ./configure --prefix=/opt/openpkg --disable-shared
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking MACHDEP... sunos5
checking for gcc... (cached) /opt/openpkg/bin/cc
checking whether the C compiler (/opt/openpkg/bin/cc  ) works... yes
checking whether the C compiler (/opt/openpkg/bin/cc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether /opt/openpkg/bin/cc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) /opt/openpkg/bin/cc -E
checking for a BSD compatible install... config/install-sh -c
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for object suffix... (cached) o
checking build system type... sparc-sun-solaris2.8
checking for ld used by GCC... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for /usr/ccs/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /opt/openpkg/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking command to parse /opt/openpkg/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for /opt/openpkg/bin/cc option to produce PIC... (cached)  -fPIC
checking if /opt/openpkg/bin/cc PIC flag  -fPIC works... (cached) yes
checking if /opt/openpkg/bin/cc static flag -static works... (cached) yes
checking if /opt/openpkg/bin/cc supports -c -o file.o... (cached) yes
checking if /opt/openpkg/bin/cc supports -c -o file.lo... (cached) 
checking if /opt/openpkg/bin/cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... solaris2.8 ld.so
checking if libtool supports shared libraries... yes
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) no
creating libtool
checking for Java header files... -I/usr/java/include -I/usr/java/include/solaris
checking for perl... (cached) perl
checking for Perl header file... /opt/openpkg/lib/perl5/5.6.1/sun4-solaris/CORE/perl.h
checking for Python header files... not found
checking for python... no
checking for Tcl header files... not found
checking whether byte ordering is bigendian... (cached) yes
checking for PDF import library PDI... not found
updating cache ./config.cache
creating ./config.status
creating bind/java/Makefile
creating bind/perl/Makefile
creating tiff/Makefile
creating flate/Makefile
creating png/Makefile
creating Makefile
creating pdflib-config
creating pdflib/Makefile
creating test/Makefile
creating clients/Makefile
creating util/Makefile
creating bind/c/Makefile
configure: warning: Can't create shared PDFlib libraries on this platform.
configure: warning: PDFlib will work when linked to a C or C++ program,
configure: warning: but other language bindings will be unavailable.
_____________________________________________________________
For your convenience, here's a summary of configure's results:

Support for shared libraries:          no
C++ language binding for PDFlib:       no
Java language binding for PDFlib:      no
Perl language binding for PDFlib:      no
Python language binding for PDFlib:    no
Tcl language binding for PDFlib:       no
PHP language binding for PDFlib:       no
PDF import library (PDI):              no
     Note: if you purchase the additional PDF import library (PDI)
     you can also manipulate existing PDF documents with PDFlib.
     See http://www.pdflib.com for details.

Please observe the licensing terms for commercial PDFlib usage.
PDFlib license agreement and purchase order can be found in the doc directory.

+ /opt/openpkg/bin/make --no-print-directory
cd tiff && /opt/openpkg/bin/make
../libtool --silent --mode=compile /opt/openpkg/bin/cc -c  -I../pdflib  
-DHAVE_DLFCN_H=1 -DWORDS_BIGENDIAN=1  -s -O2   -DPDF_PLATFORM=\""SunOS 5.8"\" 
tif_auxx.c

make[1]: *** [tif_auxx.lo] Error 1
make: *** [libtiff] Error 2
error: Bad exit status from /opt/openpkg/RPM/TMP/rpm-tmp.2648 (%build)


RPM build errors:
    Bad exit status from /opt/openpkg/RPM/TMP/rpm-tmp.2648 (%build)
# echo $LD_LIBRARY_PATH
/opt/openpkg/lib:/opt/openpkg/local/lib::/lib:/usr/lib
# 
script done on Wed Oct 30 08:42:09 2002

Reply via email to