You are not logged in.

#1 2008-05-21 04:15:27

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,880

More include file craziness [SOLVED]

I posted about this in another thread, but it got lost because the thread wasn't about this in the first place. I have two separate programs, GPAC and Blender, which both use to be trivial to build with standard PKGBUILDs and both of them fail at not being able to find math.h on 64 bit. All of base-devel is installed. In fact, I force installed all of it again just for this. There's nothing new in makepkg.conf, and what's in there isn't special in the first place.

Let me show the first error with GPAC. This happens with both versions from AUR which have worked for me unedited every time I've tried them until last week. I run makepkg, and it fails almost right away:

[skottish@iasE gpac]$ makepkg
==> Making package: gpac 0.4.4-1  (Tue May 20 20:54:41 MST 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found gpac-0.4.4.tar.gz in build dir
==> Validating source files with md5sums...
    gpac-0.4.4.tar.gz ... Passed
==> Extracting Sources...
  -> bsdtar -x -f gpac-0.4.4.tar.gz
==> Entering fakeroot environment...
==> Starting build()...
which: no wx-config in (/bin:/usr/bin:/sbin:/usr/sbin:/opt/findbugs/bin:/opt/nvidia/gelato/bin:/opt/jdk/bin:/opt/mozilla/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/texlive/bin)

** System Configuration
Install prefix: /usr
Source path: /home/skottish/downloads/gpac/src/gpac
C compiler: gcc
make: make
CPU: x86_64
Big Endian: no

** GPAC 0.4.4 Core Configuration **
debug version: no
GProf enabled: no
Memory tracking enabled: no
read-only version: no
fixed-point version: no
IPV6 Support: yes
IsoMedia MovieFragments support: yes
SVG Support disabled: no

** Detected libraries **
zlib: system
OSS Audio: yes
ALSA Audio: yes
X11 Shared Memory support: yes (path: /usr/X11R6)
SDL Support: yes
libXML2: yes
OpenGL support: yes
OpenSSL support: yes
DVB Support: yes
wxWidgets support: no

** Extra Libraries used **
SpiderMonkey: system
FreeType: system
JPEG: system
OpenJPEG: no
PNG: system
MAD: system
FAAD: system
XVID: system
FFMPEG: local
Xiph OGG: system
Xiph Vorbis: system
Xiph Theora: system



Creating config.mak
Done - type 'make help' for make info, 'make' to build
make -C src all
make[1]: Entering directory `/home/skottish/downloads/gpac/src/gpac/src'
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/downloads/gpac/src/gpac/include -c -o utils/os_divers.o utils/os_divers.c 
utils/os_divers.c: In function 'gf_sys_get_rti':
utils/os_divers.c:1143: warning: format '%lld' expects type 'long long int *', but argument 3 has type 'u64 *'
utils/os_divers.c:1146: warning: format '%lld' expects type 'long long int *', but argument 3 has type 'u64 *'
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/downloads/gpac/src/gpac/include -DGPAC_IPV6 -c -o utils/os_net.o utils/os_net.c 
utils/os_net.c: In function 'gf_sk_connect':
utils/os_net.c:407: warning: cast from pointer to integer of different size
utils/os_net.c:417: warning: cast from pointer to integer of different size
utils/os_net.c: In function 'gf_sk_bind':
utils/os_net.c:517: warning: cast from pointer to integer of different size
utils/os_net.c:533: warning: cast from pointer to integer of different size
utils/os_net.c: In function 'gf_sk_setup_multicast':
utils/os_net.c:738: warning: cast from pointer to integer of different size
utils/os_net.c:762: warning: cast from pointer to integer of different size
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/downloads/gpac/src/gpac/include -c -o utils/os_module.o utils/os_module.c 
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/downloads/gpac/src/gpac/include -c -o utils/os_thread.o utils/os_thread.c 
utils/os_thread.c: In function 'RunThread':
utils/os_thread.c:97: warning: cast to pointer from integer of different size
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/downloads/gpac/src/gpac/include -c -o utils/list.o utils/list.c 
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/downloads/gpac/src/gpac/include -c -o utils/base_encoding.o utils/base_encoding.c 
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/downloads/gpac/src/gpac/include -c -o utils/bitstream.o utils/bitstream.c 
gcc -O3  -fPIC -DPIC -fno-strict-aliasing -Wno-pointer-sign -Wall -I/home/skottish/downloads/gpac/src/gpac/include -c -o utils/color.o utils/color.c 
In file included from /home/skottish/downloads/gpac/src/gpac/include/gpac/events.h:34,
                 from /home/skottish/downloads/gpac/src/gpac/include/gpac/user.h:35,
                 from utils/color.c:26:
/home/skottish/downloads/gpac/src/gpac/include/gpac/math.h:41:18: error: math.h: No such file or directory
make[1]: *** [utils/color.o] Error 1
make[1]: Leaving directory `/home/skottish/downloads/gpac/src/gpac/src'
make: *** [lib] Error 2
==> ERROR: Build Failed.
    Aborting...

You'll notice right at the end it says:

/home/skottish/downloads/gpac/src/gpac/include/gpac/math.h:41:18: error: math.h: No such file or directory

Really?

[skottish@iasE gpac]$ ls /home/skottish/downloads/gpac/src/gpac/include/gpac/ | grep math.h
math.h

It's there. And if anyone asks, the -O3 flag is being called by GPAC, and '--disable-opt' doesn't stop the error.

Blender also fails right away. Unlike GPAC it doesn't have a local version of math.h. I tried for testing purposes symlinking /usr/include/c++/4.3.0/tr1/math.h to /usr/include. Blender then sees math.h but fails in other ways (like not finding cmath, the next include line).

Maybe I'm missing something here, or maybe my system is becoming ill. I've had other strange build problems lately that no one else was seeing or was able to prove. Does anyone have any idea here? I really need to get this fixed.

Last edited by skottish (2008-05-21 11:55:58)

Offline

#2 2008-05-21 04:41:03

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: More include file craziness [SOLVED]

skottish wrote:

/home/skottish/downloads/gpac/src/gpac/include/gpac/math.h:41:18: error: math.h: No such file or directory

Well, math.h should be in the directory because it is the file giving the error...  It is not trying to include itself, but rather /usr/include/math.h which is owned by glibc.  It seems you are missing that file from your comment about building blender.

I just fired up my x86_64 box and it the file /usr/include/math.h is there, so you should try reinstalling glibc.

Offline

#3 2008-05-21 11:55:43

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,880

Re: More include file craziness [SOLVED]

Allan wrote:
skottish wrote:

/home/skottish/downloads/gpac/src/gpac/include/gpac/math.h:41:18: error: math.h: No such file or directory

Well, math.h should be in the directory because it is the file giving the error...  It is not trying to include itself, but rather /usr/include/math.h which is owned by glibc.  It seems you are missing that file from your comment about building blender.

I just fired up my x86_64 box and it the file /usr/include/math.h is there, so you should try reinstalling glibc.

Well gee whiz. Knowing the answer certainly makes solving the problem easy. Thanks a bunch Allan.

Offline

Board footer

Powered by FluxBB