installing swig on cfarm210?
Dagobert Michelsen
dam at opencsw.org
Mon Jun 8 22:54:10 CEST 2026
Hi Pat,
> Am 08.06.2026 um 22:43 schrieb Patrice Dumas <pertusus at free.fr>:
> I did not manage to reproduce the issue I had on OpenCSW (the new test
> log in OpenCSW allowed to fix the issue), because iconv cannot be built
> together with Perl flags on cfarm 210, while it does without Perl flags
> on cfarm 210, and with Perl flags in OpenCSW.
>
> More precisely, building without Perl flags works ok on cfarm 210, the
> command-line that succeeds is:
> gcc -o conftest -g -D_STDC_C99= -I/opt/csw/include/ -D_REENTRANT -I/usr/local/include -L/opt/csw/lib/ conftest.c /usr/local/lib/libiconv.so -L/usr/local/lib/64 -L/usr/local/lib -R/usr/local/lib
>
> With the Perl flags, there is a failure. The command-line is:
> /opt/SUNWspro/bin/cc -o conftest -g -D_STDC_C99= -D_REENTRANT -xO3 -m32 -xarch=sparc -I/opt/csw/bdb48/include -I/opt/csw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -I/opt/csw/include/ -D_REENTRANT -I/usr/local/include -L/opt/csw/lib/ -R /opt/csw/lib -m32 -xarch=sparc -L/opt/csw/lib -lperl -L/opt/csw/bdb48/lib -L/opt/csw/lib -L/usr/lib -L/usr/ccs/lib -L/lib conftest.c /usr/local/lib/libiconv.so -L/usr/local/lib/64 -L/usr/local/lib -L/usr/lib/sparcv9 -R/usr/local/lib
> The failure:
> ld: fatal: file /usr/local/lib/libiconv.so: wrong ELF class: ELFCLASS64
>
> This above comes from config.log, I do not have access to config.log on
> OpenCSW, but what I can compare are the Perl flags as they are output by
> configure, and they seem very similar between cfarm 210 and
> texinfo-solaris10-sparc.
>
> I do not know Solaris enough to understand what is normal, what is not,
> but in case it can be useful to you, I reported what I could, though I do
> not have any specific demand (for now ;-), it is for your information.
The error means you are trying to link a 64 bit library to a 32 bit build
and /usr/local/lib/libiconv.so <http://libiconv.so/> is 64 bit. I suggest to use /opt/csw/lib
for libiconv.so <http://libiconv.so/>.
Best regards
— Dago
--
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
More information about the buildfarm
mailing list