Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Aug 2008 15:38:04 +0530
From:      Ashish Shukla <wahjava.ml@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Is _environ present in 7.0-RELEASE ?
Message-ID:  <200808111538.09660.wahjava.ml@gmail.com>

next in thread | raw e-mail | index | archive | help
--nextPart4637427.Csy1BPcZEc
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi all,

I'm running FreeBSD 7.0-RELEASE-p3 (amd64). I'm trying to install kde4 from=
 scratch. I'm getting an error with building libxine-1.1.14. And as kde4 po=
rts depends on libxine,=20
I'm not able to build kde4. Following is an excerpt from the build output, =
I've received:

=2D--->8---->8----
Making all in libreal
gmake[2]: Entering directory `/usr/ports/multimedia/libxine/work/xine-lib-1=
=2E1.14/src/libreal'
/bin/sh ../../libtool --tag=3DCC   --mode=3Dcompile cc -DHAVE_CONFIG_H -I. =
=2DI../../include -I../.. -I../../include -I../../include -I../../src -I../=
=2E./src/xine-engine -
I../../src/xine-engine -I../../src/xine-utils  -I../../src/input -I../../sr=
c/input  -I../../lib -I../../lib  -I/usr/local/include -fvisibility=3Dhidde=
n -D_REENTRANT -
D_FILE_OFFSET_BITS=3D64 -DXINE_COMPILE   -Wformat=3D2 -Wno-format-zero-leng=
th -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstric=
t-aliasing=3D2 -Wall -
Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-de=
clarations -Wmissing-prototypes -pipe -msse -msse2 -msse3 -mmmx -march=3Dno=
cona -march=3Dnocona -g -
fno-force-addr -I/usr/local/include -I/usr/local/include/dvdread -DNDEBUG -=
MT xineplug_decode_real_la-xine_real_video_decoder.lo -MD -MP -MF .deps/xin=
eplug_decode_real_la-
xine_real_video_decoder.Tpo -c -o xineplug_decode_real_la-xine_real_video_d=
ecoder.lo `test -f 'xine_real_video_decoder.c' || echo './'`xine_real_video=
_decoder.c
 cc -DHAVE_CONFIG_H -I. -I../../include -I../.. -I../../include -I../../inc=
lude -I../../src -I../../src/xine-engine -I../../src/xine-engine -I../../sr=
c/xine-utils -
I../../src/input -I../../src/input -I../../lib -I../../lib -I/usr/local/inc=
lude -fvisibility=3Dhidden -D_REENTRANT -D_FILE_OFFSET_BITS=3D64 -DXINE_COM=
PILE -Wformat=3D2 -Wno-format-
zero-length -Wmissing-format-attribute -Werror-implicit-function-declaratio=
n -Wstrict-aliasing=3D2 -Wall -Wpointer-arith -Wnested-externs -Wcast-align=
 -Wchar-subscripts -
Wmissing-declarations -Wmissing-prototypes -pipe -msse -msse2 -msse3 -mmmx =
=2Dmarch=3Dnocona -march=3Dnocona-g -fno-force-addr -I/usr/local/include -I=
/usr/local/include/dvdread -
DNDEBUG -MT xineplug_decode_real_la-xine_real_video_decoder.lo -MD -MP -MF =
=2Edeps/xineplug_decode_real_la-xine_real_video_decoder.Tpo-c xine_real_vid=
eo_decoder.c  -fPIC -DPIC=20
=2Do .libs/xineplug_decode_real_la-xine_real_video_decoder.o
In file included from ../../src/xine-engine/xine_internal.h:33,
                 from xine_real_video_decoder.c:40:
=2E./../include/xine.h:2230: warning: 'xine_tvsystem' is deprecated
In file included from xine_real_video_decoder.c:45:
real_common.h:49: error: '__environ' defined both normally and as an alias
real_common.h:59: error: 'stderr' defined both normally and as an alias
xine_real_video_decoder.c: In function 'init_codec':
xine_real_video_decoder.c:279: warning: 'xine_xmalloc' is deprecated (decla=
red at ../../src/xine-utils/xineutils.h:624)
xine_real_video_decoder.c: In function 'realdec_decode_data':
xine_real_video_decoder.c:390: warning: pointer targets in passing argument=
 1 of 'this->rvyuv_transform' differ in signedness
xine_real_video_decoder.c:390: warning: pointer targets in passing argument=
 2 of 'this->rvyuv_transform' differ in signedness
xine_real_video_decoder.c: In function 'init_realvdec':
xine_real_video_decoder.c:536: warning: unused variable 'config'
gmake[2]: *** [xineplug_decode_real_la-xine_real_video_decoder.lo] Error 1
gmake[2]: Leaving directory `/usr/ports/multimedia/libxine/work/xine-lib-1.=
1.14/src/libreal'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/multimedia/libxine/work/xine-lib-1.=
1.14/src'
gmake: *** [all-recursive] Error 1
=2D---8<----8<----

I've uploaded the config.log[1] present in ${PORTSDIR}/multimedia/libxine/w=
ork/xine-lib-1.1.14 . Since no one else has received any such error, I've n=
ot filed any PRs.=20
=46ollowing is the test program I wrote to reproduce the error.

=2D---8<----8<----
abbe [~] monte-cristo% cat test.c
extern char ** _environ;
=20
#ifndef NULL
#define NULL (char**)0
#endif
=20
int main()
{
        _environ =3D NULL;
}
abbe [~] monte-cristo% cc -o test test.c
/var/tmp//ccz3twdu.o(.text+0x7): In function `main':
: undefined reference to `_environ'
abbe [~] monte-cristo% sed -e s/_environ/environ/g -i '' test.c
abbe [~] monte-cristo% cat test.c
extern char ** environ;
=20
#ifndef NULL
#define NULL (char**)0
#endif
=20
int main()
{
        environ =3D NULL;
}
abbe [~] monte-cristo% cc -o test test.c
abbe [xine-lib-1.1.14] monte-cristo% cat /etc/make.conf
CPUTYPE?=3Dnocona
CFLAGS=3D -O2 -fno-strict-aliasing -pipe -msse -msse2 -msse3 -mmmx -march=
=3Dnocona
MAKEOPTS=3D-j3
=2D--->8---->8----

The '__environ' symbol is also not defined. Can anyone hint me, what is mis=
configured on my box ?

References:
[1] - http://wahjava.googlepages.com/config.log.libxine (size: 243051 bytes=
, md5: 807b7dc3458f12c7e685d63aeaf83fae)

TIA
Ashish
=2D-=20
=C2=B7-- =C2=B7- =C2=B7=C2=B7=C2=B7=C2=B7 =C2=B7--- =C2=B7- =C2=B7=C2=B7=C2=
=B7- =C2=B7- =C2=B7--=C2=B7-=C2=B7 --=C2=B7 -- =C2=B7- =C2=B7=C2=B7 =C2=B7-=
=C2=B7=C2=B7 =C2=B7-=C2=B7-=C2=B7- -=C2=B7-=C2=B7 --- --


--nextPart4637427.Csy1BPcZEc
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEABECAAYFAkigD4kACgkQHy+EEHYuXnQPXQCfc3yIr9Bye4LxR4lsQieI/cew
oSQAniyNNN8IcCzSIHDjQET3M++rWsZD
=8PJ2
-----END PGP SIGNATURE-----

--nextPart4637427.Csy1BPcZEc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808111538.09660.wahjava.ml>