Subject: Re: Problems building gedit, gimp, etc
To: Jeremy C. Reed <reed@reedmedia.net>
From: Jan Danielsson <jan.m.danielsson@gmail.com>
List: pkgsrc-users
Date: 05/13/2007 01:19:53
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig0DC2D310090E2F3CC51A4B28
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Jeremy C. Reed wrote:
> I just looked at the libbonobo configuration and I do not see any check=
=20
> for popt version.
>=20
> Also I can't reproduce the same problem.
>=20
> What does your config.log show? Mine shows:
>=20
> configure:23891: checking for poptStrippedArgv in -lpopt
> configure:23926: gcc -o conftest -O2 -I/usr/pkg/include -I/usr/include =

> -I/usr/pkg/include -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/=
usr/lib=20
> -Wl,-R/usr/lib conftest.c -lpopt   >&5
> configure:23932: $? =3D 0
> configure:23950: result: yes
> configure:23971: checking popt.h usability
> configure:23988: gcc -c -O2 -I/usr/pkg/include -I/usr/include=20
> -I/usr/pkg/include -I/usr/include conftest.c >&5
> configure:23994: $? =3D 0
> configure:24008: result: yes
> configure:24012: checking popt.h presence
> configure:24027: gcc -E -I/usr/pkg/include -I/usr/include conftest.c
> configure:24033: $? =3D 0
> configure:24047: result: yes
> configure:24075: checking for popt.h
> configure:24082: result: yes

   Hmm... It seems that the linker can't find popt, so I jumped the gun
on the version issue. I do have libpopt.{a,so} in /usr/pkg/lib, though.

----------------------------------
configure:23891: checking for poptStrippedArgv in -lpopt
configure:23926: cc -o conftest -O2 -pipe -I/usr/pkg/include
-I/usr/include -I/usr/pkg/include -I/usr/include -L/usr/pkg/lib -Wl,-R/
ld: cannot find -lpopt

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/pkg_comp/obj/pkgsrc/devel/libbonobo/default/.gcc/bin/gcc -o conftest
-O2 -pipe -I/pkg_comp/obj/pkgsrc/devel/libbonobo/default/.buil
configure:23932: $? =3D 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libbonobo"
| #define VERSION "2.18.0"
| #define YYTEXT_POINTER 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define GETTEXT_PACKAGE "libbonobo-2.0"
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define ENABLE_NLS 1
| #define HAVE_USLEEP 1
| #define HAVE_NANOSLEEP 1
| #define HAVE_SIGACTION 1
| #define HAVE_SETSID 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_SYSLOG_H 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char poptStrippedArgv ();
| int
| main ()
| {
| return poptStrippedArgv ();
|   ;
|   return 0;
| }
configure:23950: result: no
----------------------------------

   Just for reference:

# pkg_info | grep popt
popt-1.10.7         Command line option parsing library


--=20
Kind regards,
Jan Danielsson



--------------enig0DC2D310090E2F3CC51A4B28
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFGRkueuPlHKFfKXTYRCmD2AJ9TOJk+lC4hcqkb1DmnoegB7+eyigCfRFOl
Yo+t3LMGf78oIOsnAmLKcp4=
=MNHE
-----END PGP SIGNATURE-----

--------------enig0DC2D310090E2F3CC51A4B28--