Libiconv problems

204 views
Skip to first unread message

Ivan Gualandri

unread,
Sep 1, 2010, 4:25:01 AM9/1/10
to minix3
Hi,

after installing rev 8110 of minx, i tried to compile fluxbox 1.1.1 but seems to be problems with linking iconv library.
I installed both versions of libiconv (from packman and pkgsrc)

The error is the following:

g++  -g -O2  -I/usr/X11R6-gcc/include -DSHAPE  -L/usr/X11R6-gcc/lib  -lSM -lICE  -o fluxbox ArrowButton.o FbAtoms.o  FbWinFrame.o FbWinFrameTheme.o  fluxbox.o Keys.o main.o  Netizen.o RootTheme.o FbRootWindow.o  Screen.o ScreenResources.o Slit.o  SlitTheme.o SlitClient.o WinButton.o  WinButtonTheme.o Window.o Workspace.o  FbCommands.o LayerMenu.o FbMenu.o  WinClient.o Xutil.o CurrentWindowCmd.o  WorkspaceCmd.o CommandParser.o  FbCommandFactory.o Shape.o MenuTheme.o  Container.o TextTheme.o BorderTheme.o  CommandDialog.o SendToMenu.o  AlphaMenu.o Parser.o FbMenuParser.o  StyleMenuItem.o RootCmdMenuItem.o  MenuCreator.o IconMenu.o  WorkspaceMenu.o HeadArea.o Resources.o  WindowCmd.o FocusControl.o  CascadePlacement.o ColSmartPlacement.o  RowSmartPlacement.o ScreenPlacement.o  UnderMousePlacement.o WinClientUtil.o  AttentionNoticeHandler.o Ewmh.o  Gnome.o Remember.o RegExp.o  ClientPattern.o Toolbar.o  ToolbarTheme.o ToolbarItem.o  ClockTool.o  WorkspaceNameTool.o  IconbarTool.o IconbarTheme.o  ToolTheme.o IconButton.o  SystemTray.o GenericTool.o  ButtonTool.o ButtonTheme.o  ToolFactory.o FbTk/libFbTk.a defaults.o -L/usr/X11R6-gcc/lib -lX11  -lXext  -lXrender
FbTk/libFbTk.a(FbString.o): In function `FbTk::FbStringUtil::shutdown()':

/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:119: undefined reference to `_iconv_close'
FbTk/libFbTk.a(FbString.o): In function `FbTk::StringConvertor::~StringConvertor()':
/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:268: undefined reference to `_iconv_close'
FbTk/libFbTk.a(FbString.o): In function `FbTk::StringConvertor::~StringConvertor()':
/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:268: undefined reference to `_iconv_close'
FbTk/libFbTk.a(FbString.o): In function `FbTk::StringConvertor::setSource(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:278: undefined reference to `_libiconv_open'
/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:283: undefined reference to `_iconv_close'
FbTk/libFbTk.a(FbString.o): In function `FbTk::FbStringUtil::recode(void*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:172: undefined reference to `_libiconv'
/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:208: undefined reference to `_libiconv'
FbTk/libFbTk.a(FbString.o): In function `FbTk::FbStringUtil::init()':
/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:101: undefined reference to `_libiconv_open'
/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:102: undefined reference to `_libiconv_open'
/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:103: undefined reference to `_libiconv_open'
/home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:104: undefined reference to `_libiconv_open'
collect2: ld returned 1 exit status
*** Error code 1

Stop.
make: stopped in /home/ivan/fluxbox-1.0.0/src
*** Error code 1

Stop.
make: stopped in /home/ivan/fluxbox-1.0.0/src
*** Error code 1

Stop.
make: stopped in /home/ivan/fluxbox-1.0.0/src
*** Error code 1

Stop.
make: stopped in /home/ivan/fluxbox-1.0.0
*** Error code 1

Stop.
make: stopped in /home/ivan/fluxbox-1.0.0

(this is about ver 1.0.0, but is the same error with 1.1.1)

The strange fact is that with rev 7889 everything worked fine.
At least for fluxbox 1.0.0 (didn't tried with version 1.1.1).

I suspect that is a linker problem. But i can't understand why.

Tried to add -liconv, and the path where iconv libraries are. Nothing.

Any idea?

Bye,
Ivan
--
"elen sila lumenn omentielvo"

Antoine LECA

unread,
Sep 1, 2010, 4:37:23 AM9/1/10
to min...@googlegroups.com
Ivan Gualandri wrote:
> after installing rev 8110 of minx, i tried to compile fluxbox 1.1.1 but
> seems to be problems with linking iconv library.
> I installed both versions of libiconv (from packman and pkgsrc)

Where are they installed? (I guess something along
/usr/{local,gnu}/lib/{,i386})


> The error is the following:
>
> g++ -g -O2 -I/usr/X11R6-gcc/include -DSHAPE -L/usr/X11R6-gcc/lib -lSM
> -lICE -o fluxbox ArrowButton.o FbAtoms.o FbWinFrame.o FbWinFrameTheme.o
> fluxbox.o Keys.o main.o Netizen.o RootTheme.o FbRootWindow.o Screen.o

<snip many *.o>


> SystemTray.o GenericTool.o ButtonTool.o ButtonTheme.o ToolFactory.o
> FbTk/libFbTk.a defaults.o -L/usr/X11R6-gcc/lib -lX11 -lXext -lXrender
> FbTk/libFbTk.a(FbString.o): In function `FbTk::FbStringUtil::shutdown()':
>
> /home/ivan/fluxbox-1.0.0/src/FbTk/FbString.cc:119: undefined reference to
> `_iconv_close'

<snip many of the same>

Look like the directory with libiconv was not in ld's search path (set
with -Lxxx); X11, on the other hand, apparently is...


Please take into account that libiconv is integrated within GLibc, so a
number of (Linux-biaised) packages assume the library comes "free" (as
in "do not do anything expensive" ;-)), and might not take the pain to
look at configure-time for option to add to LDPATH... or even check for
its presence (which would with autoconv "automatically" adds the lib
dependency instruction...)
Have a look at configure log for iconv; if it speaks about it (ie, if
./configure checks for "working iconv"), then investigate the configure
and generated Makefiles logic to understand why it did not pass the
corresponding -L option; OTOH if it did not, well I guess the easiest is
to add the option to config.m4, run autoconf and if successful,
contribute the patch to the maintainers.


Hope it helps,

Antoine

Reader

unread,
Sep 1, 2010, 4:42:43 AM9/1/10
to minix3
Add -liconv to the end of your compile command (you have already tried
it; just keep trying it along with other small changes).
Read here about this option:
http://cygwin.com/ml/cygwin/2003-02/msg00807.html

Find where headers (*.h) of iconv and libiconv are situated: /usr/
include, /usr/local/include or something else and add these options to
the command, too:
-I/usr/include -I/usr/local/include -I/some-directory-with-headers -I/
usr/local/lib/ -I/usr/gnu/lib/i386 -I/usr/local/lib/i386 -I/usr/gnu/
lib

Gautam BT

unread,
Sep 1, 2010, 4:10:42 AM9/1/10
to min...@googlegroups.com
For the pkgsrc version you need the following line in /usr/pkgsrc/fluxbox/Makefile

.include "../../converters/libiconv/buildlink3.mk"

If you have removed this or any other similar .include lines, can you put them
back and try?

--
Gautam

Arun Thomas

unread,
Sep 1, 2010, 5:03:10 AM9/1/10
to min...@googlegroups.com
On 09/01/2010 10:25 AM, Ivan Gualandri wrote:
> Hi,
>
> after installing rev 8110 of minx, i tried to compile fluxbox 1.1.1 but
> seems to be problems with linking iconv library.
> I installed both versions of libiconv (from packman and pkgsrc)

I would recommend starting from a clean install with the newest ISO.
Then, you can install the dpendencies you need from pkgsrc only (that
is, no packman packages). From your error message, it looks like the
build is finding packman libraries.

This may not solve your problem, but it's a good idea to start with a
clean build environment. Then, you can ask the group for more help.

Arun

Ivan Gualandri

unread,
Sep 1, 2010, 6:02:02 AM9/1/10
to min...@googlegroups.com
Hi antoine,
 the two installation of libiconv are in:
/usr/pkg/lib (the hteader /usr/pkg/include
/usr/local/lib/gcc (with header in /usr/local/include)

I tried to add -liconv and path of libraries and include, withou success, here the list of all my attempt:
1. without any options and i have the problem above
2. with a -L/usr/pkg/lib -I/usr/pkg/include -liconv
3. with -L/usr/local/lib -I/usr/local/include -liconv
4. commented all #define HAVE_*_ICONV_* in config.h (with fresh downloaded version and not pksrc)

Actually with test from 1 to 3 (tested both with pkgsrc version and source version) i have the same fail
With test 4 1.0.0 seems to compile
but 1.1.1 has strange errors:
 first defined here
FbTk/LogicCommands.o: In function `__ZN4FbTk10AndCommand3addERNS_8RefCountINS_7CommandIbEEEE':
/home/ivan/fluxbox-1.1.1/src/FbTk/LogicCommands.cc:125: multiple definition of `__ZN4FbTk10AndCommand3addERNS_8RefCountINS_7CommandIbEEEE'


@Arun:
gcc, gcc-libs x11 are available in pkgsrc? Or i need to install them from packman? Or from a pkgin?
And package like ssh are available via pkgsrc? Or i can install them via packman?
That vm is a fresh install, but probably dirtied with some packman installations.

@gautam:
that line is present in makefile

@Reader:
i tried to add the pkgsrc version, and the packman version separately (adding the header dir for iconv and library dir) and -liconv and didn't solve.

Next, i make a new fresh minix machine and try to install all libraries and dependencie from pkgsrc or pkgin.

I hope that this time everything work :)

Ivan

--
You received this message because you are subscribed to the Google Groups "minix3" group.
To post to this group, send email to min...@googlegroups.com.
To unsubscribe from this group, send email to minix3+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/minix3?hl=en.

Ivan Gualandri

unread,
Sep 1, 2010, 6:04:36 AM9/1/10
to min...@googlegroups.com
WTF my company proxy with SurfControl block the download of minix iso.

Grr.....
Ok i use my dear internet key :)

Ivan

Ivan Gualandri

unread,
Sep 2, 2010, 10:07:34 AM9/2/10
to min...@googlegroups.com
Ok,
i installed a new virtual machine with minix,
using pkgin i installed:
-x11
-gcc44
-libiconv
-x11 links

Installed all gcc libs,

After i edited fluxbox Makefile and as configure Argument i passed also:
CONFIGURE_ARGS+=        --x-includes=/usr/pkg/X11R6/include
CONFIGURE_ARGS+=        --x-libraries=/usr/pkg/X11R6/libraries
And in during configure i receive that error:
checking for IceConnectionNumber in -lICE... no
checking for XOpenDisplay in -lX11... no
configure: error: Could not find XOpenDisplay in -lX11.

why?
I forgot to install something?

Ivan

Gautam BT

unread,
Sep 2, 2010, 10:34:20 AM9/2/10
to min...@googlegroups.com
On Thu, Sep 02, 2010 at 04:07:34PM +0200, Ivan Gualandri wrote:
> After i edited fluxbox Makefile and as configure Argument i passed also:
> CONFIGURE_ARGS+= --x-includes=/usr/pkg/X11R6/include
> CONFIGURE_ARGS+= --x-libraries=/usr/pkg/X11R6/libraries
> And in during configure i receive that error:

You do not need to pass these arguments, pkgsrc passes them automatically.
If you remove just the follownig line from the Makefile, fluxbox should
configure fine.

.include "../../x11/libXrandr/buildlink3.mk"

--
Gautam

Ivan Gualandri

unread,
Sep 2, 2010, 10:41:35 AM9/2/10
to min...@googlegroups.com
I added them because i had that error without.
Or worse, withou configure cannot find X.

Try to add libXrandr?

Iivan.


--
You received this message because you are subscribed to the Google Groups "minix3" group.
To post to this group, send email to min...@googlegroups.com.
To unsubscribe from this group, send email to minix3+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/minix3?hl=en.

Ivan Gualandri

unread,
Sep 3, 2010, 1:05:30 AM9/3/10
to min...@googlegroups.com
Ok i removed my configure params,

and i have the same problem.

So i tried to install libX11, and then, after installing all dependencies, the configure script stop with that error:

checking for XPROTO... configure: error: Package requirements (xproto >= 7.0.13) were not met:

No package 'xproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XPROTO_CFLAGS
and XPROTO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/libX11
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
WARNING: *** Please consider adding fortran to USE_LANGUAGES in the package Makefile.

*** Error code 1

Stop.

Bye,
Ivan

Ivan Gualandri

unread,
Sep 3, 2010, 3:41:14 AM9/3/10
to min...@googlegroups.com
ok i installed xproto package, and i still get the same error?

:|
Any idea?

Ivan
Reply all
Reply to author
Forward
0 new messages