php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32381 T1lib configuring error
Submitted: 2005-03-20 10:22 UTC Modified: 2005-03-23 13:36 UTC
From: dbarth at gmx dot net Assigned:
Status: Closed Package: GD related
PHP Version: 5.0.3 OS: Mandrake 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dbarth at gmx dot net
New email:
PHP Version: OS:

 

 [2005-03-20 10:22 UTC] dbarth at gmx dot net
Description:
------------
Hello I need to compile php with t1lib support, but i get follwing error while configuring:

configure:30293: checking for jpeg_read_header in -ljpeg                       
configure:30576: checking for png_write_image in -lpng                         
configure:31675: checking for T1_StrError in -lt1                              
configure:31694: gcc -o conftest -g -O2   conftest.c -lt1  -lpng -lz -ljpeg -lg
bm -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz 
lm 1>&5                                                                        
/tmp//ccaz46FM.o(.text+0x9): In function `main':                               
/usr/local/src/php-5.0.3/configure:31690: undefined reference to `T1_StrError' 
collect2: ld returned 1 exit status                                            
configure: failed program was:                                                 
#line 31683 "configure"                                                        
#include "confdefs.h"                                                          
/* Override any gcc2 internal prototype to avoid an error.  */                 
/* We use char because int might match the return type of a gcc2               
    builtin and then its argument prototype would still apply.  */             
char T1_StrError();                                                            
                                                                               
int main() {                                                                   
T1_StrError()                                                                  
; return 0; }                                                                  

any suggestions?

(ver: t1lib 1.3.1)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-20 17:54 UTC] sniper@php.net
Update your t1lib.

 [2005-03-21 21:55 UTC] dbarth at gmx dot net
So, i did like you say and upgraded t1lib, but now
imageloadpsfont (the function i actually need) say's that it cant't load the font i supplied. What the hell is wrong? Is that a problem of t1lib? Under php4 with my old t1lib there wasn't any problem.
 [2005-03-22 00:33 UTC] dbarth at gmx dot net
huh, now i tried the same with ttf fonts... and encountered the same error:

Warning: imageftbbox() [function.imageftbbox]: Could not read font in ... on line 56

hmm, do these functions share the same lib?
 [2005-03-22 18:40 UTC] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.


 [2005-03-23 13:36 UTC] dbarth at gmx dot net
So, now i finally found the solution. Somehow my fonts folder in my sandbox enviroment got corrupted. i don't know how this could happend but the fontfiles differed for some bytes.

Sorry for any inconvenience i might have caused...

thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 16:01:29 2024 UTC